Stats Display Modifier [Vega]
#1
Stats Display Modifier [Vega]

This code allows you to change the display amount of every stat bar for character+vehicle selection. It does NOT effect the actual stats during gameplay.

P = Speed
R = Weight
T = Accel
V = Handle
X = Drift
Y = Offroad
Z = MT

Values are in 32 bit Float.

Example Values:
3F800000 = Full Stat Bar
3F000000 = 1/2 Stat Bar

Anything above 3F800000 will make the stat bar go past the 'limit'.

NTSC-U
C283FE4C 00000012
2C1F0002 41820038
2C1F0003 4182003C
2C1F0004 41820040
2C1F0005 41820044
2C1F0006 41820048
2C1F0007 4182004C
3CC0PPPP 60C6PPPP
48000048 3CC0RRRR
60C6RRRR 4800003C
3CC0TTTT 60C6TTTT
48000030 3CC0VVVV
60C6VVVV 48000024
3CC0XXXX 60C6XXXX
48000018 3CC0YYYY
60C6YYYY 4800000C
3CC0ZZZZ 60C6ZZZZ
90C1FFFC C021FFFC
60000000 00000000

PAL
C27E7F24 00000012
2C1F0002 41820038
2C1F0003 4182003C
2C1F0004 41820040
2C1F0005 41820044
2C1F0006 41820048
2C1F0007 4182004C
3CC0PPPP 60C6PPPP
48000048 3CC0RRRR
60C6RRRR 4800003C
3CC0TTTT 60C6TTTT
48000030 3CC0VVVV
60C6VVVV 48000024
3CC0XXXX 60C6XXXX
48000018 3CC0YYYY
60C6YYYY 4800000C
3CC0ZZZZ 60C6ZZZZ
90C1FFFC C021FFFC
60000000 00000000

NTSC-J
C27E7590 00000012
2C1F0002 41820038
2C1F0003 4182003C
2C1F0004 41820040
2C1F0005 41820044
2C1F0006 41820048
2C1F0007 4182004C
3CC0PPPP 60C6PPPP
48000048 3CC0RRRR
60C6RRRR 4800003C
3CC0TTTT 60C6TTTT
48000030 3CC0VVVV
60C6VVVV 48000024
3CC0XXXX 60C6XXXX
48000018 3CC0YYYY
60C6YYYY 4800000C
3CC0ZZZZ 60C6ZZZZ
90C1FFFC C021FFFC
60000000 00000000

NTSC-K
C27D62E4 00000012
2C1F0002 41820038
2C1F0003 4182003C
2C1F0004 41820040
2C1F0005 41820044
2C1F0006 41820048
2C1F0007 4182004C
3CC0PPPP 60C6PPPP
48000048 3CC0RRRR
60C6RRRR 4800003C
3CC0TTTT 60C6TTTT
48000030 3CC0VVVV
60C6VVVV 48000024
3CC0XXXX 60C6XXXX
48000018 3CC0YYYY
60C6YYYY 4800000C
3CC0ZZZZ 60C6ZZZZ
90C1FFFC C021FFFC
60000000 00000000

Source:

#r11 and r12 NOT Safe!
#r31 Holds Stat 'Slot', can only be 1 thru 7

cmpwi r31, 2
beq- weight
cmpwi r31, 3
beq- accel
cmpwi r31, 4
beq- handle
cmpwi r31, 5
beq- drift
cmpwi r31, 6
beq- offroad
cmpwi r31, 7
beq- mt

#speed, r31 = 1
#Random values filled below purely for compilation

lis r6, 0x3F80
ori r6, r6, 0x0000
b end

weight:
lis r6, 0x0000
ori r6, r6, 0x0000
b end

accel:
lis r6, 0x4000
ori r6, r6, 0x0000
b end

handle:
lis r6, 0x4040
ori r6, r6, 0x0000
b end

drift:
lis r6, 0x4080
ori r6, r6, 0x0000
b end

offroad:
lis r6, 0x3F00
ori r6, r6, 0x0000
b end

mt:
lis r6, 0x3E80
ori r6, r6, 0x0000

end:
stw r6, -0x4 (sp) #Area beneath the Stack is safe since no function calls are done in between the stw and lfs instructions
lfs f1, -0x4 (sp) #Replaces Default Instruction of fdivs f1, f3, f1

Code creator: Vega
Reply


Messages In This Thread
Stats Display Modifier [Vega] - by Vega - 09-21-2019, 07:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)