[b34] Worm rot LUA error spam

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Dekar
Spiderkin
Posts: 559
Joined: Wed Jan 26, 2011 3:47 pm

[b34] Worm rot LUA error spam

#1 Post by Dekar »

Worm rot gives 1 LUA error per game turn. Encountered them in Lost Kingdom of Rekhnor and Unremarkable Cave.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [b34] Worm rot LUA error spam

#2 Post by darkgod »

What error ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Dekar
Spiderkin
Posts: 559
Joined: Wed Jan 26, 2011 3:47 pm

Re: [b34] Worm rot LUA error spam

#3 Post by Dekar »

I sent it ingame. :(

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: [b34] Worm rot LUA error spam

#4 Post 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?

Dekar
Spiderkin
Posts: 559
Joined: Wed Jan 26, 2011 3:47 pm

Re: [b34] Worm rot LUA error spam

#5 Post by Dekar »

It happens after engaging Worm that walks.

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: [b34] Worm rot LUA error spam

#6 Post 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.

Post Reply