Difference between revisions of "042E"

From GTAMods Wiki
Jump to navigation Jump to search
(added GTA 3)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 042E=2,%1h% %2d%
+
| games      = {{Icon|t}}
| description = Records low record time stats in GTA 3 and Vice City and downdates stats in San Andreas
+
| command    = REGISTER_FASTEST_TIME
| p1          = Stat ID
+
| description = Records low record stats
| p2          = Integer
+
| syntax1    = 042E: register_lowest_int_stat [''int1''] to [''int2'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| p1t        = [''int1'']
 +
| p1d        = Stat id
 +
| p2t        = [''int2'']
 +
| p2d        = Integer value
 
}}
 
}}
This opcode records record stats in the game. It is unused in GTA III. In Vice City, these are time stats recorded in seconds and the stat will show time in minutes and seconds. The stat can only be overwritten by a value smaller than the previously recorded value, except zero. In San Andreas, it can use any integer [[List of statistics (SA)|stats]].
 
  
==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. Without using other stat-changing opcodes, in order to change to a higher value, you have to set the value of the stat to 0 and then set the value of the stat to the new value. In Vice City, the original script mainly used these as record times saved in seconds and the stats menu displays 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.
{| {{Prettytable}}
+
 
! ID
+
== Stats in Vice City ==
! Stat
+
These are all the stats that were used in the original script. In all cases, the stat will initially start with a value of 0 and will not be displayed in the menu. Once a value is set, the stat will appear in the menu.
 +
{|class="wikitable center-col-1"
 +
!Id ||Stat
 
|-
 
|-
| 0 || Fastest time on 'Alloy Wheels Of Steel'
+
|0 ||Fastest time on 'Alloy Wheels Of Steel'
 
|-
 
|-
| 1 || Fastest time on 'The Driver'
+
|1 ||Fastest time on 'The Driver'
 
|-
 
|-
| 2 || Fastest time in Dirt Ring
+
|2 ||Fastest time in Dirt Ring
 
|-
 
|-
| 3 || Fastest time on RC Plane Race
+
|3 ||Fastest time on RC Plane Race
 
|-
 
|-
| 4 || Fastest time on RC Car Race
+
|4 ||Fastest time on RC Car Race
 
|-
 
|-
| 5 || Fastest time on RC helicopter Pickup
+
|5 ||Fastest time on RC helicopter Pickup
 
|-
 
|-
| 6 || Fastest time on 'Terminal Velocity'
+
|6 ||Fastest time on 'Terminal Velocity'
 
|-
 
|-
| 7 || Fastest time on 'Ocean Drive'
+
|7 ||Fastest time on 'Ocean Drive'
 
|-
 
|-
| 8 || Fastest time on 'Border Run'
+
|8 ||Fastest time on 'Border Run'
 
|-
 
|-
| 9 || Fastest time on 'Capital Cruise'
+
|9 ||Fastest time on 'Capital Cruise'
 
|-
 
|-
| 10 || Fastest time on 'Tour!'
+
|10 ||Fastest time on 'Tour!'
 
|-
 
|-
| 11 || Fastest time on 'V.C. Endurance'
+
|11 ||Fastest time on 'V.C. Endurance'
 
|-
 
|-
| 12 || Fastest time on Downtown Chopper Checkpoint
+
|12 ||Fastest time on Downtown Chopper Checkpoint
 
|-
 
|-
| 13 || Fastest time on Ocean Beach Chopper Checkpoint
+
|13 ||Fastest time on Ocean Beach Chopper Checkpoint
 
|-
 
|-
| 14 || Fastest time on Vice Point Chopper Checkpoint
+
|14 ||Fastest time on Vice Point Chopper Checkpoint
 
|-
 
|-
| 15 || Fastest time on Little Haiti Chopper Checkpoint
+
|15 ||Fastest time on Little Haiti Chopper Checkpoint
 
|-
 
|-
| 16 || Fastest time on 'PCJ Playground'
+
|16 ||Fastest time on 'PCJ Playground'
 
|-
 
|-
| 17 || Fastest time on 'Trial By Dirt'
+
|17 ||Fastest time on 'Trial By Dirt'
 
|-
 
|-
| 18 || Fastest time on 'Test Track'
+
|18 ||Fastest time on 'Test Track'
 
|-
 
|-
| 19 || Fastest time for 'Cone Crazy'
+
|19 ||Fastest time for 'Cone Crazy'
 
|-
 
|-
| 20 || Fastest time in Hotring
+
|20 ||Fastest time in Hotring
 
|-
 
|-
| 21 || Fastest lap time in Hotring
+
|21 ||Fastest lap time in Hotring
 
|-
 
|-
| 22 || Fastest time for Checkpoint Charlie
+
|22 ||Fastest time for Checkpoint Charlie
 
|}
 
|}
  
