Page 1 of 1
character is permanently blind
Posted: Thu Feb 21, 2013 6:46 am
by evouga
Something hit me, and now I'm permanently blind.
Save file is at
http://www.evouga.com/misc/Tim.zip.
Re: character is permanently blind
Posted: Thu Feb 21, 2013 2:24 pm
by phantomglider
Did you dominate a headless horror's eye?
Re: character is permanently blind
Posted: Thu Feb 21, 2013 4:01 pm
by evouga
Yeah. Is that a known bug?
Is there any way to fix my character?
Re: character is permanently blind
Posted: Thu Feb 21, 2013 4:44 pm
by SageAcrin
Hum.
Code: Select all
if nb == 0 then
local sx, sy = game.level.map:getTileToScreen(self.summoner.x, self.summoner.y)
game.flyers:add(sx, sy, 20, (rng.range(0,2)-1) * 0.5, -3, "+Blind", {255,100,80})
self.summoner.blind = 1
game.logSeen(self.summoner, "%s is blinded by the loss of all its eyes.", self.summoner.name:capitalize())
end
end,
It seems like it's missing the...
Code: Select all
if not self.summoner then return end
...line that is up slightly higher for the resistances reduction.
As to how to fix, I dunno. Maybe someone better fluent in what the code there translates to exactly in the character file could help? It seems like it's just reverting that self.summoner.blind command.
Re: character is permanently blind
Posted: Thu Feb 21, 2013 5:13 pm
by Hachem_Muche
The code fix is:
Code: Select all
if nb == 0 then
local sx, sy = game.level.map:getTileToScreen(self.summoner.x, self.summoner.y)
game.flyers:add(sx, sy, 20, (rng.range(0,2)-1) * 0.5, -3, "+Blind", {255,100,80})
if not self.summoner.player then self.summoner.blind = 1 end
game.logSeen(self.summoner, "%s is blinded by the loss of all its eyes.", self.summoner.name:capitalize())
end
end,
As for fixing your character, it's easy from the Lua console, but would invalidate your character. From the command line there, type game.player.blind = nil
Re: character is permanently blind
Posted: Thu Feb 21, 2013 10:28 pm
by evouga
Maybe if I somehow temporarily blinded myself, I would regain sight after the temporary effect expires? But I have no idea how I would go about testing this.
Bummer. This bug pretty much instantly destroys characters

Re: character is permanently blind
Posted: Thu Feb 21, 2013 11:21 pm
by Aerach
Well, as per the invuln bug this invalidates rather than destroys. Unless the online listing means more to you than the play itself, do the console fix and finish your playthrough
Thanks for the unblind command, i've lost yeek to this.
Re: character is permanently blind
Posted: Thu Feb 21, 2013 11:42 pm
by darkgod
fixed