|
2 registered members (juanex, AndrewAMD),
988
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
level loading crashes
#375192
06/24/11 07:49
06/24/11 07:49
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
logNewMessage(level, debugLog, OFF);
posPredictDummy = NULL;
ship = NULL;
sys_marker("l00");
level_load(level); //loads the level which is loaded on the server
sys_marker("l01");
camEnt = NULL;
sys_marker("l02");
logNewMessage("l01", debugLog, OFF);
I get a script crash in l00. Any Idea? the level string is exactly the same as the rounds before: "playground.wmb"
Last edited by Germanunkol; 06/24/11 07:49.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: level loading crashes
[Re: Helghast]
#375195
06/24/11 08:10
06/24/11 08:10
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Maybe I should've added: 90% of the time, this works perfectly fine.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: level loading crashes
[Re: Germanunkol]
#375196
06/24/11 08:57
06/24/11 08:57
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Do you use a temporary STRING object created via _str()?
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: level loading crashes
[Re: WretchedSid]
#375199
06/24/11 09:03
06/24/11 09:03
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Does it matter? The logging function 4 lines above the level load logs correctly...
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: level loading crashes
[Re: Superku]
#375260
06/24/11 16:16
06/24/11 16:16
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Yeah, I've tried it. IF there is global functions that access the pointer, then they certainly cannot run between the logNewMessage and the level_load...? There's no wait(1) inbetween, and logNewMessage doesn't actually modify the string it gets... unless the file_str_write command modifies a pointer...
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: level loading crashes
[Re: Germanunkol]
#375268
06/24/11 17:27
06/24/11 17:27
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
then they certainly cannot run between the logNewMessage and the level_load...?
I don't talk about the string, I talk about other global functions that access f.i. entity pointers, which become invalid during level_load. Additionally, be aware that pointers only become invalid, but are not set to NULL automatically. EDIT: The level_load process usually takes several frames, otherwise you could not display a loading bar with on_level as an example. I don't know if global "wait-functions" are executed during these frames, though.
Last edited by Superku; 06/24/11 17:29.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
|