For those of you who accidentally enabled "the cheat" flag.

Forum for discussing the Torchlight single-player game.

For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 3:28 pm

I felt kinda bad after reading about someone who spawned a respec potion and lost the ability to trade all his set stuff, so I decided to see if I could figure out how to undo this. note that I'm not really a computer whiz when it comes to this kinda stuff (Okay, I am, but I'm a network support specialist, not a programmer or hex guru), but even for me I was able to figure it out after about 20 minutes of poking around.

The following fix is for restoring the shared stash to your character's game, after they have cheated. It does not remove their "the Cheat" title.

Step 1 - Backup your savefiles
Close Torchlight and find your savefiles. The are located in %appdata%\runic games\torchlight\save and have the .svt file extension. If you are having trouble finding your save folder, open Run by either pressing your windows Key+R, clicking on Start then Run (XP), or clicking the Windows Button and typing Run in the search box (Vista), then copy and paste the below line into the open box and click OK:

%appdata%\runic games\torchlight\save

Copy the contents of that folder to a new folder in another location such as your desktop or my documents folder. Do not put them in a subfolder of the save folder. If at any time you mess up your savefile or change your mind about doing this, copy your backups back to the original location to undo your changes.


Step 2 - Download and run HexEdit
HexEdit is a free program that you can download from http://www.physics.ohio-state.edu/~prewett/hexedit/

Step 3 - Open your savefile
When you run HexEdit, it will ask you for a file to open, go to your save folder and open the .svt file for your character. Your savefile is the one with a number that ends in .svt, such as 0.svt, 1.svt, 2.svt, and so on depending on how many characters you have. If you have more than one character, just open them up one at a time and look for the character's name on the right side of the window, if it's the wrong one, try one of the other savefiles.
Image
Location of character's name.

Step 4 - Find the cheater flag
Look on the LEFT side of HexEdit. Rows are labeled from 0, 10, 20, 30, 40, 50, etc. Locate row 40 and look in the first column. You should see 'd6' if your character is a cheater and '4e' if they are not.
Image
Location of cheater flag

Step 5 - Unset the cheater flag
Click on the d in 'd6' and start typing - change it to '4e'. You should see an uppercase N appear on the right.
Image
Location of cheater flag

Step 6 - Save your savefile
Go to File->Save As in HexEdit and save your file, overwriting your original in the torchlight\save folder.

Step 7 - Spawn a Shared Stash
Because your character had the cheater flag, the shared stash chest may have been deleted from the town - Your stash is still intact, there is just nothing to click on to open it. To create it, go to town and find a suitable spot for the new one, then open the console (shift+~), and enter the following command:

ANY 3178,1

Note that using any other cheat commands first will re-enable your cheater flag and cause the shared stash to immediately despawn when you close the console window. If you didn't use any other console commands and it still disappears when you close the console, then you did something wrong in steps 2-6. Also note that in some builds of the game apparently 3178 is the ID for some sort of monster or something and not the shared stash. If this is your case, you will have to type the ANY command by itself to get a list, and then find it in there.

Step 8 - Rinse and Repeat
You just cheated to spawn a shared stash, close torchlight and repeat steps 2-6 one final time. Make sure you do this immediately or else your stash will disappear again if you load up the town with the cheater flag enabled.


I wouldn't advise messing with anything else in that file unless you're experienced with hex editing.

Again, this is just something I figured out after poking around, so not sure if there are any other side effects from doing this. I can't promise it'll work for you, but it worked for me (Just as a test, I wasn't actually cheating, made temp characters to work with this)
Last edited by Zaggeh on Wed Nov 04, 2009 8:03 am, edited 5 times in total.
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 3:37 pm

By the way, I didn't specify, but do all this while the game isn't running! Pretty sure if you made any changes to your savefile while the character was loaded it wouldn't take effect anyway (overwritten on the next save)
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Shardz » Wed Oct 28, 2009 3:42 pm

Wow! How in the world you figured this out is beyond me, but you must have some programming chops! :lol: Bravo and thanks for helping those who strayed over to the dark side with regrets!
User avatar
Shardz
 
Posts: 1347
Joined: Tue Sep 29, 2009 4:54 pm

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 3:47 pm

Shardz wrote:Wow! How in the world you figured this out is beyond me, but you must have some programming chops! :lol: Bravo and thanks for helping those who strayed over to the dark side with regrets!


Lol, thanks. basically just an extreme game of "spot the difference" :-P Made one temp character, exited the game and backed up his legit .svt file, then went back in and spawned a potion and left again. Opened both files side by side in HexEdit and whammo, there it was. Didn't actually come so fast to me at first. I was looking past the name/title information all the way into the town properties and stuff the first time. Then I got frustrated and started over with another temp char and got it that time. After I confirmed it, tried it again on yet another temp character of another class to make sure that the header information was the same for both alchy and vanq (didn't test it out on the other guy, but should work hopefully).
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby nasarius » Wed Oct 28, 2009 3:50 pm

