(07-09-2019, 01:26 AM)Vega Wrote: Since NTSC-J is not working atm, the code will be in this subforum for the time being. Btw, you can make this a C0 codetype (for the first ASM only) instead of using a OSSleepthread subroutine address.C0 Is a good idea. Didn't think of it. Also, I went and completely rewrote the Custom Laps code, not only making it about 5-6 lines shorter, but I also lifted the limit from 32769 laps to +60000 laps by changing the cmpwi instructions to cmplwi insructions. Also, the input number now reflects what lap you will be on when laps start counting instead of following a complicated equation.
Also, I recommend keeping the code structure the same way for all regions (even though this will you cause you to use an unneeded extra instruction for controller button loading on U, J and K), and use macros to change values that are region dependent. Trying to work with multiple sources doesn't make any sense.
For why the Japan version is not working, that is something wrong with the source. As the ports for the OSSleepthread have been testing on multiple codes countless times. I doubt you messed up porting the address that has the nop. You will need to step by step the japan version in Dolphin to fully diagnose. Have you done step-by-stepping before? This one will be weird cause one address is called nonstop, so you may need to set an instruction BP on the other address (the nop), I'm guessing that address is the one that gets called when track loads???
Anyway good luck with fixing the Japan version. I'm out of town cuz of work so I won't be much help....
And nice code!!
Super Mario Eclipse, what Super Mario Sunshine could've been.