Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
38_ViTa_38

LCS PSP save structure (WIP)

Recommended Posts

38_ViTa_38

I had't found any info about savegames so I decided to figure things out myself.

 

The saves appear to be only encrypted with the regular PSP chnnlsv algorithms. The key is 70558AC5B3B7470CB0E0C271D0F5BA56 and the mode is 3 for both EU and US versions. Also, I wrote a tool to decrypt saves without using a PSP. (the program gets the key from a file, download this if you don't want to paste the above string in a hex editor)

 

The project is being worked on by 38_ViTa_38 and darkdraggy.

 

 

All values are little-endian.

 

struct CVector {
float x;
float y;
float z;
};

 

hex dec type decription
0 0 s8[8] the header 53 49 4d 50 bc 00 00 00 (SIMP\0\0\0\0)
8 8 s32 ?
c 12 s32 ?
10 16 s32 ?
14 20 s32 ?
18 24 s32 ?
1c 28 s32 milliseconds per second
20 32 s32 last clock tick
24 36 s8 hours (0-23)
25 37 s8 minutes (0-59)
28 40 s32 ?
2c 44 float timescale
38 56 float ?
3c 60 s32 number of frames since game start
40 64 s16 previous weather
42 66 s16 next weather
44 68 s16 forced weather (usually ff ff)
46 70 s16 unused
48 72 s32 weather index(?)
4c 76 ?
50 80 CVector position of something?
5c 92 ?
60 96 float ?
64 100 ?
68 104 s32 ?
6c 108 float ?
70 112 s32 brightness (a0 = 0 bars, b0 = 1 bar)
74 116 s8 01 for hud mode on
75 117 s8 01 for subtitles on
78 120 s8 radar mode: 00 map & blips, 01 blips, 02 off
7c 124 s8 00 to make everything too bright
80 128 s32 radio volume (10 (hex) = 1 bar, 20 = 2 bars, ...)
84 132 s32 sfx volume (similar to radio)
88 136 s8 ?
8c 140 ?
90 144 ?
94 148 ?
98 152 ?
9c 156 ?
a0 160 ?
a4 164 ?
a8 168 ?
ac 172 ?
b0 176 ?
b4 180 s16 02 00 for control setup 1, 00 00 for setup 2
b6 182 s8 01 for invert look off
b7 183 s8 01 to use directional buttons instead of analog stick
b8 184 s8 01 if the player had used a cheat
b9 185 s8 01 if taxis have nitro?
ba 186 s8 01 for player target (on the map) on
bc 188 float player target x
c0 192 float player target y
c4 196 s8[4] always "SRPT"
c8 200 s32 size of SRPT block in bytes
cc 204 s8[4] always "SCR\0"
d0 208 s32 size of SCR\0 block in bytes (8 less than 0xc8)
d4 212 s32 00 00 makes the intro play, then crash
d8 216 s32 crash, don't change
dc 220 s32 crash, don't change
e0 224 s32
e4 228
e8 232
ec 236 s32 ?
f0 240 s32
f4 244 CVector Toni's position

 

104 260 s32[100] hidden packages, 01 if has been found
(290 656 s32 the last element in the array)

hidden packages rewards (01 for on)
294 660 s32 pistol
...
2b4 692 s32 rpg

2b8 696 s32 01 for autocollecting packages; packages from the current island get collected, e.g. you get 42 pkgs in Portland

 

weapons; max ammo is 99999 (9f 86 01 00). What happens if two or more weapons of the same type have ammo is not clear.

 

2c8 712 s32 camera
melee weapons (01 if Toni has the weapon, 00 or anything else if he doesn't)
2cc 716 s32 brass knuckles
2d0 720 s32 chisel
2d4 724 s32 fire axe
2d8 728 s32 hockey stick
2dc 732 s32 nightstick
2e0 736 s32 baseball bat
2e4 740 s32 meat cleaver
2e8 744 s32 katana
2ec 748 s32 knife
2f0 752 s32 machete
2f4 756 s32 chainsaw

 

2f8 760 s32 grenades
2fc 764 s32 molotovs
300 768 s32 tear gas
304 772 s32 remote grenades (detonator is sometimes not shown after throwing, I don't know why)

 

308 776 s32 pistol
30c 780 s32 .357

 

310 784 s32 shotgun
314 788 s32 spas 12
318 792 s32 stubby shotgun

 

31c 796 s32 tec-9
320 800 s32 mac-10
324 804 s32 uzi
328 808 s32 smg

 

32c 812 s32 ak
330 816 s32 m4

 

334 820 s32 rpg
338 824 s32 m60
33c 828 s32 flamethrower (x0.1, 100 is shown as 0 - 10 in the game)
340 832 s32 minigun

 

344 836 s32 sniper rifle
348 840 s32 laser sighted sniper rifle
34c 844 s32 ?
350 848 s32 current weapon (what value corresponds to what weapon is not clear)

354 852 s32 ?
358 856 s32 armour
35c 860 s32 current money, ignored

360 864 ?

 

rampages (the stats don't get recalculated!)
364 868 s32[20] rampages, 01 if has been completed
(3b0 944 the last element)

 

3b4 948 s32[26] stunt jumps, 01 if has been completed
(418 1048 s32 the last element in the array)

 

424 1060 s32 interior world
428 1064 s32 01 to spawn m60
42c 1068 s32
430 1072 s32 01 if Vigilante was passed
434 1076 s32 01 if Paramedic was passed (+ infinite sprint)
438 1080 s32 01 if Firefighter was passed (+ fireproof)
43c 1084 s32 01 to spawn Bickle'76
440 1088 s32 total fares completed

 

49c 1180 s32 vincenzo's mission chain

 

4f0 1264 s32 01 to get out of jail for free
500 1280 s32 02 to remove the Car Salesman marker and enable the $ icon
504 1284 s32 01 if Car Salesman was passed (stops adding attempts)
508 1288 s32[4] 0x518 - 1, seem to be unused
518 1304 s32 current car salesman level (affects the spawner too)
51c 1308 s32 01 if RC Triad Take-Down was completed
520 1312 s32 RC Triad Take-Down record (default 20)
528 1320 s32 01 Noodle Boy was passed (the $ icon appears too)
554 1364 s32 01 if Toni has underwear available
568 1384 s32 09 after completing noodle boy, 00 00 80 bf before?
6e8 1768 s32[10] 01 if B&G course 1-10 is unlocked
(70c 1804 s32 the last element)
710 1808 s32 ?
714 1812 s32 01 if B&G course ?
718 1816 s32 B&G course 1 completed (but the next one doesn't get unlocked automatically!)
73c 1852 s32 01 to spawn Manchez
740 1856 s32[10] B&G course 1-10 target times in ms (ignored)
(764 1892 s32 the last element)
768 1896 s32
7b0 1968 s32 01 if
7b4 1972 s32[4] bikes sold (freeway, pcj-600, faggio, sanchez, respectively)
7c4 1988 s32 01 if Pizzaboy was passed (the $ icon appears too)
7c8 1992 s32 ?
7d0 2000 s32 ?
7dc 2012 s32 ?
7e8 2024 s32 ?

messages (01 if was shown):
814 2008 s32 set to 1 automatically
818 2072 s32 "Use analog stick up and analog stick down to shift your weight while on a bike"
81c 2076 s32 "Press X to start sprinting"
820 2080 s32 unused
824 2084 s32 "When on foot hold L button..."
828 2088 s32
82c 2092 s32 "The yellow badge indicates you are a wanted man..."
838 2104 s32 "To perform a drive-by..."
83c 2108 s32 "Motorbikes allow you to shoot forwards by pressing O"
844 2116 s32 "You found a police bribe!"
850 2128 s32 "Capital Autos in Harwood is looking for new salesmen, if you want to make some extra money"
854 2132 s32 ?
86c 2156 s32 ?
8a8 2216 s32 "100 percent completed! There's a little present waiting for you in Fort Staunton."
8bc 2236 s32 "To throw an explosive weapon press O"
8c0 2240 s32 "
8c4 2244 s32? ?
8d0 2256 s32 "Ammu-Nation now stock Micro SMGs!"
8d4 2260 s32 "New stock has been delivered to Phil Cassidy's Fully Cocked Gun Shop!"
8d8 2264 s32 "Phil Cassidy's now has the Minigun in stock!"
910 2320 s32? 01 if the message about the underwear outfit has been shown

outfits (values out of this range don't seem to crash):
0 casual clothes
1 leone's suit
2 overalls
3 avenging angel's fatigues
4 chauffeur's clothes
5 lawyer's suit
6 tuxedo
7 the king jumpsuit
8 cox mascot suit
9 underwear
a/10 hero garb
b/11 dragon jumpsuit
c/12 antonio
d/13 sweats
e/14 goodfella
f/15 wiseguy

92c 2348 s32 outfit

 

Vehicles:

http://www.gtamodding.com/wiki/List_of_vehicles_(LCS)

http://gtaforums.com/topic/849155-gta-lcs-special-vehicle-guide/page-47?do=findComment&comment=1069557353

 

 

Edited by 38_ViTa_38

Share this post


Link to post
Share on other sites
guard3

That'd also be good in Documentation thread in GTA III/VC/SA Modding section :)

Share this post


Link to post
Share on other sites
darkdraggy

I was looking into this just the day before, couldn't make anything of it though.

Share this post


Link to post
Share on other sites
38_ViTa_38

Info about hidden packages, unique stunt jumps, rampages, outfits, and hidden package rewards has been added. For some reason, there also appears to be a flag to autocollect packages in the current island: Yrj911B.png

Share this post


Link to post
Share on other sites
darkdraggy

Offset *438* (hex) is the fireproof command for the player.

Edited by darkdraggy

Share this post


Link to post
Share on other sites
darkdraggy
Posted (edited)

F798 is the vehicle in the first slot of Portland garage(5D for hunter)(note they're in little endian), from F79C to F79F are X coordinates to where the vehicle should spawn, from F7A0 to F7A3 are Z coordinates for that same vehicle, from F7A4 to F7A7 are Y coordinates, Offset 7FB8 is for the immunities on vehicle.

https://imgur.com/uXT9n8l

Edited by darkdraggy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.