Crash on entry

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Crash on entry

Post by Lunever »

Related or not?

Walking a few steps after entering the DM1 dungeon (as ghost) got me:

PROGRAM CRASH!
Location: 0 4 3
Reason: Segmentation Fault
Stack Dump:
DSBmain
DSBgameloop
got_mkeypress
Parting is all we know from Heaven, and all we need of hell.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Game crashed, original DM dungeon

Post by Lunever »

First time I could walk a few steps before it crashed, on retries it crashes right on entering.
Parting is all we know from Heaven, and all we need of hell.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on entry

Post by Sophia »

Since it's crashing on getting a keypress, and you were pushing for a lot of keyboard configuration features, I'll assume that something in your custom keyboard config is what is creating the problem.
Can you send me your dsb.ini? I'll try using your keyboard configuration and see if I can't duplicate and then fix the bug.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

sent to the mail adress you sent me your rtc source files from
Parting is all we know from Heaven, and all we need of hell.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on entry

Post by Sophia »

The reason for the crash is because it's trying to execute magic shortcuts when there are no characters that can do magic, because there are no characters at all. This shows up because you've got some keys (I would assume incorrect) defined so that they perform both movement and spellcasting functions-- a rather fortunate mistake because it lets us spot this bug!

As a workaround until I can fix it for real, though, just make sure your spellcasting shortcuts and your movement shortcuts are not defined to the same keys, and don't press the spellcasting keys until you have a champion.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

So I gonna delete the current dsb.ini and replace it with that from the download and retry.
Parting is all we know from Heaven, and all we need of hell.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

Nope, sorry. With a fresh ini and just some moevement keys defined (sxycad instead of numpad), on leaving and restarting, crash
Parting is all we know from Heaven, and all we need of hell.
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

I can use any keys defined right after defining them. Leaving the game and restarting will cause a crash.

Even just entering and leaving the keyboard menu without defining any key at all produces the same result - crash on restart, unless I reset the dsb.ini
Parting is all we know from Heaven, and all we need of hell.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on entry

Post by Sophia »

That is really strange. I can't reproduce that problem at all. :shock:
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

Hmmm, that is strange.
Can you define some keys that work at your machine even after restarting the game and send me the dsb.ini?
If the same ini works differently on 2 systems it must be something else.
Parting is all we know from Heaven, and all we need of hell.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on entry

Post by Sophia »

Sent!
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

If I use the dsb.ini you sent me (without any modifications of course), I get my crash again.

The crash reproducably occurs after selecting the DM1 dungeon.

The DM1 folder (placed as a subdirectory in DSB/Dungeons) does not contain anything other than the DM1 dungeon.

I'm using a laptop, that's why keyboard remapping is impotant to me.
(It's an older model, Samsung R40 T5500 Cinoso, 1,66GHz intel dual, 896 MB RAM, WinXPproSP3, DirectX 9.0c)

EDIT: Note however, I can play and restart with the original ini if I don't ever touch the menu.
Parting is all we know from Heaven, and all we need of hell.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on entry

Post by Sophia »

Just for fun, can you pretend that your problem is actually the one described in this thread: http://www.dungeon-master.com/forum/vie ... 53&t=28573 and grab the bugfix exe?

I have no idea if this it, but your crash log looks similar.

If that's the case then finding this other bug with the magic keys is just a bonus. :D
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Re: Crash on entry

Post by Lunever »

Yes, actually that is the same problem, and the fix works fine. Thank you!
Parting is all we know from Heaven, and all we need of hell.
Post Reply