Enable All Tracks in LE-CODE TTs [JoshuaMK]
#1
Enable All Tracks in LE-CODE TTs [JoshuaMK]

Normally, LE-CODE distributions are limited to the original 8 cups in Time Trials. This code removes that limit by searching for the instructions in LE-CODE that handle the amount of cups at a given time, and overwrites the li r28, 8 instruction with: lwz r28, 0x2894 (r30), which loads how many cups there are in the distribution.

NOTE This could CORRUPT your SAVE FILE currently, so please be careful and not save ghosts outside the first 8 cups.



(Region Free)
C0000000 0000000C
3D80808E 3C60808F
3D603FC0 616B808E
3D403BA0 3D203B80
61290008 7C0C1800
4C800020 84AC0004
7C055800 4082FFF0
80AC0004 7C055000
40A2FFE4 80AC0008
7C054800 40A2FFD8
816C0018 916C0008
3D604E80 616B0020
916F0000 4E800020



Code Creator: JoshuaMK
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#2
Don't forget to add your name tags for the Titles Wink
Reply
#3
Haha yeah
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#4
Nice code
Reply
#5
Would this corrupt the save if you try to save non-32 track ghosts?
Reply
#6
It's fairly likely it would simply not save the ghost, but if it does, it would most definitely corrupt something. I'm currently working on another code which patches the game to have all tracks have their own unique ghosts, and ghost saves. I'm preferably trying to get it to read/write ghost from an SD card rather than saving all of them to the Wii's NAND memory.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#7
Oh, SD ghost saving like CTGP? Amazing!
Reply
#8
Interesting that people are starting to look into the LE-CODE. 

I never tested how the game would behave when playing TTs on custom trracks, I was just assuming it would corrupt the savegame because that was what happened on the old ct-code. But even if it didn't it would result in ghosts being stored (and uploaded to Wiimmfi) for wrong slots, that's why I disabled it in LE-CODE. 

If someone writes a code / patch that allows every CT to have its own ghost ID (maybe even with SD card saving) I could definitely include that in a future version of the LE-CODE so it's included by default if you want.
Reply
#9
That would be great! Speaking of, do you have any tips on how to read/write from the SD card? I'm pretty sure I need to call IOS_Open, then IOS_Read/Write, then IOS_Close when I'm done, but I'm wondering if you know if this process is the correct way to access the SD card...
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#10
As far as I know, IOS_Open is for files on the disc. Mario Kart Wii doesn't support writing to / reading from the SD card. You'd need to code all that (SD access including FAT filesystem drivers) into the game yourself.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)