You're flipping three bits, which is kind of strange. I wasn't able to confirm it "in reverse" either. Changing the byte at 0x40 from 4E to D6 didn't brand me as a cheater.
nasarius
 
Posts: 70
Joined: Tue Oct 27, 2009 3:32 pm
Location: Berlin

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 3:52 pm

nasarius wrote:You're flipping three bits, which is kind of strange. I wasn't able to confirm it "in reverse" either. Changing the byte at 0x40 from 4E to D6 didn't brand me as a cheater.


Did you actually try your shared stash (not the normal one) after you did that? I'm sure that if you manually set yourself as a cheater you wouldn't be branded with the title, but I'm really surprised to see that it didn't remove the shared stash, or at least make it do nothing, from your character's game.
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby nasarius » Wed Oct 28, 2009 3:55 pm

You're right, no shared stash. Neato.

Still, no "the Cheater" after my name. I'd love to see the before/after saves, if you want to post them. I have the Steam version, so no console for now. It's easy to compare files with a binary diff program.
nasarius
 
Posts: 70
Joined: Tue Oct 27, 2009 3:32 pm
Location: Berlin

Re: For those of you who accidentally enabled "the cheat" flag.

Postby richnewman » Wed Oct 28, 2009 4:02 pm

Did this re-enable shared stash?
richnewman
 
Posts: 13
Joined: Tue Oct 27, 2009 7:11 pm

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 4:02 pm

nasarius wrote:I'd love to see the before/after saves, if you want to post them.


Sure. This is after I already changed that one part back to 4e though. There are still other obvious differences like the title. Like I said, I'm not an experienced hex guru, but if when you said 0x40, I don't really know what that means, but if it is something like "first column on the row that says 40", just so you know, that's only the position for my alchemist. I made a vanquisher and it was moved over a couple columns.

http://www.clylla.com/torchlight/cheat.svt
http://www.clylla.com/torchlight/normal.svt
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 4:03 pm

richnewman wrote:Did this re-enable shared stash?


Yes
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby fireflight » Wed Oct 28, 2009 4:26 pm

hey,

Thank you kindly for this. I really appreciate you thanking the time to try to figure this out. But, unless I've done something wrong, I don't think this is working for me. After making the changes, I still have "the cheater" after my name, and no shared stash.

Here is a pic of my hex edit:

http://img402.imageshack.us/img402/8060/50808046.jpg

Any additional help would be wonderful and would make my day!
fireflight
 
Posts: 6
Joined: Wed Oct 28, 2009 2:45 pm

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 4:30 pm

This won't actually remove the title from your name, all it will do is re-enable the shared stash.

Odd that it didn't work for you - Did you completely exit the game before you made the change with HexEdit? Then you saved it, overwriting the original file (not the backup, assuming you backed it up)?

One thing that I always did when I tested was after I re-opened Torchlight, I clicked on Load instead of play, then re-loaded my character - not sure if this makes a difference or not.
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby GenericJ » Wed Oct 28, 2009 4:34 pm

While we're in the subject of hex editing.
Image

I don't plan on releasing any tools to edit items, because I believe this game needs to be played properly.
I'm just killing time until torchED comes out. Please don't PM me asking for help about anything.
GenericJ
 
Posts: 20
Joined: Sun Oct 25, 2009 9:38 am

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 4:44 pm

Okay I found a flaw with the way I was testing it out.

my whole thing only works if you cheat, log out, don't log back in, and turn it off.

Apparently as soon as you cheat, it disables the use of shared stash AND it sets it so on your next login if you are still set as a cheater, it deletes the shared stash from town. BEcause I wasn't logging in twice in my test, the stash never got deleted - just disabled.

So, if you cheated AND your stash was deleted, then this method is only half the solution - you also need to figure a way to respawn it or repop the town. I was hoping hanging out in the dungeon for a few minutes would fix it but apparently not. I'll see what I can come up with and reply back when I have something.
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby fireflight » Wed Oct 28, 2009 4:48 pm

