06-18-2023, 07:58 PM
First, if you can get anything to work by "raw/plain" editing on Dolphin (or Dolphin-memory-engine), or on the Save File, then it can always be made in Code form.
Second, the Hex values would make more sense to you if you know Binary.
Each Hex digit (0 thru F) can be written in a Binary 4-digit number
0 = 0000
1 = 0001
2 = 0010
3 = 0011
.. ..
E = 1110
F = 1111
Even though this is a chapter from my ARMv8 tut, it explains Binary perfectly - https://mariokartwii.com/armv8/ch2.html
The game is using each bit "slot" for each music track. Some "slots" may be unused/reserved.
https://mariokartwii.com/nonmkwcodes/dbzbt3/savemap.txt
I'm sure you've already taken a look at this. Now if you take a look at C30 thru C33 on that page (which I had labeled as Unknown), we see the value..
000FFFFF
Since each Hex digit represents 4 slots, and there are 5 F's, we come to a simple conclusion that 5 x 4 = 20. 20 music slots. Binary value of 0 = locked. 1 = unlocked.
The next 4 slots for the JP game should be "on" the 3rd digit. Which would result as a value of 00FFFFFF. 6 x 4 = 24 music slots.
I have no idea why the game crashes when going above "BFFFFFFF".
I'll try to look more into later, I'm literally walking out the house, about to drive out of town due to work.
Second, the Hex values would make more sense to you if you know Binary.
Each Hex digit (0 thru F) can be written in a Binary 4-digit number
0 = 0000
1 = 0001
2 = 0010
3 = 0011
.. ..
E = 1110
F = 1111
Even though this is a chapter from my ARMv8 tut, it explains Binary perfectly - https://mariokartwii.com/armv8/ch2.html
The game is using each bit "slot" for each music track. Some "slots" may be unused/reserved.
https://mariokartwii.com/nonmkwcodes/dbzbt3/savemap.txt
I'm sure you've already taken a look at this. Now if you take a look at C30 thru C33 on that page (which I had labeled as Unknown), we see the value..
000FFFFF
Since each Hex digit represents 4 slots, and there are 5 F's, we come to a simple conclusion that 5 x 4 = 20. 20 music slots. Binary value of 0 = locked. 1 = unlocked.
The next 4 slots for the JP game should be "on" the 3rd digit. Which would result as a value of 00FFFFFF. 6 x 4 = 24 music slots.
I have no idea why the game crashes when going above "BFFFFFFF".
I'll try to look more into later, I'm literally walking out the house, about to drive out of town due to work.