Freezing Game

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
mwmw
Yeek
Posts: 10
Joined: Sun Aug 28, 2011 6:46 pm

Freezing Game

#1 Post by mwmw »

I wanted to tie up some loose ends before going to meet the final bosses, so I went to the Golem Graveyard with the intent of summoning and beating Atamathon. After clearing out the local golems, I decided that it would be far safer to let my golem (playing as an alchemist) do the dirty work so that I could escape if my golem got massacred. I dropped the eye and switched to my golem. I tried to move my golem over the eye, but the game froze and I had to end task it. I've repeated this three times so far, each with the same result.

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: Freezing Game

#2 Post by Grey »

Are there any errors reported in the te4_log.txt file in your ToME directory?
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

mwmw
Yeek
Posts: 10
Joined: Sun Aug 28, 2011 6:46 pm

Re: Freezing Game

#3 Post by mwmw »

What should I be looking for in the log file? I opened it and pressed ctrl+F to search for "error" but the only results that came up were for TERROR and a small error that arose because it couldn't find an .ogg file (since I'm playing the no music version). Should I be looking in the "t-engine4-windows-1.0.0beta31" folder, or the "T-Engine" folder under C:\Users\***\T-Engine?

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: Freezing Game

#4 Post by tiger_eye »

Ha, this is because it's trying to auto-pickup a quest/plot item and gets stuck in a while loop. Here's an easy way to fix this (checked and verified, of course):

Code: Select all

Index: game/modules/tome/class/Player.lua
===================================================================
--- game/modules/tome/class/Player.lua	(revision 4279)
+++ game/modules/tome/class/Player.lua	(working copy)
@@ -158,9 +158,7 @@
 		local i, nb = 1, 0
 		local obj = game.level.map:getObject(x, y, i)
 		while obj do
-			if obj.auto_pickup then
-				self:pickupFloor(i, true)
-			else
+			if not (obj.auto_pickup and self:pickupFloor(i, true)) then
 				if self:attr("auto_id") and obj:getPowerRank() <= self.auto_id then obj:identify(true) end
 				nb = nb + 1
 				i = i + 1
Index: game/engines/default/engine/interface/ActorInventory.lua
===================================================================
--- game/engines/default/engine/interface/ActorInventory.lua	(revision 4279)
+++ game/engines/default/engine/interface/ActorInventory.lua	(working copy)
@@ -136,6 +136,7 @@
 
 			local letter = ShowPickupFloor:makeKeyChar(self:itemPosition(self.INVEN_INVEN, o) or 1)
 			if vocal then game.logSeen(self, "%s picks up (%s.): %s.", self.name:capitalize(), letter, o:getName{do_color=true}) end
+			return true
 		elseif not prepickup then
 			if vocal then game.logSeen(self, "%s has no room for: %s.", self.name:capitalize(), o:getName{do_color=true}) end
 		end
Attachments
failed_autopickup_fix.txt
(1.25 KiB) Downloaded 106 times

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

Re: Freezing Game

#5 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