Page 1 of 1

[b42] Caldera dream triggers game-ending bug.

Posted: Mon Aug 20, 2012 9:15 am
by SageAcrin
First dream worked fine, was puttering around with my Yeek Summoner just fine, got neat mouse dream.

Second one saves to a black screen, hangs indefinitely, and all load attempts hang indefinitely.

[SHADER] Loading from /data/gfx/shaders/funky_bubbles.lua
Lua Error: /engine/Shader.lua:123: attempt to index local 'shad' (a nil value)
At [C]:-1 __index
At /engine/Shader.lua:123 createProgram
At /engine/Shader.lua:139 loaded
At /engine/class.lua:325 load
At /engine/Savefile.lua:384 loadObject
At [string "d={}..."]:351 deserialize
At /engine/class.lua:316 load
At /engine/Savefile.lua:384 loadObject
At [string "d={}..."]:354 deserialize
At /engine/class.lua:316 load
At /engine/Savefile.lua:384 loadReal
At /engine/Savefile.lua:452 loadGame
At /engine/Module.lua:627 instanciate
At /engine/utils.lua:1843 showMainMenu
At /engine/init.lua:124
At [C]:-1 dofile
At /loader/init.lua:183

Here's the error I dug out of the log, when I try to load it. If it helps, I have to run with OpenGL Shaders off, because my computer is not very good. :|

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Wed Aug 22, 2012 10:34 pm
by goldjas
I'm not sure what a "dream" is but I got the same thing when I tried to enter a new area on the map called "Volcano Caldera" which I assume is what your referring to.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 12:08 am
by Planetus
I reached the second screen of Caldera and was pulled into a dream where I had to 'find my wife'. Whether I win it or die in it, the load screen stops at 54%. I couldn't take an in-game screenshot with the frozen loading screen, but I took a Windows screenshot. I had to edit it down substantially to get it small enough to upload here, but presented are the variables I consider significant. I'm not sure how the text in the bottom left got messed up, but it was because of the image editing, not the original screenshot. If it's important, I was playing as a yeek paradox mage.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 2:55 am
by SageAcrin
Okay, I got DarkGod to unstick my game, and made the SVN fix to the bug into a simple addon for myself, with which I completed the Caldera.

So I attached it to this. (There's a teaa in the zip. Yes, that's technically a zip within a zip, but it's easier to uncompress a zip file and put an addon into the folder than it is to change the extension.)

I'm not sure if it'll unstick you from it if you're already in the middle of the problem, though, since I was unstuck first.

I'd just upload this onto site, but for some strange reason, I'm having problems getting any addon to automatically display-they all require me to hit Show Incompatible for some reason, so I don't know if it's showing up properly or if there's something odd about my copy for some reason(Had people both come up fine with plugins I was having trouble with and not, when I was asking about it, so it's not just my problem I guess...). As such, anyone that uses this may need to hit Show Incompatible to get it to show up, too.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 4:11 am
by bloth
Sage, I had the exact same bug as you. Thanks for making the fix! Unfortunately it does not get my character unstuck.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 4:39 am
by ho hum
Tried the fix. Came up as "noncompatible" addon. Did not fix char's load screen from freezing.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 8:38 am
by SageAcrin
Ah, well, sorry. :| It was worth a shot, since it worked on my unstuck character, but I guess once the problem's happened you're stuck.

Turning on OpenGL Shaders should fix the problem, but if you're like me and have a computer that's not realistically capable of doing that...

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 10:15 am
by XLambda
SageAcrin wrote: Turning on OpenGL Shaders should fix the problem, but if you're like me and have a computer that's not realistically capable of doing that...
So playing the game with shaders on should keep the game from crashing in this situation? Good to know. :)

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Thu Aug 23, 2012 9:09 pm
by Planetus
It may keep the game from crashing under some bugs, but it won't help me with my loading screen. I was running with shaders on already. If I try to load the game with them off (just in case, you know), it won't load the save file at all (which was auto-saved on entrance to the dream). Apparently dreams require shaders on.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Wed Aug 29, 2012 1:29 pm
by Robsoie
Certainly related to what i just experienced
I ran into that Volcano Caldera location for the first time (it's been several versions of ToME4 i didn't played) and once i enter, the location load, the game autosave , but from there the interface disappear, there's only the visual tiles and the game is completely frozen (the music is the only thing still working).

Good that i back up my saves (from ToME4 crash past experience) before entering any new location, because due to the game autosave and it's impossible to load the save that occur at this freeze, it would just have killed the character i was running.

in the log there is :

Code: Select all

Lua Error: /engine/Shader.lua:160: attempt to index field 'shad' (a nil value)
	At [C]:-1 __index
	At /engine/Shader.lua:160 setUniform
	At /mod/class/GameState.lua:648 displayWeatherShader
	At /mod/class/Game.lua:1111 displayMap
	At /mod/class/uiset/Minimalist.lua:1764 display
	At /mod/class/Game.lua:1156 
that is repeated a -very- lot of time.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Wed Aug 29, 2012 7:50 pm
by darkgod
fixed

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Sun Nov 11, 2012 8:22 am
by CDisciple
I ran into exactly the same problem today as described by Robsoie, though I unfortunately don't have backup saves.

EDIT:However, turning OpenGL shaders on solved the problem.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Fri Aug 16, 2013 9:01 am
by Predawn
Bumping this topic as I have fallen victim to a game-ending bug at the Caldera dream. My main character was in a fight and was caught up in a maelstrom when the timer elapsed, and I had to find my Lost Wife. No problem finding and beating the Lost Wife, but infinite Lua Errors occur when I return to my main character in the maelstrom. Partial error log inlined.

Code: Select all

Lua Error: /data/talents/psionic/distortion.lua:225: attempt to call global 'DistortionCount' (a nil value)
	At [C]:-1 DistortionCount
	At /data/talents/psionic/distortion.lua:225 act
	At /engine/GameEnergyBased.lua:126 tickLevel
	At /engine/GameEnergyBased.lua:62 tick
	At /engine/GameTurnBased.lua:46 tick
	At /mod/class/Game.lua:1054 
 ----------------  Stack Dump ----------------
2: table // 3105e18
1: table // 3105e18
--------------- Stack Dump Finished ---------------
[PULL] from	23	23	towards	23	46	over	1
[PULL] try	nil	nil	0
[LOG]	Eat my Vines is pulled in by the maelstrom!
[PROJECTOR] starting dam	26.147287039412
[PROJECTOR] after difficulty dam	26.147287039412
[PROJECTOR] res	3	0.97	 on dam	29.546434354536
[PROJECTOR] after resists dam	28.660041323899
[PROJECTOR] after flat damage armor	28.660041323899
[PROJECTOR] final dam	28.660041323899
This error is repeated many times, with Lua Error dialog boxes opening up so fast that they kill the game.
Game details:
ToME 1.0.4
Character is a Dwarf Stone Warden ( Level 21)
Addons: Stone Warden, Items Vault.

Re: [b42] Caldera dream triggers game-ending bug.

Posted: Fri Aug 16, 2013 5:29 pm
by Hachem_Muche
This last bug is unrelated to the Caldera and is triggered after loading a saved game with an active Maelstrom when something gets hit by the effect. I have sent a fix to DG for this.