Possible bug with large # of sustains

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Possible bug with large # of sustains

#1 Post by shonen »

I had just cleared the halfling ruins and was attempting to recall back to the world map, when I hit an issue that looks exactly like what's described in this post.

The game was hung on "Generating Level please wait" with the bar sort of aimlessly bouncing around. Someone in the above referenced thread suggested that it could be related to a large number of sustains. I was running six or so, playing a stone warden.

Anyway, I had to kill the process, attempted to reload the character, and it seems to have saved just before loading the world map. The character loads "successfully", but he's on a completely black screen, and lua errors if I try to autoexplore or exit the level. Is there any way to recover from this without using the debug console and invalidating the game? Also, is there any more info I can provide to make this a useful bug report?

thanks,

shonen

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

Re: Possible bug with large # of sustains

#2 Post by Hachem_Muche »

6 is not very many sustains actually. There have been a number of level generating bugs causing infinite level generation times that have been gradually resolved through the betas. This particular kind of bug is difficult to diagnose and fix because it often doesn't generate any errors.

As for providing more info: Immediately after getting the lua errors, exit and save the game. And, before restarting the game again, locate the file te4_log.txt in the main game directory, open it in a text editor, and search for "lua error". Copy text (including several lines before and after the error message, including the entire call back trace) to a post in this forum. Use the "Code" button and put it in a code block for better readability.
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Re: Possible bug with large # of sustains

#3 Post by shonen »

In that case I've probably destroyed the useful info, by attempting to restart several times in hopes of saving my character. It's also possible that it wasn't there to begin with, as I don't appear to get the log file on a Mac. However, I was prompted by the game to upload data on a lua error during that first attempt to recover so hopefully that got to the right people.

Also, is there any way to save the character? He was doing quite well (for me). It appears that he's stuck between the world map and the halfling ruins exit. This bit from game.teag/main seems relevant:

Code: Select all

d["zone"]=loadObject('mod.class.Zone-0x218f23e0')
d["save_name"]="Gumby"
d["difficulty"]=2
d["w"]=1533
d["state"]=loadObject('mod.class.GameState-0x222133a0')
d["on_level_load_fcts"]={["wilderness-1"]={[1]={["fct"]=loadstring("LJ\000$@/data/zones/halfling-ruins/zone.lua“\000\000\
\000*g4\000\0007\00073\000>\00073\000>7:7	:G\000\000ywild_yxwild_x\000subtypehalfling-ruins	type\rzone-pop\rpickSpot\000	mainfindMember\
party	gamezone\000\000level\000\000p\000	spot\000\000\000"),
}
,
}
,
}


Thanks,

shonen

shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Re: Possible bug with large # of sustains

#4 Post by shonen »

... also, in case it's helpful, here's the error I get when I try to explore or use a "stair" key:

Code: Select all

Lua Error: /mod/class/Player.lua:667: attempt to index field 'level' (a nil value)
	At [C]:-1 __index
	At /mod/class/Player.lua:667 spotHostiles
	At /mod/class/Player.lua:732 restCheck
	At /engine/interface/PlayerRest.lua:46 restInit
	At /mod/class/Game.lua:1368 
	At /engine/KeyBind.lua:224 

Post Reply