Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with Hexidecimals

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Lord of Gamehacking
Newbie cheater
Reputation: 0

Joined: 02 Aug 2016
Posts: 15

PostPosted: Thu Oct 06, 2016 5:43 pm    Post subject: Help with Hexidecimals Reply with quote

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...

¿Á´§ûlœb»Æ3ŒCç~‡

...or does it not work like that?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Oct 06, 2016 7:22 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Lord of Gamehacking
Newbie cheater
Reputation: 0

Joined: 02 Aug 2016
Posts: 15

PostPosted: Fri Oct 07, 2016 8:27 pm    Post subject: Reply with quote

I attempted to try to figure out what they meant by translating the UTF-8 to "Escaped" ASCII using the internet.

u00BBRh\u00CB\u20305\u2018Q\\Gq)

Not really sure where to go from here. Im new to all of this.

Maybe i can use a decompiler?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Oct 08, 2016 3:54 am    Post subject: This post has 1 review(s) Reply with quote

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.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites