(fixed) Crash on flying objects landing...

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.
Post Reply
Remy
Craftsman
Posts: 111
Joined: Wed Sep 05, 2007 5:24 pm
Contact:

(fixed) Crash on flying objects landing...

Post by Remy »

I'm still trying to find if this in an error in the Lua code, but there's a crash if an object thrown or shot at a monster strikes them (it may be when it hits the ground after impact, I'm not sure). Here's the log entry:

Code: Select all

PROGRAM CRASH!
Location: 0 11 3
Reason: Segmentation Fault
Stack Dump:
DSBmain
DSBgameloop
run_timers
adv_flyer
i_to_tile
to_tile(off_trigger)
In this case, I was testing in the 'test_dungeon', and was throwing arrows at the pack of mummies. I've tried it from both sides, shooting and throwing. Spells work fine, and there's not always a crash (hence why I think it's from the item landing, not striking, since they sometimes get "stuck" in the monster).
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

Oops... :shock: :oops:

I made a lot of changes to that code in order to implement on_fly and I guess I didn't get it quite right.

Fixed now. :)
Post Reply