Posted: Thu Oct 06, 2016 5:43 pm Post subject: Help with Hexidecimals
Im trying to modify a .sav file for a game im hacking by using a hex editor but i dont quite understand what...
BF C1 B4 A7 FB 6C 9C 62 BB C6 33 8C 43 E7 7E 87
...means. But i do know is that each pair (e.g. BF) represents something like a number for example. How can i convert this to text without ending up with...
What makes you think that value represents a string and is the value you're looking for?
Since you're using a hex editor, chances are the save file is encrypted.
That means you can't simply see what values those bytes actually represent.
Otherwise, you'd be using a normal text editor.
You would need to know how to decrypt the bytes to find a value and then know how to encrypt the bytes to replace them.
Sure you can change random bytes around and see what effect that has in-game... but good luck.
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Sat Oct 08, 2016 3:54 am Post subject:
Save game files are usually never plain text unless its for things like a character name etc. The data is typically binary data stored into a flat file. It is data representing various information such as a structure. Think of it like:
Code:
struct PlayerData
{
int CurrentHp;
int CurrntMp;
int MaxHp;
int MaxMp;
int Level;
int Experience;
int ExperienceToLevel;
int Strength;
int Agility;
int Mind;
int Intelligence;
char Name[64];
};
If this is stored directly into a file in that similar format, you are going to get something that looks like:
While my name is easily determined there as Atomos, the other data is not. You have to either debug the game and find where it saves the game data to the file and reverse what is what, or guess by editing things then reloading the save and see what changes in game. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum