Mario Kart Wii Gecko Codes, Cheats, & Hacks
Check if Time Trials [JoshuaMK] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Misc/Other (https://mariokartwii.com/forumdisplay.php?fid=55)
+--- Thread: Check if Time Trials [JoshuaMK] (/showthread.php?tid=1471)



Check if Time Trials [JoshuaMK] - JoshuaMK - 03-08-2020

Check if Time Trials [JoshuaMK]

Use this code to have changes be specific to when you are/aren't in Time Trials.



(Region Free)
C0000000 0000000D
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81490000 2C0A0000
39200000 912C01FC
41820018 814A1760
2C0A0002 4082000C
39400001 914CXXXX
4E800020 00000000



XXXX = Offset from 0x80000000 to store byte (02FF = 0x800002FF)



Values to check for codes that use this for Time Trial dependent changes:

Time Trials = 1
Any other mode = 0



Code Creator: JoshuaMK
Code Contributors: Leseratte


RE: Check if Time Trials [JoshuaMK] - Seeky - 03-08-2020

The byte at 0x809C38BC PAL stores whether time trials is active too, you could probably shorten the code by loading directly from there instead of needing to load the racedata pointer and then get a value from racedata (The function 0x807bd1d0 PAL might be useful for porting)


RE: Check if Time Trials [JoshuaMK] - JoshuaMK - 03-08-2020

The code is intentionally long because I wanted this to be region free and such, loading the value directly from the pointer itself too for stability.


RE: Check if Time Trials [JoshuaMK] - Zeraora - 02-19-2021

One thing I noticed about this code (and I don't know if its just me being stupid or not) Is that the bit that gets set to 1 will not change if you select time trials then go over to a different mode. This is a bit of an issue because this means that codes specified for time trials can be moved over to other modes.


RE: Check if Time Trials [JoshuaMK] - jawa - 04-07-2021

(03-08-2020, 04:26 AM)JoshuaMK Wrote: Check if Time Trials [JoshuaMK]

Use this code to have changes be specific to when you are/aren't in Time Trials.



(Region Free)
C0000000 0000000D
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81490000 2C0A0000
39200000 912C01FC
41820018 814A1760
2C0A0002 4082000C
39400001 914CXXXX
4E800020 00000000



XXXX = Offset from 0x80000000 to store byte (02FF = 0x800002FF)



Values to check for codes that use this for Time Trial dependent changes:

Time Trials = 1
Any other mode = 0



Code Creator: JoshuaMK
Code Contributors: Leseratte
so the xxxx serves what purpose?


RE: Check if Time Trials [JoshuaMK] - 1superchip - 04-07-2021

XXXX is the memory offset to store the byte.
It will store the byte to 0x80000000 + XXXX
If you wanted the byte stored at 0x800003FF, you would have XXXX = 03FF


RE: Check if Time Trials [JoshuaMK] - jawa - 04-07-2021

(04-07-2021, 12:30 PM)1superchip Wrote: XXXX is the memory offset to store the byte.
It will store the byte to 0x80000000 + XXXX
If you wanted the byte stored at 0x800003FF, you would have XXXX = 03FF

so it can be any byte? like 06AF?


RE: Check if Time Trials [JoshuaMK] - 1superchip - 04-07-2021

It should be in a valid EVA.
Here is a link with all EVAs
https://mkwii.com/showthread.php?tid=1106