Posts: 26
Threads: 3
Joined: Mar 2021
Reputation:
7
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)
Posts: 26
Threads: 3
Joined: Mar 2021
Reputation:
7
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.
Posts: 202
Threads: 12
Joined: Dec 2019
Reputation:
16
08-06-2021, 08:47 AM
(This post was last modified: 08-06-2021, 08:53 AM by Seeky.)
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)