Check if Time Trials [JoshuaMK]
#1
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
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#2
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)
Reply
#3
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.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#4
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.
~MarioKartWii.com #1~
Reply
#5
(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?
Reply
#6
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
Reply
#7
(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?
Reply
#8
It should be in a valid EVA.
Here is a link with all EVAs
https://mkwii.com/showthread.php?tid=1106
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)