So first of all I want to say that I don't really have much experience in this type of thing. I've messed around with game hacking before, and I know the basic idea behind how the codes are supposed to work, but I've never tried to actually make a code like this from scratch, nor do I have any sort of experience in low-level programming, so it's safe to say I really don't know what I'm actually doing here.
Ultimately, my goal here is to create a code for Super Mario Galaxy 2 [SB4E01] which does the following:
But it's still not working how I'd like it to.
If I put it in the "AR Codes" section of Dolphin (5.0, stable release) it does absolutely nothing.
If I put it in SB4E01.ini so I can activate it in the "Gecko Codes" section, it seems to only be doing anything when I actually click "Apply"; if Mario is off Yoshi he'll be visible, and if Mario is on Yoshi he'll be invisible. However, getting on and off Yoshi seems to be having no effect on its own.
For comparison, here's a code which is identical, but adjusts the Star Bit counter on Starship Mario instead:
This code does work properly: when on Yoshi it sets the Star Bit counter to 9000, and otherwise it sets the counter to 8999. More importantly, it seems to be holding the counter at these values, setting it every frame (or at least as often as possible). Also, it works whether I activate it through the "AR Codes" section or through the "Gecko Codes" section.
This seems to indicate to me that the issue lies with the particular code I'm trying to use to set Mario's visibility (which is taken straight from the "invisible mario/luigi toggle" code by wiiztec on the second page I linked). Unfortunately, I'm not aware of any other address I can try to change to adjust it (in no small part because I'm having trouble finding anything in the game that turns Mario invisible briefly so I can do a cheat search...). If anyone knows of a code I can use here, or if I'm doing anything wrong, it'd be quite appreciated.
(Also, small tangent: is it more proper to call these AR codes or Gecko codes? I know there was an AR for Wii that, IIRC, used an entirely different code format which isn't compatible here. But Dolphin seems to give the impression that "AR codes" are meant to be the custom ones you create, and "Gecko codes" are meant to be the pre-existing ones that you can get from WiiRD? So I'm not sure which is more correct to use here, lol.)
Ultimately, my goal here is to create a code for Super Mario Galaxy 2 [SB4E01] which does the following:
- If on Yoshi, make Mario invisible (so, essentially, it looks like you're just playing as Yoshi, as in this video I made).
- If not on Yoshi, make Mario visible like normal.
Code:
28A777DA 00000001 04384DC4 38000001 2AA777DB 00000001 04384DC4 8005000C E2000001 00000000
If I put it in the "AR Codes" section of Dolphin (5.0, stable release) it does absolutely nothing.
If I put it in SB4E01.ini so I can activate it in the "Gecko Codes" section, it seems to only be doing anything when I actually click "Apply"; if Mario is off Yoshi he'll be visible, and if Mario is on Yoshi he'll be invisible. However, getting on and off Yoshi seems to be having no effect on its own.
For comparison, here's a code which is identical, but adjusts the Star Bit counter on Starship Mario instead:
Code:
28A777DA 00000001 02E40E7A 00002328 2AA777DB 00000001 02E40E7A 00002327 E2000001 00000000
This seems to indicate to me that the issue lies with the particular code I'm trying to use to set Mario's visibility (which is taken straight from the "invisible mario/luigi toggle" code by wiiztec on the second page I linked). Unfortunately, I'm not aware of any other address I can try to change to adjust it (in no small part because I'm having trouble finding anything in the game that turns Mario invisible briefly so I can do a cheat search...). If anyone knows of a code I can use here, or if I'm doing anything wrong, it'd be quite appreciated.
(Also, small tangent: is it more proper to call these AR codes or Gecko codes? I know there was an AR for Wii that, IIRC, used an entirely different code format which isn't compatible here. But Dolphin seems to give the impression that "AR codes" are meant to be the custom ones you create, and "Gecko codes" are meant to be the pre-existing ones that you can get from WiiRD? So I'm not sure which is more correct to use here, lol.)
Comment