[RC3] Limmir's quest bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
qui
Cornac
Posts: 38
Joined: Wed Jan 11, 2012 8:39 pm
Contact:

[RC3] Limmir's quest bug

#1 Post by qui »

Got Limmir to the Valley, he told me to defend him and a timer started. Now every turn I get LUA error: /mod/class/NPC.lua:179: bad argument, and the timer doesn't count down.

Akaji
Low Yeek
Posts: 9
Joined: Thu Dec 13, 2012 5:46 pm

Re: [RC3] Limmir's quest bug

#2 Post by Akaji »

Getting the same error in RC4 but on line 188 of NPC.lua. It started immediately after talking to Limmir (where he tells you that the ritual will take some time and that we're not alone).

I get about 4-5 errors per turn, which is going to be a pain in the ass given that the timer for this event is over 300 turns...

Edit: as the OP mentioned, the timer doesn't count down. Is this a timed event or one that completes after a certain number of enemies are killed? If it's timed, I'll just have to abandon it as it seems unbeatable - unless the timer is counting down in the background and just not refreshing the display, but I don't want to sit through 360+ turns of this to find out that it's not beatable.

Edit 2: the timer is counting down, but it's either going really slow or it's not a turn timer. In about 40 turns' worth of movement and actions (including killing 7 demons), it has gone down by 2.

Edit 3: the error sometimes won't appear for a few turns, which is when the timer ticks down, but that's rare.

Akaji
Low Yeek
Posts: 9
Joined: Thu Dec 13, 2012 5:46 pm

Re: [RC3] Limmir's quest bug

#3 Post by Akaji »

Leaving the area and returning made things even worse... now I'm stuck in an infinite loop of error messages rather than 5/turn, and can't perform any actions at all as the game isn't processing any turns (e.g. Rod of Recall wouldn't count down to 0, so it would do no good).

Akaji
Low Yeek
Posts: 9
Joined: Thu Dec 13, 2012 5:46 pm

Re: [RC3] Limmir's quest bug

#4 Post by Akaji »

Here's the error log with trace:

Code: Select all

error = "Lua Error: /mod/class/NPC.lua:188: bad argument #3 to 'distance' (number expected, got nil)\
  At [C]:-1 \
  At [C]:-1 distance\
  At /mod/class/NPC.lua:188 \
  At [C]:-1 calc_default_fov\
  At /engine/interface/ActorFOV.lua:71 computeFOV\
  At /mod/class/NPC.lua:79 doFOV\
  At /mod/class/NPC.lua:57 act\
  At /engine/GameEnergyBased.lua:131 tickLevel\
  At /engine/GameEnergyBased.lua:62 tick\
  At /engine/GameTurnBased.lua:46 tick\
  At /mod/class/Game.lua:1041 "
seen = true
reported = true
I pulled the svn repo so I could take a look, and this is the line having the issue (NPC.lua:188):

Code: Select all

if who.ai_state.target_last_seen.x and who.ai_state.target_last_seen.y and core.fov.distance(self.x, self.y, who.ai_state.target_last_seen.x, who.ai_state.target_last_seen.y) > self.sight then return end

Post Reply