Vehicle Stats Modifier [JoshuaMK]
#1
Vehicle Stats Modifier [JoshuaMK]

This code edits MOST  of the stats for all vehicles. Doesn't include turning sharpness while in certain types of road since that would double the length of this code. Also, this code hooks right after the values are initially set, meaning with this code, all vehicles are the same and viable, no matter what character you choose.

This code uses 0x80001100 through 0x80001198 of the Exception Vector Area. Please ensure no other codes utilize this area.



(NTSC-U)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C258BBC8 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000

(PAL)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C25923EC 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000

(NTSC-J)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C2591D6C 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000

(NTSC-K)
06001100 00000098
WWWWWWWW SSSSSSSS
STSTSTST A0A0A0A0
A1A1A1A1 A2A2A2A2
A3A3A3A3 AEAEAEAE
A0DRFTA0 A1DRFTA1
A2DRFTA2 A3DRFTA3
AEDRFTAE MHTITEMH
AHTITEAH HRHRHRHR
MDTITEMD ADTITEAD
DRDRDRDR DSDSDSDS
DENDDEND MINITRBO
ROADROAD SLIPROAD
WEAKROAD OFFFROAD
HEAVROAD SLIPOFFR
BOOSTPAD BOOSTRMP
JUMPPADD ITEMROAD
SOLIDFAL MOVEROAD
MOVROAD2 STIKROAD
ROADROAD MOVROAD3
C2580444 0000000A
D005010C BDC1FF80
7EA902A6 28150001
41A10038 3DC08000
B9EE1100 61CE1100
91E30010 92030018
9223001C BE430024
B9EE0044 BDE30050
BBAE0088 BFA30144
83EE0094 93EE0164
B9C1FF80 00000000



GUIDE

I would firstly suggest using Atlas's kartparam.bin editor, to get an idea of what values to use, and I would finally suggest using a floating point calculator to convert wanted values like (0.5) into hex (3F000000) to put into this code.

WWWW = Weight
SSSSSS = Speed
STSTST = Speed While Turning Multiplier
A0A0A0 = Acceleration Stage 0
A1A1A1 = Acceleration Stage 1
A2A2A2 = Acceleration Stage 2
A3A3A3 = Acceleration Stage 3
AEAEAE = Acceleration Exponent
A0DRFTA0 = Acceleration While Drifting Stage 0
A1DRFTA1 = Acceleration While Drifting Stage 1
A2DRFTA2 = Acceleration While Drifting Stage 2
A3DRFTA3 = Acceleration While Drifting Stage 3
AEDRFTAE = Acceleration Exponent While Drifting
MHTITEMH = Manual Handling Tightness
AHTITEAH = Automatic Handling Tightness
HRHRHR = Handling Range
MDTITEMD = Manual Drifting Tightness
ADTITEAD = Automatic Drifting Tightness
DRDRDR = Drifting Range
DSDSDS = Drift Start
DENDDEND = Drift End Correction
MINITRBO = Miniturbo Duration (00000009 = 9 frame duration)
ROADROAD = Normal Road Speed Multiplier
SLIPROAD = Slippery Road Speed Multiplier
WEAKROAD = Weak Offroad Speed Multiplier
OFFFROAD = Normal Offroad Speed Multiplier
HEAVROAD = Heavy Offroad Speed Multiplier
SLIPOFFR = Slippery Offroad Speed Multiplier
BOOSTPAD = Boost Pad Speed Multiplier
BOOSTRMP = Boost Ramp Speed Multipler
JUMPPADD = Jump Pad Speed Multiplier
ITEMROAD = Item Road Speed Multiplier
SOLIDFAL = Solid Fall Speed Multiplier
MOVEROAD = Moving Road Speed Multiplier
MOVROAD2 = Moving Road 2 Speed Multiplier
STIKROAD = Sticky Road Speed Multiplier
ROADROAD = Normal Road 2 Speed Multiplier
MOVROAD3 = Moving Road 3 Speed Multiplier



#ASM

#~~~~~~~~~~~~#
#Inject > 8058BBC8#
#~~~~~~~~~~~#

stfs f0, 0x010C (r5) #Default instruction
stmw r14, -0x80 (r1)
mfctr r21
cmplwi r21, 1
bgt+ dont_modify
lis r14, 0x8000
lmw r15, 0x1100 (r14)
ori r14, r14, 0x1100
stw r15, 0x10 (r3)
stw r16, 0x18 (r3)
stw r17, 0x1C (r3)
stmw r18, 0x24 (r3)
lmw r15, 0x44 (r14)
stmw r15, 0x5C (r3)
lmw r29, 0x88 (r14)
stmw r29, 0x144 (r3)
lwz r31, 0x94 (r14)
stw r31, 0x164 (r14)
dont_modify:
lmw r14, -0x80 (r1)



Code Creator: JoshuaMK  Heart
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Messages In This Thread
Vehicle Stats Modifier [JoshuaMK] - by JoshuaMK - 11-02-2019, 06:19 AM
RE: Vehicle Stats Modifier [JoshuaMK] - by Vega - 11-02-2019, 12:50 PM
RE: Vehicle Stats Modifier [JoshuaMK] - by Vega - 11-02-2019, 08:09 PM
RE: Vehicle Stats Modifier [JoshuaMK] - by Katos - 05-13-2024, 10:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)