[1.0.4] Broken save after crash

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Shibari
Cornac
Posts: 37
Joined: Tue Jun 25, 2013 2:39 am

[1.0.4] Broken save after crash

#1 Post by Shibari »

I died while farming Sludgenest and used my RoD. A while later, in the same area, Something Bad happened involving Vines, a ton of enemy oozs, like 11 spells on autocast including Elemental Split and Temporal Form. I got LUA error spammed and decided it was safer to end task rather than save.

Unfortunately, this character then got marked as dead. In the vault it shows me still wearing the Ring of Death even though I 100% for sure used it to self-rezz. Seems like some weird save interaction.

I can add detail on the bug that I end tasked over but there was so much going on I seriously doubt it would be worth the time to try to figure out. I did send an automated bug report on it, though.

Would much appreciate the save being fixed if possible, thanks. What files do I need to upload? What seems to be the directory for that character is much bigger than the limit for the forum.


Character name was Shields Up.

Waladil
Halfling
Posts: 103
Joined: Tue Jan 10, 2012 10:40 pm

Re: [1.0.4] Broken save after crash

#2 Post by Waladil »

After you logged off last night, I figured out the details. You've already got most of these steps, but I'll list them all here for posterity.

Step 0: Find your save file. All compressed file changes are best done with a combination of 7-zip and Notepad++, which allows you to edit sub-files within compressed .teag files. However, all notepad++ changes have to be done swiftly, because the temporary file might get deleted, which just means you have to do the change again. Annoying, though.

Resurrection step 1: Within desc.lua change "loadable" to true.
Resurrection step 2: Within game.teag, edit the file named "mod.class.Player" followed by a hexadecimal. If there are two or more of these files, then read through each one and decide which is most recent. Change two things within this file:

d["life"] to something positive (presumably your max HP, but you don't have to, strictly speaking)
d["dead"] from true to false

Resurrection step 3: Within game.teag, edit the file named "engine.level" followed by a hexadecimal. At the top of that file there should be an array of things that the level loads, each formatted like such:

d["e_array"]={[1]=loadObject('mod.class.WorldNPC-0x0cf2f308'),
[2]=loadObject('mod.class.WorldNPC-0x0cfd1608'),
[3]=loadObject('mod.class.WorldNPC-0x0cfd2e70'),

To the bottom of this list, append [X]=loadObject('mod.class.Player-XXXXX), where the first X is the number after the last entry on the list, and the second set of X's is the hexadecimal value from the player file.
Resurrection step 4: Load game, then move. If everything was done correctly, you should be alive and well! You can use abilities but you won't have a character sprite until you move. So don't be scared when you load and your character's nowhere on screen!

Post Reply