[REQUEST] How to get the profile address of the current player? - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14) +--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61) +--- Thread: [REQUEST] How to get the profile address of the current player? (/showthread.php?tid=1871) |
[REQUEST] How to get the profile address of the current player? - Wiimm - 08-04-2021 For a LE-CODE cheat code I need a function to get the address of the profile (save data) of the current player. Alternatively it is ok to get the index of the current player, because I know how to get the address by index: ADDRESS := [809BD748] + INDEX * 0x93f0 (PAL) RE: [REQUEST] How to get the profile address of the current player? - Wiimm - 08-04-2021 I think I got it (not verified) Base addresses: PAL: 0x809bd748 USA: 0x809B8F88 JAP: 0x809BC7A8 KOR: 0x809ABD88 Base_addresses is a pointer to a structure with at least 0x38 bytes. The short value at offset 0x36 gives you the index of the current player. RE: [REQUEST] How to get the profile address of the current player? - Vega - 08-06-2021 EDIT: Disregard my post, I misread yours. Apologies and thank you Seeky. Regarding save data, the game does the following to get the pointer to the save data once its loaded into memory Code: NTSC-U substitute r3 with w/e register you need to use. For player index, stebler uses the following in his pretty speedometer~ PAL using r4 Code: .set ptr_raceData, 0x809bd728 RE: [REQUEST] How to get the profile address of the current player? - Seeky - 08-06-2021 I think Wiimm meant the save file index? The code you sent from stebler gives the race player index Finally got a chance to check my old documentation and the address + offset Wiimm gave seems correct (for PAL, at least, didn't check the others) |