Edit-

Just read your above message. Ah, I see. Yes, that is what happened to me. If I am understanding you correctly, the shared stash does not appear in town for me.

Here's hoping! I'm sure there are many, like me, who are eagerly awaiting a solution! Thanks again for your time!
Last edited by fireflight on Wed Oct 28, 2009 5:02 pm, edited 1 time in total.
fireflight
 
Posts: 6
Joined: Wed Oct 28, 2009 2:45 pm

Re: For those of you who accidentally enabled "the cheat" flag.

Postby LtgCrabfish » Wed Oct 28, 2009 4:53 pm

GenericJ wrote:While we're in the subject of hex editing.
Spoiler: show
Image


I don't plan on releasing any tools to edit items, because I believe this game needs to be played properly.
I'm just killing time until torchED comes out. Please don't PM me asking for help about anything.


lol! Reminds me of that "Cheatbook" from Planescape: Torment xD

And it looks like you guys are ready to rip it up with the modding. Also, shouldn't this be discussed on the mod forum? o,O
User avatar
LtgCrabfish
 
Posts: 199
Joined: Thu Oct 15, 2009 1:57 pm
Location: Toronto

Re: For those of you who accidentally enabled "the cheat" flag.

Postby GenericJ » Wed Oct 28, 2009 4:58 pm

LtgCrabfish wrote:
GenericJ wrote:While we're in the subject of hex editing.
Spoiler: show
Image


I don't plan on releasing any tools to edit items, because I believe this game needs to be played properly.
I'm just killing time until torchED comes out. Please don't PM me asking for help about anything.


lol! Reminds me of that "Cheatbook" from Planescape: Torment xD

And it looks like you guys are ready to rip it up with the modding. Also, shouldn't this be discussed on the mod forum? o,O

This isn't modding! I'm also in Runic Insider's IRC waiting for someone to give me a save file with a console command done (cheater etc.) and one without it, and has no other changes.
GenericJ
 
Posts: 20
Joined: Sun Oct 25, 2009 9:38 am

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 5:02 pm

LtgCrabfish wrote:And it looks like you guys are ready to rip it up with the modding. Also, shouldn't this be discussed on the mod forum? o,O


I don't really have any interest in modding and I don't really understand what Generic's post is about. I'm just trying to find a solution for all the guys that spawned respect potions/whatever.

Almost done too! I found out how to spawn a new stash with the ANY command, but it's not working. I have a theory to test out, and after I confirm that it is working I will revise my first post with more detailed instructions for peopel who had their stash deleted.

If it doesn't work, then not entirely sure. :-P
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Re: For those of you who accidentally enabled "the cheat" flag.

Postby GenericJ » Wed Oct 28, 2009 5:06 pm

Zaggeh wrote:
LtgCrabfish wrote:And it looks like you guys are ready to rip it up with the modding. Also, shouldn't this be discussed on the mod forum? o,O


I don't really have any interest in modding and I don't really understand what Generic's post is about. I'm just trying to find a solution for all the guys that spawned respect potions/whatever.

Almost done too! I found out how to spawn a new stash with the ANY command, but it's not working. I have a theory to test out, and after I confirm that it is working I will revise my first post with more detailed instructions for peopel who had their stash deleted.

If it doesn't work, then not entirely sure. :-P

I edited an item, I've also edited armor to 59k on shoulders. That's all. I also have the structure for shared stash save file.
GenericJ
 
Posts: 20
Joined: Sun Oct 25, 2009 9:38 am

Re: For those of you who accidentally enabled "the cheat" flag.

Postby Zaggeh » Wed Oct 28, 2009 5:10 pm

Okay, got it! Sorry for the hold up.

First, follow all the instructions in my original post.

Then, load up your character, go to town, and use the following console command while standing in a location you would like the shared stash to be:

any 3178,1
(no space between the numbers, just a comma)

Then, you will be flagged as a cheater again but your shared stash will be back. Exit the game, and repeat all my instructions in my first post a second time.

Next time you logged in, the shared stash should be there and should work. If it disappears as soon as you close the console, then you messed up on the hex editing part.

Edited my original post to reflect these changes.
Zaggeh
 
Posts: 119
Joined: Tue Oct 27, 2009 1:15 pm
Location: Chester, VA

Next

Return to Torchlight Win/Mac/Linux Discussion

Who is online

Users browsing this forum: No registered users and 4 guests