Online Name Icon Modifier [B_squo]
#5
(12-23-2024, 06:57 PM)Vega Wrote: Since we have a symbol map nowadays, you can look thru all the VR related funcs.

The func at 80662d84 (PAL) writes your VR to your USER Packet for the purpose displaying to others right before course vote (all clients can see everyone's USER Packet data)

So an easy way would be to hook a code at the end of that VR func (the instruction that writes the VR via sth), and have it also write the VR to a spot in the EVA

On the second code (making a C2 code hooked at the Name Icon func, it may be better to do some division formula instead of a series of cmpwi-branches. Will be a much shorter code. However, it won't be faster because divide instructions take forever to execute.

The Rank determination is based on the VR of the current specific license used instead of aggregate VR of all licenses.

Untested, here's the source for both codes



#Addresses
#NTSC-U
#PAL 80662dbc
#NTSC-J
#NTSC-K
#Write VR (r0 half) to EVA
lis r12, 0x8000
sth r0, 0x00C0 (r3) #OG Instruction
sth r0, 0x1500 (r12)



#Addresses
#NTSC-U 80612280
#PAL 806436a0
#NTSC-J 80642d0c
#NTSC-K 806319b8
#Set Online Name Icon (r3 byte) based on VR
#VR / 800 is Rank
lis r11, 0x8000
li r12, 800
lhz r10, 0x1500 (r11)
divwu r3, r10, r12 #divw and divwu always round towards zero (i.e. 10.4 rounds to 10, 12.8 rounds to 12, etc)

A couple of things:

1.) The method I used in the first code goes into save data and only gets the VR that is on the currently selected license (That’s what it is supposed to do but I forgot to add in the method for multiplying the offset to read it properly)

2.) Your rank distribution system is really good for systems that don’t have special properties. For example, during the pre-alpha development phase of my ranked play mod, I made a 1:1 copy of the Overwatch 1 ranking system. This system goes from 1vr to 5000vr and has ranks in 500vr increments except if the player is below 1500vr or above 4000vr. So, using your system you’d either need to check for these special properties or, simply edit the Font.szs and copy paste the icons for the ranks that are the same.

I’ll most likely be using your source for my mod (with proper credit to you and b_squo) and I’d be making some adjustments.
~MarioKartWii.com #1~
Reply


Messages In This Thread
Online Name Icon Modifier [B_squo] - by Vega - 10-01-2024, 08:05 PM
RE: Online Name Icon Modifier [B_squo] - by Vega - 12-23-2024, 06:57 PM
RE: Online Name Icon Modifier [B_squo] - by Zeraora - 12-24-2024, 12:15 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)