2 registered members (Imhotep, opm),
785
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: crash after level_load
[Re: pegamode]
#457644
01/25/16 14:11
01/25/16 14:11
|
Joined: Jan 2006
Posts: 968
EpsiloN
User
|
User
Joined: Jan 2006
Posts: 968
|
Well, my first thought would be to start eliminating the functions one by one until the crash disappears. I mean, if you have different enemies, door functions and the player function, start adding "return;" in them right when they start, so you can see what function causes a problem, if it is a function... If it still runs, remove the return and add it in another function... Also, its a good idea to always check if a pointer points to something, even if you're sure it does, before using it... I recently had huge problems with BMAPs because of this even with checks that a pointer points to something...
|
|
|
Re: crash after level_load
[Re: jenGs]
#457648
01/25/16 16:09
01/25/16 16:09
|
Joined: Jan 2006
Posts: 968
EpsiloN
User
|
User
Joined: Jan 2006
Posts: 968
|
Yes, crashes often occur when you try to draw something that cannot be drawn I've had issues with BMAPS, but I never tried using bad images in levels. Make sure all your textures are of the supported formats, a power of two and your video device supports the resolution of the images. Other than that, if youre sure the functions are not the problem, your only option is to start decomposing the level piece by piece to see where it stops crashing... Make a backup of the original and start removing models/ textures until it stops crashing. An easy test is to assign the default texture to every block in your level... Shouldn't take long...
|
|
|
Re: crash after level_load
[Re: pegamode]
#457660
01/26/16 08:51
01/26/16 08:51
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
did you check the level sizes (bounds) .
also what kind of data is associated / stored for each entity , eg. skills or extra pointers?
if you take away the load game and simply start your game manually at the two levels involved in sequence, does it happen still ?
if you replace the entities with placeholder models without textures , does it happen still?
does each of theses levels have their own scripts , and if so , can you show it ?
do you use the physics engine ?
what is shared between these levels ?
try to start at the entities creation and destruction functions/code , what are you doing there , line for line can you post it ?
Compulsive compiler
|
|
|
|