Page 1 of 1
[b34] Worm rot LUA error spam
Posted: Sat Oct 22, 2011 2:40 pm
by Dekar
Worm rot gives 1 LUA error per game turn. Encountered them in Lost Kingdom of Rekhnor and Unremarkable Cave.
Re: [b34] Worm rot LUA error spam
Posted: Sat Oct 22, 2011 4:21 pm
by darkgod
What error ?
Re: [b34] Worm rot LUA error spam
Posted: Sun Oct 23, 2011 4:18 pm
by Dekar
I sent it ingame.

Re: [b34] Worm rot LUA error spam
Posted: Sun Oct 23, 2011 5:59 pm
by edge2054
After talking to Dekar on IRC the error was on the rot_timer effect (line 1544 timed-effects/magical.lua in the SVN).
Code: Select all
on_timeout = function(self, eff)
eff.rot_timer = eff.rot_timer - 1
I can't see why it's producing an error though. I wasn't able to reproduce it and it looks like it's getting set properly in the talent code.
Code: Select all
target:setEffect(target.EFF_WORM_ROT, t.getDuration(self, t), {src=self, dam=t.getDamage(self, t), burst=t.getBurstDamage(self, t), rot_timer = 5, apply_power=self:combatSpellpower()})
Has anyone else encountered this error in b34?
Re: [b34] Worm rot LUA error spam
Posted: Sun Oct 23, 2011 8:41 pm
by Dekar
It happens after engaging Worm that walks.
Re: [b34] Worm rot LUA error spam
Posted: Sun Oct 23, 2011 9:40 pm
by edge2054
Okay, I think I have this tracked down. I believe Epidemic isn't passing the rot timer (I changed worm rot so the timed effect would track it's own timer rather then having it as an actor value and I don't believe I changed Epidemic to account for it).
Yup... found it.
I'll send you a diff Darkgod.