Jump to content

Crash Error


Recommended Posts

Hey all, I am getting this error with a map I'm working on:

Crash in application version: 30553.2792

data\lib\utils\smallutils.dsf(-1): MISSION SCRIPT ERROR line=5 - SetSpawnLocation - No

location called "tdm_spawn_b"+ is defined

SCRIPT STACK:

data\lib\utils\smallutils.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\eventmanager.dsf(0)

data\lib\managers\worldmanager.dsf(0)

data\lib\script_network\networkmanager.dsf(0)

Renderer: threaded

Physics : threaded

I have gone completely through everything, and can't seem to find the problem. I've set the location & parameters in the world.xml.

Any ideas?

Link to comment
Share on other sites

Have you changed the spawn locations name in the rules.xml file?

<event name="start_game" type="once">

<element type="SetSpawnLocation" location="tdm_spawn_a" set="true" side="1"/>

<element type="SetSpawnLocation" location="tdm_spawn_b" set="true" side="2"/>

That`s all i can think of really.

Link to comment
Share on other sites

Have you changed the spawn locations name in the rules.xml file?

<event name="start_game" type="once">

<element type="SetSpawnLocation" location="tdm_spawn_a" set="true" side="1"/>

<element type="SetSpawnLocation" location="tdm_spawn_b" set="true" side="2"/>

That`s all i can think of really.

rules.xml? I wasn't even aware I need that file. Are you sure that shouldn't be in the mission.xml ?

Link to comment
Share on other sites

Your *_rules.xml should look like this:

<element type="SetSpawnLocation" location="spawn_side_1" set="true" side="1" />

<element type="SetSpawnLocation" location="spawn_side_2" set="true" side="2" />

Your world.xml should look like this:

<location name="spawn_side_1" shape="circle" pos="972.00421 9563.4834 248.71101" radius="499.70822" />

<location name="spawn_side_2" shape="circle" pos="1604.9412 11552.435 266.81372" radius="499.70822" />

Of course, it doesn't have to look exactly like that. If you need any clarification, just let me know.

rules.xml? I wasn't even aware I need that file. Are you sure that shouldn't be in the mission.xml ?
Are you using an existing game mode, or creating a new one?

If you are using an existing game mode, you need to label your spawn locations with the same names used in the existing *_rules.xml.

If you know how to exract the quick.bundle, all of the rules are located in the "common" folder (I think the path is:

/data/levels/common)

If not, let me know what game mode you are using (tdm, hh, etc) and I will post the requirements.

Link to comment
Share on other sites

If you open calavera, you will see in the world file that it is pointing to the mission script.

In the mission script it shows each game type available and which set of rules to use.

Each set of rules, found in common folder, contains the actual data needed to play.

:thumbsup:

Link to comment
Share on other sites

Ok, if you will, do I place the *_rules.xml in my custom_levels folder?

Also, which way do I write the code for the spawns, you gave me 2 examples:

<element type="SetSpawnLocation" location="tdm_spawn_a" set="true" side="1"/>

<element type="SetSpawnLocation" location="tdm_spawn_b" set="true" side="2"/>

<element type="SetSpawnLocation" location="spawn_side_1" set="true" side="1" />

<element type="SetSpawnLocation" location="spawn_side_2" set="true" side="2" />

thx

Edited by BSR_Vhladd
Link to comment
Share on other sites

Alright, in adding the "common" folder, GRAW2 now won't start and says that my map has an invalid path. But, when I rebundle it without the "common" folder, at least GRAW2 starts up.

The settings in the "common" folder of the tdm_rules.xml is identical to my world.xml as far as the "tdm_spawn_b" is concerned.

Just can't seem to figure this out.

Any other ideas?

Link to comment
Share on other sites

Ok, here's what I found out:

When using my own (or the tdm_rules.xml) file, the error was being caused by not having a "</element>" tag after each of the "<element type=........" entries. It originally looked like this:

<tdm_rules>

<event name="start_game" type="once">

<element type="SetSpawnLocation" location="tdm_spawn_a" set="true" side="1"/>

<element type="SetSpawnLocation" location="tdm_spawn_b" set="true" side="2"/>

<!-- This variable keeps track of if this round is even or odd -->

<element type="Calculate">

<store target="round" source="odd" />

</element>

Now, it looks like this:

<tdm_rules>

<event name="start_game" type="once">

<element type="SetSpawnLocation" location="tdm_spawn_a" set="true" side="1"/>

</element>

<element type="SetSpawnLocation" location="tdm_spawn_b" set="true" side="2"/>

<!-- This variable keeps track of if this round is even or odd -->

<element type="Calculate">

<store target="round" source="odd" />

</element>

Don't ask me why, as that is the default throughout the quick.bundle.

Now, I just have to reset my spawn points..... :D

Edited by BSR_Vhladd
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...