PDA

View Full Version : KeeperFX 0.38a TRAP BUG (crash)



jomalin
January 27th, 2011, 00:41
Putting traps (poison gas trap or lightening trap for example) using the savegame I provide will crash the game, that is level 20 of the original DK campaign.
The last line in my keeperfx.log executing "keeperfx_dbg.exe" file was:

Sync: create_trap: Starting

I need to have this fixed to continue my savegame and complete the game... :-(

Metal Gear Rex
January 27th, 2011, 00:55
I'm willing to bet that that is merely a result of you hitting the "Thing" limit.

jomalin
January 27th, 2011, 06:27
OK, thanks!
Let's wait mefistotelis to confirm that...

So, this limit will always be there? There isn't any possible solution to avoid that?

Ogre
January 27th, 2011, 11:47
There are 2 solutions, play orignal DK or try to sell everythin thats useless, rooms, traps whatever. And see if it dosent help :)

jomalin
January 27th, 2011, 12:31
There are 2 solutions, play orignal DK or try to sell everythin thats useless, rooms, traps whatever. And see if it dosent help :)

So the original DK doesn't have this Thing limit??

Ogre
January 27th, 2011, 14:21
it does, though i havent really encounterd it while playing DK gold. The thing limit, i think, is about 5000.


I can confirm there is a problem in this saved game. It is a problem with linked lists - similar to one reported by DragonsLover some time ago. Amount of "effect things" in linked list does not match their real count (ie. I've got a moment when there's 1194 effects, but only 5 are in linked list. This means there are 1194 slots which were just "lost" somehow.

I will try to find a way to trace the problem. in the thread http://www.keeperklan.com/threads/1581-Attacks-not-being-drawn.

Metal Gear Rex
January 27th, 2011, 15:36
Thing Limit is 1024 if I'm not mistaken. You run into that problem a lot in Level 20 since the enemy Keeper will automatically keep building Workshops. He's not exactly easy to deal with either. If you this (http://www.keeperklan.com/threads/1581-Attacks-not-being-drawn./page2) thread, it may be you're running into the same problem.

To ensure that it is a problem with Things though, try creating more things by building a room or something. If it doesn't crash and only crashes when building traps, then it is something else.

jomalin
January 27th, 2011, 15:45
Thing Limit is 1024 if I'm not mistaken. You run into that problem a lot in Level 20 since the enemy Keeper will automatically keep building Workshops. He's not exactly easy to deal with either. If you this (http://www.keeperklan.com/threads/1581-Attacks-not-being-drawn./page2) thread, it may be you're running into the same problem.

To ensure that it is a problem with Things though, try creating more things by building a room or something. If it doesn't crash and only crashes when building traps, then it is something else.

The thing limit is 2047, as you can see in that thread where mefistotelis say it:
http://www.keeperklan.com/threads/1189-Bugs-and-crashes-now-for-version-0.37c/page3?highlight=2047

Metal Gear Rex
January 27th, 2011, 18:29
The thing limit is 2047, as you can see in that thread where mefistotelis say it:
http://www.keeperklan.com/threads/1189-Bugs-and-crashes-now-for-version-0.37c/page3?highlight=2047

I know, actually. I wrote 1024 because I confused myself as I was thinking ahead of myself while typing. I was thinking about ways to test if the problem was with the Thing Limit or not, and one of those things was mining. (the rocks that appear when you mine something) Then I thought of mining gold, and wrote 1024 because 1024 is actually the amount of gold in a gold block.

In any case, try my suggestion at the end.


To ensure that it is a problem with Things though, try creating more things by building a room or something. If it doesn't crash and only crashes when building traps, then it is something else.

jomalin
January 28th, 2011, 06:02
I have tried to make some rooms and the game doesn't crash, only with traps. I noticed that the "Cave In" spell doesn't graphically appears correctly, it doesn't show so many rocks like normally it shows. Also with the Lightening strike spell, it doesn't shows the ray.


There are 2 solutions, play orignal DK or try to sell everythin thats useless, rooms, traps whatever. And see if it dosent help :)
Selling a lot of traps and then putting they again although I put only a very few ones will crash the game also, for example, selling 4 traps and putting only 1. Can be that memory isn't well freed?

mefistotelis, can you tell something about a Thing limit solution/traps problem or the spells graphical issues?

Metal Gear Rex
January 28th, 2011, 19:02
I have tried to make some rooms and the game doesn't crash, only with traps. I noticed that the "Cave In" spell doesn't graphically appears correctly, it doesn't show so many rocks like normally it shows. Also with the Lightening strike spell, it doesn't shows the ray.


Selling a lot of traps and then putting they again although I put only a very few ones will crash the game also, for example, selling 4 traps and putting only 1. Can be that memory isn't well freed?

mefistotelis, can you tell something about a Thing limit solution/traps problem or the spells graphical issues?

Alright that sounds like you're hitting the Thing Limit. I'm sure that the weirdness of you selling 4 traps and yet only being able to place 1 more is also due to the error that is in the thread that both I and Ogre linked to.

jomalin
January 28th, 2011, 20:11
OK! So we only can wait mefistotelis to fix this...