==Extended stats==
+
== Extended stats ==
These special stats uses a similar exploit [http://www.gtaforums.com/index.php?showtopic=257379 here]. Although this can't do such wide-ranging changes, almost all stats can be edited using this technique. These lists exclude stats that can be changed by other stat-changing opcodes.
+
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. The second parameter accepts floating-point values for stats that require it.
===GTA III===
+
 
{| {{prettytable}}
+
For GTA III v1.0, these are the steps to edit most stats:
! ID
+
* Take the [[List of statistics (III)|memory address of a statistic]].
! Data type
+
* Subtract the memory address with 0x6E9128.
! Stat
+
* 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:
| 417591 || int || Criminals wasted
+
{{Pre|class=sb-code|1=
|-
+
042E: <span class="m">517805</span> <span class="m">0</span>
| 517711 || int || Helicopters destroyed
+
}}
|-
 
| 517805 || int || Hospital visits
 
|-
 
| 517809 || int || Times busted
 
|-
 
| 517834 || int || People wasted by others
 
|-
 
| 533141 || int || People you've wasted
 
|-
 
| 533754 || int || Kgs of explosives used
 
|-
 
| 534180 || int || Days passed in game
 
|-
 
| 534236 || int || Mm rain fallen
 
|-
 
| 537519 || int || Longest flight in Dodo
 
|-
 
| 613651 || flt || Distance travelled by car (m)
 
|-
 
| 614488 || int || Cars exploded
 
|-
 
| 616394 || int || Cars crushed
 
|}
 
  
===Vice City===
+
For Vice City v1.0, these are the steps to edit most stats:
{| {{prettytable}}
+
* Take the [[List of statistics (VC)|memory address of a statistic]].
! ID
+
* Subtract the memory address with 0x974B80.
! Data type
+
* Divide the difference by 4.
! Stat
+
The resulting value is used as the stat id for this opcode. For example, the following line sets the "Hospital visits" stat to 0:
|-
+
{{Pre|class=sb-code|1=
| -39946 || int || Tires popped with gunfire
+
042E: <span class="m">488</span> <span class="m">0</span>
|-
+
}}
| -31 || int || Boats destroyed
 
|-
 
| 33 || flt || Distance traveled by golf cart (m)
 
|-
 
| 412 || int || Planes & Helicopters destroyed
 
|-
 
| 484 || int || Hospital visits
 
|-
 
| 491 || int || Bullets fired
 
|-
 
| 492 || int || Times busted
 
|-
 
| 523 || int || People wasted by others
 
|-
 
| 3783 || int || Seagulls Sniped
 
|-
 
| 3845 || int || People you've wasted
 
|-
 
| 3850 || int || Kgs of explosives used
 
|-
 
| 10653 || int || Days passed in game
 
|-
 
| 10663 || int || Photographs Taken
 
|-
 
| 65357 || int || Fishes Fed
 
|-
 
| 66766 || int || Total number of wanted stars attained
 
|-
 
| 66796 || int || Total number of wanted stars evaded
 
|-
 
| 67506 || flt || Distance traveled by helicopter (m)
 
|-
 
| 67669 || int || Bullets that hit
 
|-
 
| 67758 || int || Number of headshots
 
|-
 
| 156118 || flt || Distance traveled by bike (m)
 
|-
 
| 156161 || flt || Distance traveled by boat (m)
 
|-
 
| 156162 || int || Road Vehicles destroyed
 
|-
 
| 158789 || int || Sprayings
 
|-
 
| 158815 || flt || Distance traveled by car (m)
 
|}
 
  
==See also==
+
== See also ==
*[[042F]], another stats-recording opcode for Vice City
+
* {{Icon|3}} {{Icon|VC}} [[042F]], register highest int stat
  
==Keywords==
+
== Keywords ==
 
record, add, stat, statistics, downdate
 
record, add, stat, statistics, downdate

Latest revision as of 02:54, 13 April 2017

GTA III Vice City San Andreas REGISTER_FASTEST_TIME


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. Without using other stat-changing opcodes, in order to change to a higher value, you have to set the value of the stat to 0 and then set the value of the stat to the new value. In Vice City, the original script mainly used these as record times saved in seconds and the stats menu displays 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

These are all the stats that were used in the original script. In all cases, the stat will initially start with a value of 0 and will not be displayed in the menu. Once a value is set, the stat will appear in the menu.

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. The second parameter accepts floating-point values for stats that require it.

For GTA III v1.0, these are the steps to edit most stats:

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 most stats:

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

  • GTA III Vice City 042F, register highest int stat

Keywords

record, add, stat, statistics, downdate