Item Timer [JoshuaMK]
#10
After few testing, I can say that it don't work on Wiimmfi with patched main.dol.
Sad, then I try an Alternative.

EDIT: It looks like the code is not quite correct. It loads the pointer, but always only the one for the player in the first item slot (Player 0). I have seen with the "Mega lasts forever" code from mdmwii that it stores this value and adds between lwz r11, 0x20 (r11) and lwz r11, 0x0 (r11) to the address. Then the mega and star timer worked fine for me. Maybe you can test it yourself and judge what I have said. Here is the PAL code, I have marked the Changes in red:

Mega Timer PAL
C27EEFB0 00000003
3FA08000 1CA00004
B0BD0FC8 1FA00248
60000000 00000000
C27F84F8 00000006
3D60809C 816B18F8
816B0020 3D808000
A18C0FC8 7D6C5A14
816B0000 816B0010
816B0010 A34B0194
7F5CD378 00000000

The First ASM stores the local player item slot to the Memory Location 80000FC8 and in the Timer ASM, this Value is loaded and add to the Adress to compute the correct pointer.
I only don't know how to use it for the Golden Timer, that should then somehow work similarly.
Reply


Messages In This Thread
Item Timer [JoshuaMK] - by JoshuaMK - 03-18-2020, 04:02 AM
RE: Item Timer [JoshuaMK] - by Vega - 03-18-2020, 06:11 PM
RE: Item Timer [JoshuaMK] - by JoshuaMK - 03-18-2020, 07:36 PM
RE: Item Timer [JoshuaMK] - by Vega - 03-18-2020, 07:45 PM
RE: Item Timer [JoshuaMK] - by Unnamed - 03-19-2020, 01:43 PM
RE: Item Timer [JoshuaMK] - by Vega - 03-26-2020, 06:28 PM
RE: Item Timer [JoshuaMK] - by JoshuaMK - 03-26-2020, 08:29 PM
RE: Item Timer [JoshuaMK] - by Vega - 03-26-2020, 09:08 PM
RE: Item Timer [JoshuaMK] - by JoshuaMK - 03-26-2020, 09:44 PM
RE: Item Timer [JoshuaMK] - by Unnamed - 06-23-2020, 01:44 PM
RE: Item Timer [JoshuaMK] - by Unnamed - 08-31-2020, 06:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)