Half-Life 2 .sav file

Want to beat the game a cheater? Figure out Savegame file formats here.
Post Reply
User avatar
traderain
beginner
Posts: 39
Joined: Thu Aug 28, 2014 6:48 pm
Location: Hungary
Has thanked: 6 times
Been thanked: 9 times
Contact:

Half-Life 2 .sav file

Post by traderain » Sat Feb 13, 2016 10:15 am

Hi,
I have been struggling with this for quite a while. I figured out the .dem format for HL2 but I can't seem to get anywhere with this.
If anyone would help it would be greatly appriciated.
So far I know:

Code: Select all

char {4}     - Header (JSAV) 

byte {X}     - File Data 

// Directory 
// for each file 
while (variableID != 12) { 
uint16 {2}   - Variable ID 
if (variableID == 1){ 
byte {3}     - Unknown 
} 

if (variableID == 2){ 
uint32 {4}   - Unknown 
} 

if (variableID == 12){ 
uint32 {4}   - Unknown (3375) 
} 
} 

uint32 {4}   - Unknown (16256) 
byte {6}     - null 
uint16 {2}   - Unknown (4) 
uint16 {2}   - Unknown (72) 
uint16 {2}   - Unknown (3) 
uint16 {2}   - null 
uint16 {2}   - Unknown (12) 
byte {X}     - Unknown 
byte {1}     - null Unknown Field Terminator 
uint16 {2}   - Unknown (3866) 
char {128}   - filename (null)
Sav files: https://drive.google.com/folderview?id= ... sp=sharing
Thanks in advance.

User avatar
traderain
beginner
Posts: 39
Joined: Thu Aug 28, 2014 6:48 pm
Location: Hungary
Has thanked: 6 times
Been thanked: 9 times
Contact:

Re: Half-Life 2 .sav file

Post by traderain » Thu Mar 10, 2016 5:29 pm

A little progress report:
Image

User avatar
traderain
beginner
Posts: 39
Joined: Thu Aug 28, 2014 6:48 pm
Location: Hungary
Has thanked: 6 times
Been thanked: 9 times
Contact:

Re: Half-Life 2 .sav file

Post by traderain » Fri Sep 30, 2016 12:18 pm

If anyone is willing to help me with reversing the file completely I am willing to pay them because I desperately need this to be reversed for my university project. I started reversing it by looking at the sdk but I couldn't get anything other than the header of the file which I posted earlier. Sadly the wiki page(http://wiki.xentax.com/index.php/Half_Life_2_SAV) doesn't contain everything so its not a huge help. Thanks to anyone who took the time to read my post.
Regards,
Ben

User avatar
traderain
beginner
Posts: 39
Joined: Thu Aug 28, 2014 6:48 pm
Location: Hungary
Has thanked: 6 times
Been thanked: 9 times
Contact:

Re: Half-Life 2 .sav file

Post by traderain » Sat Jan 14, 2017 7:58 pm

Now parsing the basic file archive is done I can export the .hl? files:
Image
Image

dmtaukhua123
ultra-n00b
Posts: 5
Joined: Wed Aug 23, 2017 9:36 am
Location: USA
Contact:

Re: Half-Life 2 .sav file

Post by dmtaukhua123 » Thu Aug 24, 2017 2:09 am

good job!

Udogol2017
ultra-n00b
Posts: 1
Joined: Fri Sep 22, 2017 9:50 am

Re: Half-Life 2 .sav file

Post by Udogol2017 » Mon Oct 09, 2017 8:46 am

Thanks, nice help.

Post Reply