(fixed) a bug report about DSB0.42
Posted: Thu May 06, 2010 3:20 pm
Edit by Sophia: If you experience this problem, you don't have to do anything. The download has been fixed. Just download DSB 0.42 again and you'll have a corrected version.
I've got DSB0.42 and tested with my custom dungeon and your test_dungeon.
But, I've found a seriously bug, so I'll report it.
When Monster cast a spell in DSB0.42, It was crashed.
This is a log.
I checked base/monster.lua and base/object.lua.
I guess that the source of crash is
parameter in line 343 is "delta".
"self.missile_damage_delta" is not defined in each monster of base/object.lua.
Therefor,
I added "missile_damage_delta" to each monster_arch in my own object.lua
and then copied function "monster_missile" from base/monster.lua and changed parameter "delta" to "ddelta" in my startup.lua.
it was correctly worked.
Thanks.
-Qwerty-
I've got DSB0.42 and tested with my custom dungeon and your test_dungeon.
But, I've found a seriously bug, so I'll report it.
When Monster cast a spell in DSB0.42, It was crashed.
This is a log.
Code: Select all
FATAL LUA ERROR: Lua Function dragon.msg_handler[100111]: base/monster.lua:346: dsb_shoot requires int in param 10
@@@ LUA STACK @@@
[N:0][N:2953][N:100111][N:0][S:base/monster.lua:346: dsb_shoot requires int in param 10]
@@@@@@
I guess that the source of crash is


Therefor,
I added "missile_damage_delta" to each monster_arch in my own object.lua
Code: Select all
obj.materializer.missile_damage_delta = 1
Code: Select all
local ddelta = nil
if (self.missile_damage_delta) then
ddelta = self.missile_damage_delta
end
dsb_shoot(missile_id, lev, xc, yc, facedir, shootside, pow, damage, delta, ddelta)
Thanks.
-Qwerty-