Difference between revisions of "042E"
m |
(page updates + extended stats simplified) |
||
Line 1: | Line 1: | ||
− | {{ | + | {{Icon|t}} '''REGISTER_FASTEST_TIME''' |
− | + | <hr /> | |
− | + | '''Description''' | |
− | + | : Records low record stats | |
− | + | '''Syntax''' | |
− | + | : 042E: register_lowest_int_stat [''int1''] to [''int2''] | |
− | + | '''Parameter''' | |
− | + | : [''int1''] | |
+ | :: Stat ID | ||
+ | : [''int2''] | ||
+ | :: Integer value | ||
− | ==Stats in Vice City== | + | This opcode saves the lowest value to almost any stat in the game. The stat can only be overwritten by a value smaller than the previously saved value. In Vice City, the original script mainly used these as record times saved in seconds and the stats menu will display them in minutes and seconds. In San Andreas, it can use any integer [[List of statistics (SA)|stats]]. This opcode was unused in GTA III's original script. The value set with this opcode is saved in [[Saves (GTA 3)#Block 17: Stats|block 17 of the save file]] in GTA III and [[Saves (GTA VC)#Block 19: Stats|block 19]] in Vice City. |
− | {| | + | |
− | ! ID | + | == Stats in Vice City == |
− | + | {| class="wikitable" | |
+ | ! ID || Stat | ||
|- | |- | ||
| 0 || Fastest time on 'Alloy Wheels Of Steel' | | 0 || Fastest time on 'Alloy Wheels Of Steel' | ||
Line 60: | Line 64: | ||
|} | |} | ||
− | ==Extended stats== | + | == Extended stats == |
− | + | Using a similar exploit [http://www.gtaforums.com/index.php?showtopic=257379 here] for San Andreas, almost all stats can be edited using this technique for GTA III and Vice City. | |
− | + | ||
− | + | For GTA III v1.0, these are the steps to edit any stats: | |
− | + | * Take the [[List of statistics (III)|memory address of a statistic]]. | |
− | + | * Subtract the memory address with 0x6E9128. | |
− | + | * Divide the difference by 4. | |
− | + | The resulting value is used as the stat ID for this opcode. For example, the following line sets the "Hospital visits" stat to 0: | |
− | + | <syntaxhighlight lang="scm"> | |
− | + | 042E: 517805 0 | |
− | + | </syntaxhighlight> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | For Vice City v1.0, these are the steps to edit any stats: | |
− | + | * Take the [[List of statistics (VC)|memory address of a statistic]]. | |
− | + | * Subtract the memory address with 0x974B80. | |
− | + | * Divide the difference by 4. | |
− | + | The resulting value is used as the stat ID for this opcode. For example, the following line sets the "Hospital visits" stat to 0: | |
− | + | <syntaxhighlight lang="scm"> | |
− | + | 042E: 488 0 | |
− | + | </syntaxhighlight> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ==See also== | + | == See also == |
− | *[[042F]], another stats-recording opcode | + | * [[042F]], another stats-recording opcode |
− | ==Keywords== | + | == Keywords == |
record, add, stat, statistics, downdate | record, add, stat, statistics, downdate | ||
+ | |||
+ | [[Category:OpCodes]] |
Revision as of 19:37, 27 May 2015
Description
- Records low record stats
Syntax
- 042E: register_lowest_int_stat [int1] to [int2]
Parameter
- [int1]
- Stat ID
- [int2]
- Integer value
This opcode saves the lowest value to almost any stat in the game. The stat can only be overwritten by a value smaller than the previously saved value. In Vice City, the original script mainly used these as record times saved in seconds and the stats menu will display them in minutes and seconds. In San Andreas, it can use any integer stats. This opcode was unused in GTA III's original script. The value set with this opcode is saved in block 17 of the save file in GTA III and block 19 in Vice City.
Stats in Vice City
ID | Stat |
---|---|
0 | Fastest time on 'Alloy Wheels Of Steel' |
1 | Fastest time on 'The Driver' |
2 | Fastest time in Dirt Ring |
3 | Fastest time on RC Plane Race |
4 | Fastest time on RC Car Race |
5 | Fastest time on RC helicopter Pickup |
6 | Fastest time on 'Terminal Velocity' |
7 | Fastest time on 'Ocean Drive' |
8 | Fastest time on 'Border Run' |
9 | Fastest time on 'Capital Cruise' |
10 | Fastest time on 'Tour!' |
11 | Fastest time on 'V.C. Endurance' |
12 | Fastest time on Downtown Chopper Checkpoint |
13 | Fastest time on Ocean Beach Chopper Checkpoint |
14 | Fastest time on Vice Point Chopper Checkpoint |
15 | Fastest time on Little Haiti Chopper Checkpoint |
16 | Fastest time on 'PCJ Playground' |
17 | Fastest time on 'Trial By Dirt' |
18 | Fastest time on 'Test Track' |
19 | Fastest time for 'Cone Crazy' |
20 | Fastest time in Hotring |
21 | Fastest lap time in Hotring |
22 | Fastest time for Checkpoint Charlie |
Extended stats
Using a similar exploit here for San Andreas, almost all stats can be edited using this technique for GTA III and Vice City.
For GTA III v1.0, these are the steps to edit any stats:
- Take the memory address of a statistic.
- Subtract the memory address with 0x6E9128.
- Divide the difference by 4.
The resulting value is used as the stat ID for this opcode. For example, the following line sets the "Hospital visits" stat to 0:
042E: 517805 0
For Vice City v1.0, these are the steps to edit any stats:
- Take the memory address of a statistic.
- Subtract the memory address with 0x974B80.
- Divide the difference by 4.
The resulting value is used as the stat ID for this opcode. For example, the following line sets the "Hospital visits" stat to 0:
042E: 488 0
See also
- 042F, another stats-recording opcode
Keywords
record, add, stat, statistics, downdate