ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Dec 17, 2017 8:05 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Feb 21, 2013 6:46 am 
Offline
Wyrmic

Joined: Tue Jul 06, 2010 1:03 am
Posts: 231
Something hit me, and now I'm permanently blind.

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


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 2:24 pm 
Offline
Archmage

Joined: Fri Jan 20, 2012 12:13 am
Posts: 372
Did you dominate a headless horror's eye?

_________________
Quote:
<Ferret> The Spellblaze was like a nuclear disaster apparently: ammo became the "real" currency.


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 4:01 pm 
Offline
Wyrmic

Joined: Tue Jul 06, 2010 1:03 am
Posts: 231
Yeah. Is that a known bug?

Is there any way to fix my character?


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 4:44 pm 
Offline
Sher'Tul Godslayer

Joined: Tue Apr 10, 2012 6:52 pm
Posts: 1884
Hum.

Code:
      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:
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.


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 5:13 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
The code fix is:
Code:
      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.


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 10:28 pm 
Offline
Wyrmic

Joined: Tue Jul 06, 2010 1:03 am
Posts: 231
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 :(


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 11:21 pm 
Offline
Halfling

Joined: Thu Dec 13, 2012 10:22 am
Posts: 84
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.


Top
 Profile  
 
PostPosted: Thu Feb 21, 2013 11:42 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10144
Location: Angolwen
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group