Page 1 of 1

[B19] Game breaking bug in Shadow Crypt

Posted: Wed Jan 26, 2011 4:15 pm
by Dekar
I entered the Shadow Crypt and now my character cant do anything except using items. I cant advance the time to escape with the Rod of Recall though, as I cant move or use skills or rest/wait.
If any user interaction is responsible for this bug: I tried to go back to the world map immediately after entering, but there are no stairs and I think I thus clicked resting instead. The resting dialog didnt disappear so I clicked it away. At this point it seemed to be bugged already.

The stdout.txt has some energy based errors that I can imagine are responsible for this:

Code: Select all

[ENGINE] Setting requested FPS to 30 (33 ms)
2 frames in 4.327 seconds = 0.462214 FPS (1334 keyframes)
checkHit	13.5	7
=> chance to hit	71.748394421391
Loading tile	tactical_friend.png
Updating zone name	Shadow Crypt (1)
Lua Error: /mod/ai//target.lua:30: bad argument #1 to 'max' (number expected, got nil)
	At [C]:-1 
	At [C]:-1 max
	At /mod/ai//target.lua:30 
	At (tail call):-1 
	At /mod/ai//target.lua:66 
	At (tail call):-1 
	At /engine/ai//talented.lua:56 
	At (tail call):-1 
	At (tail call):-1 
	At /mod/class/NPC.lua:47 act
	At /engine/GameEnergyBased.lua:73 tick
	At /engine/GameTurnBased.lua:44 tick
	At /mod/class/Game.lua:622 
120 ticks  in 31.998 seconds = 3.75023 TPS
Loading tile	border_7.png
Loading tile	border_9.png
Loading tile	border_1.png
Loading tile	border_3.png
Loading tile	border_8.png
Loading tile	border_4.png
23 frames in 1.039 seconds = 22.1367 FPS (1493 keyframes)
Lua Error: /mod/ai//target.lua:30: bad argument #1 to 'max' (number expected, got nil)
	At [C]:-1 
	At [C]:-1 max
	At /mod/ai//target.lua:30 
	At (tail call):-1 
	At /mod/ai//target.lua:66 
	At (tail call):-1 
	At /engine/ai//talented.lua:56 
	At (tail call):-1 
	At (tail call):-1 
	At /mod/class/NPC.lua:47 act
	At /engine/GameEnergyBased.lua:73 tick
	At /engine/GameTurnBased.lua:44 tick
	At /mod/class/Game.lua:622 


I would appreciate if someone could help me fixing my save. I removed most zone files to reduce size: http://dl.dropbox.com/u/1069548/TOME/Dekar.rar

Re: [B19] Game breaking bug

Posted: Wed Jan 26, 2011 11:12 pm
by Lekon
Exact same thing just happened to me. Was so stoked to finally go fight/beat my shade, walked in... stopped. Can't do a damn thing, Can't use skills, move, advance time, (Resting says it advanced a turn, but nothing happens) can't even use the rod, as the time never advances to charge it.

Is there any way to un-screw my poor Berserker?

Re: [B19] Game breaking bug

Posted: Thu Jan 27, 2011 10:22 am
by Dekar
Here is a quickfix to get out of a dungeon by editing tome/ai/target.lua line 30

from

Code: Select all

local sqsense = math.max(self.lite, self.infravision or 0, self.heightened_senses or 0)
to

Code: Select all

local sqsense = math.max(self.lite or 0, self.infravision or 0, self.heightened_senses or 0)

Re: [B19] Game breaking bug

Posted: Thu Jan 27, 2011 10:33 am
by martinuzz
if you can use items, can you equip/de-equip armor to advance time maybe?

Re: [B19] Game breaking bug

Posted: Thu Jan 27, 2011 5:53 pm
by Lekon
Equipping/de equipping, even dropping/picking up items works fine, but somehow doesn't advance time at all. Very strange.

Re: [B19] Game breaking bug

Posted: Thu Jan 27, 2011 6:24 pm
by Lekon
Dekar wrote:Here is a quickfix to get out of a dungeon by editing tome/ai/target.lua line 30

from

Code: Select all

local sqsense = math.max(self.lite, self.infravision or 0, self.heightened_senses or 0)
to

Code: Select all

local sqsense = math.max(self.lite or 0, self.infravision or 0, self.heightened_senses or 0)

That worked. I had to reinstall T engine afterwards, in order to get my profile back online instead of having a version mis-match, but THANK YOU.

(Quick edit: Doomed Class Unlock! Woohoo!)

Re: [B19] Game breaking bug

Posted: Fri Jan 28, 2011 7:11 pm
by darkgod
fixed

Re: [B19] Game breaking bug

Posted: Sat Jan 29, 2011 3:46 am
by brianros
Would anyone be kind enough as to explain me how to solve this issue?

thanks in advance

Re: [B19] Game breaking bug in Shadow Crypt

Posted: Thu Feb 03, 2011 2:58 pm
by Iniqui
Deleted