I am trying to edit a game save with an Hex editor but it doesn't allow me to change anything, it's frustrating

zShxck@lemmy.ml to Linux@lemmy.ml – 13 points –

I am using Ghex and Bless and both of them display the value of my gold but I cannot edit it. I am missing something?

13

Is the hex file not saving with those editors, or is the game just not showing the new value once it's loaded?

Nono, i cannot input any values, that's the problem. Anyhow, I tried ImHex and with it I am able to change values now... I don't know why

The file could be digitally signed. By editing you change the hash value that will be computed when the file is checked for integrity. Just a wild guess.

I don't know I tried ImHex and with it I am able to change values now... I don't know why

Maybe your other editor messed up the encoding?

I think you are right, I saw a different set of numbers in the left bar, but with ImHex the numbers were "correct"

I don't know these programs. Some hex editors are weird about editing, I use bvi to edit and it works pretty good for me.

Yeah I tried ImHex and with it I am able to change values now... I don't know why

Cool if it works. Stick with what works for you

I had similar frustrations with a game. It's very easy to make mistakes while you're a beginner in editing such files (I don't know if you are).
One advice is to make sure to keep the data the same length.

If that doesn't help, observe the file's structure a bit more. Maybe it uses a checksum somewhere for the data you want to edit, or it is just stored elsewhere and you were editing the wrong thing.
Make a save. Make the data to change (in the shortest time possible) and make a new save. Compare these for what have changed.

But also, what is your problem?
Does the value just don't change, or the save becomes corrupted?

Cannot input any value. I tried ImHex and with it I am able to change values now... I don't know why

Oh and one more thing!

Do you obtain this file from the file system, or do you need to extract it from some kind of a container file, and then implant back the modified version?
SnowRunner's asset files cannot be edited unless you unpack and repack them with winrar. Anything else (as far as I tried, windows tools at the time) and it won't work.