Half-Life 2 .sav file

Reading, editing and everything related to the files created by games to contain savegames and configurations
traderain
Posts: 12
Joined: Sat Feb 06, 2016 6:06 pm

Half-Life 2 .sav file

Post by traderain »

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=0B3mjSUI16K7cX0RQc3dSVk80STg&usp=sharing
Thanks in advance.
traderain
Posts: 12
Joined: Sat Feb 06, 2016 6:06 pm

Re: Half-Life 2 .sav file

Post by traderain »

Anyone? Any help would be apriciated. Thanks in advance.