|
level_load and publish- engine crash[SOLVED]
#451928
05/26/15 21:46
05/26/15 21:46
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
OP
X
|
OP
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Hi! Im close to cry...i worked now over three years on my fps. Everything went fine last days. Finally i wanted to join two Levels via Level_load...well engine crashes "process terminated...". I have ShadeC evo included, maybe theres a trick with Level_load? Strange thing: loading the same Level works. but if i load from one into another engine crashed directly. If i wont kill myself this night, ill try debug again tomorrow after work. Any idea? Any help?I have NO(!) f* clue why engine crashes Thanks for all kind of help / Level-loading - tips.edit: set Nexus to 200 in the WMB i loaded in main - function. the next WMB loaded via level_load is saved with Nexus 0 my wild guess: it has to do with my shade-c and or lights usage, i can post my light-script if somebody wants to see.
Last edited by rayp; 05/31/15 16:59. Reason: changed topic subject
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: level_load - engine crash ... PLEASE HELP!
[Re: Logitek]
#451933
05/27/15 09:14
05/27/15 09:14
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Hi, I don't think it is the same problem. But long time ago I had also engine crashes after level_load. The mistake I made was: I didn't wait with a function until the entity was created. So the entity was missing and the engine was crashing. And same level loading was working. So I remember this problem. I had the same problem in the past, try to wait for a couple of seconds (f.e. 10? ) right after level_load, just to see how it goes.
|
|
|
Re: level_load - engine crash ... PLEASE HELP!
[Re: 3run]
#451934
05/27/15 09:31
05/27/15 09:31
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
Expert
Joined: Mar 2011
Posts: 3,150
Budapest
|
what I use to avoid similar issues: - a level close function to always stop running stuff: player, sky, camera, panels, material/shader loops (especially shade-c related ones), - protections to avoid running anything double (by proc_status or boolean-like islooprunning variables), - remove and NULL global pointers to engine objects. entities are auto removed very fast, but if you use some with global entity pointers they are better to be handled carefully manually - always check whether a global e.g. entity is NULL or not before actually using it - create and remove panels (and possibly all other engine objects) runtime to avoid linking to removed objects - totally rewrite the full code in every 6 months
|
|
|
Re: level_load - engine crash ... PLEASE HELP!
[Re: alibaba]
#451936
05/27/15 11:10
05/27/15 11:10
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Attach a debugger and check on which call it crashes. Walk the stack backwalks and check the last pushed returnaddresses. Had same problems with it, took me quite a while to find all stuff I had to reset
Last edited by Ch40zzC0d3r; 05/27/15 11:11.
|
|
|
Re: level_load - engine crash ... PLEASE HELP!
[Re: Ch40zzC0d3r]
#451947
05/27/15 20:22
05/27/15 20:22
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
OP
X
|
OP
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Thank you all! I found it man ! Debugged from 15h o clock till now! Problem was a WMV - rendered via media_loop on a Skin of a TV entity in combination with ShadeC evo - material applyed + Level_load instruction called twice. lol What a fight !!! ...man i hate those lets debug from the start - bugs ! And know what...iam afraid of pressing the "Compile" - button, i really am. edit: i LOVE killing bugs, i really do ahhhhhhhhhhh
Last edited by rayp; 05/27/15 20:35.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: level_load - engine crash ... PLEASE HELP!
[Re: rayp]
#452017
05/31/15 13:11
05/31/15 13:11
|
Malice
Unregistered
|
Malice
Unregistered
|
Wonder if we can get that added to the manual?
|
|
|
|