Quantcast

Jump to content

» «
Photo

Save File Format Documentation

No replies to this topic
spaceeinstein
  • spaceeinstein

    Chocolate

  • GTA Mods Staff
  • Joined: 17 Jul 2003
  • Hong-Kong
  • Major Contribution Award [Mods]
    Helpfulness Awards [Mods]

#1

Posted 13 July 2017 - 06:37 PM Edited by spaceeinstein, 14 July 2017 - 05:18 AM.

This topic documents GTA 2's save file format in preparation for documentation at GTAModding.com. This is for binary files named plyslot*.svg, where * is the player number beginning with 0. People have documented this before but I'm unable to find it. It would be great if you can help out.
Offset Type      Description
0x00   char[17]  gmp name
0x18   char      0xA
0x19   char[17]  sty name
0x31   char      0xA
0x32   char[17]  scr name
0x4a   char      0xA
0x4b   char      ?
0x4c   char      ?
0x4d   char      ?
0x54   dword     x
0x58   dword     y
0x5c   dword     z
0x60   word      heading
0x64   dword     money
0x68   dword     multiplier
0x6c   word      health

STATISTICS
0x90   dword     ?
0x94   dword     number of times player has damaged a car
0x98   dword     number of times player has fired a loud weapon
0x9c   dword     number of cars blown up
0xa0   dword     ?
0xa4   dword     number of cars jacked
0xa8   dword     number of civilians run down
0xac   dword     number of civilians murdered
0xb0   dword     number of lawmen killed
0xb4   dword     number of gang members killed

WEAPON AMMO
0xba   byte      Pistol
0xbb   byte      S-Uzi Machine Gun
0xbc   byte      Rocket Launcher
0xbd   byte      ElectroGun
0xbe   byte      Molotov Cocktails
0xbf   byte      Grenades
0xc0   byte      Shotgun
0xc1   byte      ElectroBaton
0xc2   byte      Flamethrower
0xc3   byte      Silenced S-Uzi Machine Gun
0xc4   byte      Dual Pistol
0xc5   byte      giant L
0xc6   byte      giant M
0xc7   byte      giant N
0xc8   byte      giant O

RESPECT
0xc9   byte      gang1
0xca   byte      gang2
0xcb   byte      gang3
0xcc   byte      gang4
0xcd   byte      gang5
0xce   byte      gang6
0xcf   byte      gang7
0xd0   byte      gang8
0xd1   byte      gang9
0xd2   byte      gang10

0xd3   byte      character mapping (default 25)
0xd4   byte      lives
0xd6   word      weapon slot
0xd8   dword     auto damage cost
0xdc   dword     fugitive factor
0xe0   word      chaos level (affects wanted level)
  • Sektor, Tomasak, GTAKid667 and 5 others like this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users