Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
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 Offline OP

X
rayp  Offline 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. frown

Any idea? Any help?
I have NO(!) f* clue why engine crashes frown cry

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: rayp] #451932
05/27/15 09:12
05/27/15 09:12
Joined: Nov 2009
Posts: 201
Logitek Offline
Member
Logitek  Offline
Member

Joined: Nov 2009
Posts: 201
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.

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 Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Logitek
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? grin ) right after level_load, just to see how it goes.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
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 Offline
Expert
sivan  Offline
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 grin


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: level_load - engine crash ... PLEASE HELP! [Re: sivan] #451935
05/27/15 10:12
05/27/15 10:12
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Agreeing to everything said.

I also had this Problem. Mine was, that I had a panel.target_map set to an entity bu not reset when loading a level. It is really dumb to not get an error message, but you have to live with it.
In the worst case it is a memory leak and it will haunt you in your dreams..
And you have to rewrite everything from scratch.

What you could also try:
Remove all skycubes and try reloading again


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

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 Offline OP

X
rayp  Offline 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. grin lol

What a fight !!! grin

...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 grin

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] #451951
05/28/15 05:30
05/28/15 05:30
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Good job! (^.^)


"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
Re: level_load - engine crash ... PLEASE HELP! [Re: Superku] #452016
05/31/15 11:18
05/31/15 11:18
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline OP

X
rayp  Offline OP

X

Joined: Jul 2008
Posts: 2,107
Germany
Thank you! ^^

For all reading:
Always stop media - handles before(!) level_load instructions.
edit:
if it has a render target - entity...
if it has no entity, the Music Plays 4ever, handle seams to be dead.


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

M
Malice
Unregistered
Malice
Unregistered
M



Wonder if we can get that added to the manual?

Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1