[1.4.9] Got Stalked, counter in negative numbers infinitely

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
tajeh
Low Yeek
Posts: 9
Joined: Sat Jul 27, 2013 8:40 pm

[1.4.9] Got Stalked, counter in negative numbers infinitely

#1 Post by tajeh »

A random unique mold has stalked me, the game displayed an error popup during the fight.

After mold's death I've noticed the stalk counter on me does not go away - instead, it went into negative numbers and keeps increasing.

Attaching an error report file and a screenshot.

Character: http://te4.org/characters/55307/tome/01 ... 24722c646a

Also, the character is unplayable due to stalked effect, I can't change levels. Do you guys know of a way to fix the savegame and get rid of the status effect?
Attachments
screenshot
screenshot
tome-1.4.9-1482356046.jpg (160.53 KiB) Viewed 1511 times
5df8beb51aa3e768006d22debe5e2953.txt
error report
(1.18 KiB) Downloaded 94 times

Number43
Wyrmic
Posts: 239
Joined: Tue Dec 20, 2016 7:46 pm

Re: [1.4.9] Got Stalked, counter in negative numbers infinit

#2 Post by Number43 »

If you can't change levels, how'd you get to last hope?

tajeh
Low Yeek
Posts: 9
Joined: Sat Jul 27, 2013 8:40 pm

Re: [1.4.9] Got Stalked, counter in negative numbers infinit

#3 Post by tajeh »

Add: phew, I was able to get rid of the effect by editing the save file.

Later edit: DO NOT USE this solution :) Unless you are at the very start of the game.
It works to remove effect, however it will reset the global map (cover it with fog) and remove any areas unlockable through quest (e.g. Lumberjack Village, Last Hope Cemetery)
A good question is how to restore the areas, but purely off topic.



Writing it down here for benefit of everyone else with similar problems:

1) Find and open the folder where the game keeps save files.
On Windows 7 it is %USERPROFILE%\T-Engine\4.0\tome\save\<character name>
e.g. in my case it was f:\Users\taj\T-Engine\4.0\tome\save\neudacha

2) Inside there are several files tracking your game progress. The one you need is called game.teag

3) This file is an archive. Make a backup of the file (e.g. copy it to game.teag.bak), then rename it to game.zip and extract the contents into a temp folder.

4) Double check that you made a backup

5) In the folder with the extract, find file named like mod.class.Player-<hexidecimal number>
In my case it was mod.class.Player-0x10827cd0, the number will be different for you. There is only one file with name like that so you shouldn't have problems locating it.

6) Open the file in any text editor. It is more or less human-readable.

7) Search for the string d["tmp"]={ inside. This is a beginning of a section that, I guess, describes temporary effects on your characters.
Inside there are comma-delimited named subsections for each effect.
You'll need to identify whatever you want to get rid of and just delete it from the file.
In my case it was easy to spot what I need to remove, as there was something going by the name EFF_STALKED:

Code: Select all

d["tmp"]={["EFF_STALKED"]={["particle"]=loadObject('engine.Particles-0x167e6890'),
["effect_id"]="EFF_STALKED",
["dur"]=-4895,
["amount_decreased"]=0,
["particleBonus"]=1,
["maximum"]=13,
["src"]=loadObject('mod.class.NPC-0x138da7b8'),
["getName"]=loadstring("LJ\000@/data/timed_effects.lua‰\000\000\000 /.7\000\000\000\000T	Ђ4\0007777\000\00067\000\000TЂ%\0007\000\000\000TЂ7\0007\000\000T\
Ђ\000%	\0007\0007\0007\
>$H\000TЂH\000G\000\000capitalize from 	namesrceffect	desctempeffect_def\
Actor\
classmodeffect_idself\000\000!name\000\000\000"),
["resolveSource"]=loadstring("LJ\000@/data/timed_effects.luaj\000\000\000%7\000\000\000\000T	Ђ7\000\0007\000\000TЂ7\000\000\0007@\000TЂH\000\000G\000\000resolveSourcesrcself\000\000\000\000"),
["apply_power"]=24,
["save_string"]="Mental save",
["minimum"]=0,
["total_dur"]=13,
["__setting_up"]=true,
}
,
}
Pay attention to carefully track what falls inside pattern ["your effect name"]={effect description},.
In my case what's left was just d["tmp"]={}
Also, IMPORTANT, the file seems to have Unix line endings, so take care to not break it.
For those not sure whats Unix line ending, and edit in Notepad - a) Don't create line breaks, b) If you see dots between sections, e.g. .d["tmp"]={}., don't delete them as these dots are actually line breaks.

8) Save the file and archive it back inside game.zip. Then copy game.zip into game.teag - done!

9) If the game goes black screen when you load it, then something went wrong - double check that you haven't screwed up the dots, curly brackets, etc.
Last edited by tajeh on Wed Dec 21, 2016 11:02 pm, edited 2 times in total.

tajeh
Low Yeek
Posts: 9
Joined: Sat Jul 27, 2013 8:40 pm

Re: [1.4.9] Got Stalked, counter in negative numbers infinit

#4 Post by tajeh »

Number43 wrote:If you can't change levels, how'd you get to last hope?
I used rod of recall to get to the wilderness, then entered town successfully, and then discovered that I can't change levels when tried to go back to the wilds :?

Post Reply