How To Read And Edit ASCII File with HEX Values Inside
-
I’m trying to edit the save file for a game I have, but the game Devs wrote their save file in a very smart, and right now very annoying, way. It’s a normal ASCII file with lines for each individual game object and human readable variable names, like “ECharacterStatType::Level” for the PC’s level, but then, instead of an ASCII number for the aforementioned level’s value, it uses Hex values instead. I’ve tried using a regular hex editor, like the standard hex editor plugin, but that wants to treat the entire file as nothing but hex codes and ignores line breaks, instead just always showing 16 hex codes per line and then wrapping to a new line, which makes it harder to read the human readable ASCII in the original file. Is there a way to view the file as an ASCII file with the line returns as intended in the file (so objects with their multiple variable fields are separated on to different lines, and similar variable fields all line up vertically), but show the non-ASCII parts as their actual Hex code values?!? And be able to easily edit those hex code values just as if they were normal text in a text editor?!? I’ve attached a screenshot of the file so that you can see what I’m talking about…

-
The 1st 4 characters define the format. It is
GVAS. 2-way convertors exist to change the format to an editableJSONformat or similar. Editing the binary directly might not be good as the 1st 16 lines look like a header that may define data length and other critical information that may make the editing invalid. -
@Tnega-Terces said in How To Read And Edit ASCII File with HEX Values Inside:
It’s a normal ASCII file with lines for each individual game object and human readable variable names
I totally agree with @mpheath , you are barking up the wrong tree. Just do a google search on the GVAS file format. It is clearly stated that it’s a “binary” file format, in spite of being able to read some text within it. Editing it with any text editor is bound to fail!
Terry