(fixed) Crashes
Posted: Sun Mar 04, 2007 10:20 pm
I'm trying to make a custom dungeon and so far I have managed to make the code segfault. I was using a bad color scheme for the map.pcx file and walked off the edge of the world.
Since it took me some time to figure this out, I can attest that a screwed-up color assignment in the pcx file can wreak havoc on a dungeon.
Also, DSB crashes when a wall item is placed on a floor tile and then clicked on, I assume because the engine thinks the player is trying to pick up the object.
I'm doing better now, but still having trouble with spawning color-coded pits, possibly because I read the levels from top to bottom, so when a pit color is encountered the lower level where the pit on the ceiling should be placed does not exist yet? More on that later...
Since it took me some time to figure this out, I can attest that a screwed-up color assignment in the pcx file can wreak havoc on a dungeon.
Also, DSB crashes when a wall item is placed on a floor tile and then clicked on, I assume because the engine thinks the player is trying to pick up the object.
I'm doing better now, but still having trouble with spawning color-coded pits, possibly because I read the levels from top to bottom, so when a pit color is encountered the lower level where the pit on the ceiling should be placed does not exist yet? More on that later...