Crash on monster movement

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
LordGarth
Apprentice
Posts: 41
Joined: Thu Jan 27, 2011 6:21 pm

Crash on monster movement

Post by LordGarth »

Hello,

This the best editor right now for me. It is the only that has worked. However I am now getting an error message which I believe could be from the monsters I have put in.
Here is the log files below
Any suggestion to fix this would be great. Also I am trying to put in music and other sound effects. Is there a way to do that?

Thx,

LordGarth
INIT: Parsing configuration file
INIT: Using gamedir C:\Documents and Settings\Mary Lou Simmons\My Documents\Gary's Documents\Garys Music\Dun1 (base:0)
INIT: Starting fullscreen mode
INIT: Using color depth of 32
INIT: Starting FMOD
INIT: Triple buffering unavailable or disabled.
LUA: Lua initialized
Parsing base/global.lua
Parsing base/graphics.lua
Parsing base/inventory_info.lua
Parsing base/util.lua
Parsing base/triggers.lua
Parsing base/conditions.lua
Parsing base/monster.lua
Parsing base/monster_ai.lua
Parsing base/methods.lua
Parsing base/damage.lua
Parsing base/xp.lua
Parsing base/magic.lua
Parsing base/msg_handlers.lua
Parsing base/hooks.lua
Parsing base/system.lua
Parsing base/render.lua
Parsing base/startup.lua
Parsing base/objects.lua
OBJ: 405 system archs
OBJ: 405 total archs
DUNGEON: Attempting to load
Parsing C:\Documents and Settings\Mary Lou Simmons\My Documents\Gary's Documents\Garys Music\Dun1/dungeon.lua
PROGRAM CRASH!
Location: 0 1 0
Reason: Segmentation Fault
Stack Dump:
DSBmain
DSBgameloop
run_timers
monster_acts
monster_move
lua.sys_ai_far
lua.dsb_ai
ai_msg_handler
lmon_dirmove
mon_move
LordGarth
Apprentice
Posts: 41
Joined: Thu Jan 27, 2011 6:21 pm

Re: DSB error

Post by LordGarth »

I have fixed this problem. It turns out to be the monster I put in the dungeon. Now I only use monster generators so that the only monsters that r out and about r the one near the party.

LordGarth
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: DSB error

Post by Sophia »

I'm glad DSB is (generally) working for you. :)

You're correct that the problem has something to do with monsters. However, this is a crash of the core engine itself, and should never happen in normal operation. Simply working around it isn't really the right answer. I would like to fix this.

I can fix this problem if I knew more about it, but I'll need more information from you, like what monster you added, where you did any strange things to that monster (messages, qswaps, and so on), what you were doing when it crashed, whether it crashed all the time or just randomly, and other such things. If you still have a copy of the dungeon that made the crash occur, that would be even better.
LordGarth
Apprentice
Posts: 41
Joined: Thu Jan 27, 2011 6:21 pm

Re: Crash on monster movement

Post by LordGarth »

The crash always occurs as soon as I move from party start in any direction. I can turn but not move forward in any direction. It is just a one floor map and I had about 20 monsters in various locations on the map.

I will check to see if I still have the map. I am putting in monster generators now and put triggers nearby to set off the monsters. I am putting some triggers on destroy self so the triggers go off once and only once.

Is there a way to use different walls sets and put new weapons and armor into the game?

Thx,

LordGarth
LordGarth
Apprentice
Posts: 41
Joined: Thu Jan 27, 2011 6:21 pm

Re: Crash on monster movement

Post by LordGarth »

Also, I think all the monsters were trying to do something all at the same time. Perhaps a general instruction for all monsters would need to be that they r inactive untill the party of heroes is within a certain distance.

LordGarth
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on monster movement

Post by Sophia »

LordGarth wrote:Is there a way to use different walls sets and put new weapons and armor into the game?
Yes, though it requires some very minor code editing.

You'll need to create a startup.lua and an objects.lua for your dungeon. Take a look at the ones used in the test_dungeon for more information and examples, and feel free to ask if you have more questions. :)
LordGarth
Apprentice
Posts: 41
Joined: Thu Jan 27, 2011 6:21 pm

Re: Crash on monster movement

Post by LordGarth »

Hello, I think private messages are just staying in my outbox so I will post here as well as sending u a private message

I was inquiring about adding new wall graphics and weapons armor and monsters. You said I would need a startup.lua file and objects.lua file.

I want to check the ones on the test dungeon per your suggestion. I need to know how to open a lua file. Is there a program for opening and viewing a lua file.

Also, I am looking for a dungeon editor with modern graphics. Dungeon Maker looks good. Are u aware of a program with modern graphics.

Thx,

LordGarth
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Crash on monster movement

Post by Sophia »

LordGarth wrote:Hello, I think private messages are just staying in my outbox so I will post here as well as sending u a private message
It doesn't leave the outbox until the recipient reads it.
LordGarth wrote:I need to know how to open a lua file. Is there a program for opening and viewing a lua file.
It's just a text file. Notepad will suffice. You could also try an editor designed for editing code, like SciTE. There is also a Lua editor called LuaEdit but some people have had problems with it, so your mileage may vary.
LordGarth wrote:Are u aware of a program with modern graphics.
I m, how abt u?
No, seriously, please stop with the text-message-speak. :P

Rasmus's "Dungeon Master Tribute" is one that I'm familiar with. I'm sure there are others. Check the "Clones (Modern)" section under the Quick Links in the upper right. Keep in mind that none of these are compatible with DSB, though.
Post Reply