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)
|
-snip- - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14) +--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61) +--- Thread: -snip- (/showthread.php?tid=1377) Pages:
1
2
|
-snip- - Sponge - 12-03-2019 -snip- RE: Rainbow Function code - Vega - 12-04-2019 The rainbow function code (plus the various elements rainbow code) utlilize Mem81 (which autoclears after every race). I looked at future fly and I don't see any use of Mem81 in that code (The use of mem81 in mkwii codes wasn't really done til Bully came along the mkw coding scene in 2012). I noticed you changed the Mem81 addresses in the rainbow codes. There's no need for that, that won't fix your issue (unless you have other codes in your GCT also use Mem81). None of the codes' memory/execution addresses are shared. I'm not sure how these would conflict each other. The future fly code makes plenty use of the Exception Vector area. Have you tested a GCT just using the two rainbow codes w/ future fly, nothing else added on. RE: Rainbow Function code - Sponge - 12-04-2019 Tried a gct by itself and the same issue occurs, no idea why. RE: Rainbow Function code - Vega - 12-04-2019 Btw regarding the discord convo, nice find on the r14 issue. That never crossed my mind. Someday, I'll need to rewrite the sources for mdmwii's future fly and stalking codes RE: Rainbow Function code - Vega - 12-18-2019 Hey sponge, finally remembered to take another look at the Rainbow function code (for your request to fix the r14 issue). I added some quick instructions to prevent r14 from effecting mdmwiis stalkin and future fly... let me know if this works... Code: stw r14, -0x4 (sp) #Store r14 to negative stack area RE: Rainbow Function code - Sponge - 12-18-2019 (12-18-2019, 02:31 AM)Vega Wrote: Hey sponge, finally remembered to take another look at the Rainbow function code (for your request to fix the r14 issue).Tried this and it only cycles through red and yellow now. Also, it still freezes the color when activating future fly or stalking so it must be another reguster RE: Rainbow Function code - Vega - 12-18-2019 After more analysis, r18 & r22 are some sort of a conditional-status trackers, while r14, r17, & r20 values are being altered depending on the 'status' of the conditional trackers. r15 is used for the mem81 address reference where r14/17/20 are stored and updated at. Other rainbow codes will thus use the mem81 values and adjust accordingly. It's obviously a no-no to use the global variable registers like this. I adjusted my source more... After debugging the code a tiny bit, all the global variable registers that are being used always start at 0. So ill just load up unused memory from the vector area for all custom global variable register values. Then update the vector area accordingly. mem81 will not be touched so other rainbow codes should still function right. In between all of this, a stack push will be done so the real variable register values don't get effected. Hopefully this will work unless I'm missing something super obvious here... Code: stwu sp, -0x50 (sp) #Stack push RE: Rainbow Function code - Sponge - 12-18-2019 (12-18-2019, 02:40 PM)Vega Wrote: After more analysis, r18 & r22 are some sort of a conditional-status trackers, while r14, r17, & r20 values are being altered depending on the 'status' of the conditional trackers. r15 is used for the mem81 address reference where r14/17/20 are stored and updated at. Other rainbow codes will thus use the mem81 values and adjust accordingly.The game blackscreens upon booting the Title Screen RE: Rainbow Function code - Vega - 12-18-2019 Ye i botched an instruction lol.. lwz r14, 0x8 (sp) #Recover global variable values change that to... lmw r14, 0x8 (sp) RE: Rainbow Function code - Sponge - 12-18-2019 (12-18-2019, 04:27 PM)Vega Wrote: Ye i botched an instruction lol..Ok now it boots, but the game gets stuck on this weird shade of green now and doesn't change from that, even when I don't use future fly |