Members | Sign In
All Forums > Mission Scripting
avatar

Crashes when I run this script?

posted Jul 14, 2011 12:17:53 by 5th_Wall_Gaming
While playing around with the script editor, I came up with the following...

<!-- mission_data is the big wrapper for all the parts of a mission -->
<mission_data version="1.31">

<start>
<create type ="station" x="90000" y="0" z="90000" name="Station"/>
<create type ="player" x="1000" y="0" z="1000" name="Artemis"/>

<big_message title="Wish you were here" subtitle1="written by 5th Wall Gaming"/>

<incoming_message from="Unknown" mediaType="0" fileName="Borland.ogg"/>

<set_timer name="Endgame_timer" seconds="60"/>
</start>

<event>
<if_inside_sphere name="Artemis" centerX="20000" centerY="0" centerZ="80000" radius ="8000"/>
<set_object_property name="Artemis" property="systemDamageWarp" value="10" />
</event>


<event name="End Of Mission">
<if_timer_finished name="Endgame_timer"/>
<end_mission/>

</event>


</mission_data>


But I get the error message as shown in the picture. I know it must be something simple I'm forgetting. Any ideas?


http://www.5thWallGaming.com
We make dreams reality
page   1
13 replies
avatar
Eric said Jul 14, 2011 13:46:36
I've never seen a "name" property in the event tag before. You have this:

<event name="End Of Mission">
<if_timer_finished name="Endgame_timer"/>
<end_mission/>
</event>

Maybe just this:

<event>
<if_timer_finished name="Endgame_timer"/>
<end_mission/>
</event>
avatar
ThomRobertson said Jul 14, 2011 14:23:10
I'll look at this.
Creator of Artemis
avatar
5th_Wall_Gaming said Jul 14, 2011 14:29:33
The name on the event is a copy from one of the 2 examples. I'm not sure why we need the name (except to perhaps be able to activate events within other script areas).
http://www.5thWallGaming.com
We make dreams reality
avatar
Martok42 said Jul 14, 2011 16:14:51
I've never seen a "name" property in the event tag before.


Nor have I, but where did you copy it from?

I think <!-- notes --> would do the same thing as naming an event if that really is the issue.
A vital mission, impossible odds and a ruthless enemy, what more could we ask for?

Follow the Star Trek, Into The Breach mod for Artemis: NegativeZone
avatar
5th_Wall_Gaming said Jul 14, 2011 16:21:35
From "MISS_TheWaningDark.xml" written by Thom.

<event name="doctor bugging player">
<if_variable name="firstDoctorComm" comparator="!=" value="1"/>
<if_timer_finished name="doctor_bug_timer"/>

<incoming_message from="Doctor Barnard" mediaType="0" fileName="Barnard1.ogg" />

<incoming_comms_text from="Doctor Barnard">
Hello, there, Captain. Thanks for having me aboard.^
I've set up my sensors here in science bay 2, and all^
of them are in tip top shape!^
Now, there are three very interesting nebulas in the south side^
of this sector, and I'd like to take readings in the center of each^
of them. Be aware that these nebulas may have unexpected effects^
on your ship. So off we go then!
</incoming_comms_text>

<set_variable name="firstDoctorComm" value="1"/>
<set_timer name="doctor_bug_timer" seconds="60"/>
</event>
http://www.5thWallGaming.com
We make dreams reality
avatar
Martok42 said Jul 14, 2011 16:36:42
Wow, very strange. Well I had some crashing with my mission, and I just had to erase a few events and rewrite them SLIGHTLY different.
A vital mission, impossible odds and a ruthless enemy, what more could we ask for?

Follow the Star Trek, Into The Breach mod for Artemis: NegativeZone
avatar
Vorus said Jul 14, 2011 23:07:34
If I were to guess, I'd say that it's causing an error because you don't have any event-specific variable to stop that event from being fired multiple times. (Unless the ending event is excluded from that requirement.) So, it's trying to end an already-ended mission. Not sure if that's the case, but that's what I would suspect.
-----------
Khomerex nal Khesterex

The unofficial Artemis Wiki, your best source for Artemis Information
avatar
5th_Wall_Gaming said Jul 14, 2011 23:38:14
So how would you set it up that it only works once?
http://www.5thWallGaming.com
We make dreams reality
avatar
Martok42 said Jul 15, 2011 01:15:38
At the beginning of the offending event with make a <if_variable name="name" comparator="!=" value="1"/> and then within the even make it turn the variable value to "1". That way, the event only fires when it doesn't equal one, and when the event does fire, it turns it to one, insuring it doesn't fire, after it fired once.

This is the easiest thing I have found to make them only fire once.
A vital mission, impossible odds and a ruthless enemy, what more could we ask for?

Follow the Star Trek, Into The Breach mod for Artemis: NegativeZone
avatar
Mike_Substelny said Jul 15, 2011 13:44:29
I assume you don't get the error immediately, but only after Artemis enters the sphere, right? In that case I agree with Martok. Use a variable just like the one called "firstDoctorComm" in the example you posted.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
ThomRobertson said Jul 19, 2011 18:39:38
V1.50 should have fixed this.
Creator of Artemis
avatar
5th_Wall_Gaming said Jul 19, 2011 18:48:48
Works.
http://www.5thWallGaming.com
We make dreams reality
avatar
5th_Wall_Gaming said Jul 23, 2011 12:24:21
I got the crash again in 1.51, but I'm not sure how.

Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address
Client::connect start
m_socket created
if(m_socket == 0xffffffff)
socket created
event created
exitEvent created
if(oldSocket != 0xffffffff)
CreateThread
start listening
set address


Does that help?
http://www.5thWallGaming.com
We make dreams reality
Login below to reply: