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
Instant Transmission Switch [Anarion] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Offline Non-Item (https://mariokartwii.com/forumdisplay.php?fid=53)
+--- Thread: Instant Transmission Switch [Anarion] (/showthread.php?tid=778)

Pages: 1 2


RE: Instant Transmission Switch [Anarion] - JoshuaMK - 02-07-2020

Wow that would be a problem. I also fixed the player states too so you don't "slide" anymore, although a bug with the handling range is still present. Try this Tongue

(NTSC-U)
C258FDC0 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(PAL)
C25965E4 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(NTSC-J)
C2595F64 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(NTSC-K)
C258463C 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

.set region, '' #Must set region value, or else source will not compile

.if (region == 'E' || region == 'e') # RMCE
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'P' || region == 'p') # RMCP
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'J' || region == 'j') # RMCJ
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'K' || region == 'k') # RMCK
.macro controller_address
lis r12, 0x8033
.endm
.else # Invalid Region
.abort
.endif

controller_address
lhz r12, 0x3E80 (r12)
andi. r0, r12, 0x10 #Z button
lis r12, 0x8000
lhz r5, 0x1C0 (r12)
sth r0, 0x1C0 (r12)
mr r12, r4
lwz r4, 0x14 (r4)
beq- noPress
cmpwi r5, 0
bne+ noPress
xori r4, r4, 0x10
stw r4, 0x14 (r12)
lwz r5, 0x4 (r12)
rlwinm r5, r5, 0, 4, 2
rlwinm r5, r5, 0, 29, 27
stw r5, 0x4 (r12)
noPress:

XXXX = Upper Controller Address
YYYY = Lower Controller Address
ZZZZ = Button to Press


RE: Instant Transmission Switch [Anarion] - Vega - 02-08-2020

It's not working. Transmission changes are not executing.


RE: Instant Transmission Switch [Anarion] - JoshuaMK - 02-08-2020

Ah crap, I forgot to change the faulty lbz to lhz and stb to sth, sorry about that oversight Tongue It SHOULD work now LOL

Another thing, this code needs the raw inputs typed in. So z button is 0x0010 in this case, instead of 0x90. Idk what I did different for it to work this way but I've no time to fiddle with it.


RE: Instant Transmission Switch [Anarion] - Vega - 02-09-2020

So it looks like this Code (both the ASM and 28 version) only work 100% on Dolphin.

Here's the rundown of what I did this morning-
Your ASM version wasn't working
So I re-equipped my GCT from yesterday (which worked fine yesterday and its the version in the OP)
Now that version isn't working no matter what
My hooktype was in GXDraw, tried VBI
Still no worky...

Used OP version in Dolphin, works Fine. Used ASM version in Dolphin works fine.

So by now I am a little frustrated and do not want to bother with this code anymore. At least it works 100% in Dolphin...Added appropriate NOTE to OP.

The only TRUE way to know if his works on Console and it's not CodeHandler related (lmao here we go again) is to perma edit your ASM version onto an ISO/WBFS file. Tut for that is here - http://mkwii.com/showthread.php?tid=998

I am not expecting you to do all this work ofc, but if you are interested go ahead. Other tests could be to take your ASM version and try them on every hooktype after multiple reboots of the console, but that's silly.

With all of this being said, maybe you could start a thread on remaking a new code handler, make a github repo and we can work on it. I will be honest with you, I don't have much motivation to PPC-code anymore. Another option is to take Dolphin's codehandler.bin and recompile USB Loader GX in DevKit with it.


RE: Instant Transmission Switch [Anarion] - JoshuaMK - 02-09-2020

Maybe I will do just that. I'm sick of the process we have to go through. "Maybe it's the codehandler" We shouldn't even have to deal with this possibility (which is veeery likely).