The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Mario Kart Wii Gecko Codes, Cheats, & Hacks
Enable All Tracks in LE-CODE TTs [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: Enable All Tracks in LE-CODE TTs [JoshuaMK] (/showthread.php?tid=1401)

Pages: 1 2


Enable All Tracks in LE-CODE TTs [JoshuaMK] - JoshuaMK - 12-28-2019

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


RE: Enable All Tracks in LE-CODE TTs - Vega - 12-28-2019

Don't forget to add your name tags for the Titles Wink


RE: Enable All Tracks in LE-CODE TTs - JoshuaMK - 12-28-2019

Haha yeah


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - 9Paran - 12-29-2019

Nice code


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - FancyWheelies - 12-29-2019

Would this corrupt the save if you try to save non-32 track ghosts?


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - JoshuaMK - 12-29-2019

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.


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - FancyWheelies - 12-29-2019

Oh, SD ghost saving like CTGP? Amazing!


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - Leseratte10 - 12-29-2019

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.


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - JoshuaMK - 12-29-2019

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...


RE: Enable All Tracks in LE-CODE TTs [JoshuaMK] - Leseratte10 - 12-29-2019

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.