character is permanently blind

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
evouga
Wyrmic
Posts: 231
Joined: Tue Jul 06, 2010 1:03 am

character is permanently blind

#1 Post by evouga »

Something hit me, and now I'm permanently blind.

Save file is at http://www.evouga.com/misc/Tim.zip.

phantomglider
Archmage
Posts: 372
Joined: Fri Jan 20, 2012 12:13 am

Re: character is permanently blind

#2 Post by phantomglider »

Did you dominate a headless horror's eye?
<Ferret> The Spellblaze was like a nuclear disaster apparently: ammo became the "real" currency.

evouga
Wyrmic
Posts: 231
Joined: Tue Jul 06, 2010 1:03 am

Re: character is permanently blind

#3 Post by evouga »

Yeah. Is that a known bug?

Is there any way to fix my character?

SageAcrin
Sher'Tul Godslayer
Posts: 1884
Joined: Tue Apr 10, 2012 6:52 pm

Re: character is permanently blind

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

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: character is permanently blind

#5 Post 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
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

evouga
Wyrmic
Posts: 231
Joined: Tue Jul 06, 2010 1:03 am

Re: character is permanently blind

#6 Post 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 :(

Aerach
Halfling
Posts: 84
Joined: Thu Dec 13, 2012 10:22 am

Re: character is permanently blind

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

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

Re: character is permanently blind

#8 Post by darkgod »

fixed
[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 ;)

Post Reply