BSR_Vhladd Posted August 26, 2007 Share Posted August 26, 2007 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? Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 26, 2007 Share Posted August 26, 2007 Have you placed these locations on the map in the editor, or are you renaming locations that are already there? Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 Have you placed these locations on the map in the editor, or are you renaming locations that are already there? I'm renaming locations that are already there. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 26, 2007 Share Posted August 26, 2007 Were are you crashing? When trying to spawn? Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 Were are you crashing? When trying to spawn? Right after the load screen. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 26, 2007 Share Posted August 26, 2007 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. Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 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 ? Quote Link to comment Share on other sites More sharing options...
Cangaroo.TNT Posted August 26, 2007 Share Posted August 26, 2007 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. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 26, 2007 Share Posted August 26, 2007 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. Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 (edited) 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 August 26, 2007 by BSR_Vhladd Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 Cangaroo, I'm using the tdm rules. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 26, 2007 Share Posted August 26, 2007 The 2 examples are the same, just renamed the spawns to the same as in the world file. Rules need to go into a common folder inside the level folder, same as the original setup. Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 Won't I then have to change the path in my missions.xml? Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 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? Quote Link to comment Share on other sites More sharing options...
BSR_Vhladd Posted August 26, 2007 Author Share Posted August 26, 2007 (edited) 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..... Edited August 26, 2007 by BSR_Vhladd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.