Hacking Circle Pad patches for Super Mario 64 DS and other games (in TwilightMenu with TWPatcher and RTCom)

ImXgaming10

New Member
Newbie
Joined
May 22, 2024
Messages
2
Trophies
0
Age
24
XP
3
Country
United States
is there a way to have the main cheat file and the starfox cpad invert at the same time
Post automatically merged:

is there a way to have the main cheat file and the starfox cpad invert at the same time
 

emcintosh

On the internet, everyone knows I'm a cat
Member
Joined
Dec 4, 2016
Messages
463
Trophies
0
XP
2,397
Country
United Kingdom
is there a way to have the main cheat file and the starfox cpad invert at the same time
Post automatically merged:

is there a way to have the main cheat file and the starfox cpad invert at the same time
You need to open usrcheat.dat (e.g. in the R4CCE program) and add the content of the relevant file from star_fox_cpad_mod_inverted.zip as a code to the matching game's entry. ISTR seeing a mention of an online editor, but I can't remember where.
 
  • Like
Reactions: shoco

CartoonGamerMatt

Member
Newcomer
Joined
Mar 26, 2021
Messages
7
Trophies
0
Age
27
XP
54
Country
United States
Hi, I'm trying to get the C-pad controls to work with Zelda Phantom Hourglass and Spirit Tracks D-pad patched .NDS games. I have the D-Pad patched games, but when I try to load the C-pad cheat in the cheats menu, it says "No cheats available" for both games. Now, interestingly, when I try just the base Phantom Hourglass and Spirit Tracks, the C-pad cheat is available, but the cheat does not show up for the D-Pad patched games. I'm trying to play with D-pad controls with the C-pad cheat. Any help would be greatly appreciated. All the games I've tested have worked so far with the C-pad cheat, except the D-pad patched Zelda games.
 

STJebus

Member
Newcomer
Joined
Aug 3, 2023
Messages
12
Trophies
0
Age
30
XP
94
Country
Canada
Hi, I'm trying to get the C-pad controls to work with Zelda Phantom Hourglass and Spirit Tracks D-pad patched .NDS games. I have the D-Pad patched games, but when I try to load the C-pad cheat in the cheats menu, it says "No cheats available" for both games. Now, interestingly, when I try just the base Phantom Hourglass and Spirit Tracks, the C-pad cheat is available, but the cheat does not show up for the D-Pad patched games. I'm trying to play with D-pad controls with the C-pad cheat. Any help would be greatly appreciated. All the games I've tested have worked so far with the C-pad cheat, except the D-pad patched Zelda games.
From my understanding when you patch a game you change it's ID.
You need to open usrcheat.dat (e.g. in the R4CCE program) find the phantom hourglass (separate games folder in the download you can find the ID for it.) Then using the three dots button [...] point it towards your patched game instead. I had to do this for english Ni No Kuni.
 
  • Like
Reactions: CartoonGamerMatt

CartoonGamerMatt

Member
Newcomer
Joined
Mar 26, 2021
Messages
7
Trophies
0
Age
27
XP
54
Country
United States
From my understanding when you patch a game you change it's ID.
You need to open usrcheat.dat (e.g. in the R4CCE program) find the phantom hourglass (separate games folder in the download you can find the ID for it.) Then using the three dots button [...] point it towards your patched game instead. I had to do this for english Ni No Kuni.

Where do I store the usrcheat.dat file for the individual games? I have the main usrcheat.dat file in the Extras folder on my SD card. I'm not sure where to store usrcheat.dat files for individual games though. Thanks for your help.
 

STJebus

Member
Newcomer
Joined
Aug 3, 2023
Messages
12
Trophies
0
Age
30
XP
94
Country
Canada
It only 1 file. You have to open the main file up in R4CCE. All of the cheats are in there. I only recommended using the "separate game cheats" to find the ID of the game you are looking for in the Main file. You can use the search at the bottom to then jump to it.
 
  • Like
Reactions: CartoonGamerMatt

CartoonGamerMatt

Member
Newcomer
Joined
Mar 26, 2021
Messages
7
Trophies
0
Age
27
XP
54
Country
United States
From my understanding when you patch a game you change it's ID.
You need to open usrcheat.dat (e.g. in the R4CCE program) find the phantom hourglass (separate games folder in the download you can find the ID for it.) Then using the three dots button [...] point it towards your patched game instead. I had to do this for english Ni No Kuni.
If you're willing, could please explain the process step-by-step? I'm honestly not familiar on how to edit the usrcheat.dat file and I'm not sure where to store the individual cheat files for just the Zelda games. I also don't know what R4CCE is. Basically, I just followed a tutorial to get Twilight Menu working, but I have no idea how any of it works outside of following the tutorial. Lol
Post automatically merged:

It only 1 file. You have to open the main file up in R4CCE. All of the cheats are in there. I only recommended using the "separate game cheats" to find the ID of the game you are looking for in the Main file. You can use the search at the bottom to then jump to it.
Sounds like the main step is downloading R4CCE. Then I need to edit the patched Zelda games to match the original games' IDs. What I'm not clear on is where I need to store the files.
 

emcintosh

On the internet, everyone knows I'm a cat
Member
Joined
Dec 4, 2016
Messages
463
Trophies
0
XP
2,397
Country
United Kingdom
If you're willing, could please explain the process step-by-step? I'm honestly not familiar on how to edit the usrcheat.dat file and I'm not sure where to store the individual cheat files for just the Zelda games. I also don't know what R4CCE is. Basically, I just followed a tutorial to get Twilight Menu working, but I have no idea how any of it works outside of following the tutorial. Lol
Post automatically merged:


Sounds like the main step is downloading R4CCE. Then I need to edit the patched Zelda games to match the original games' IDs. What I'm not clear on is where I need to store the files.
R4 Cheat Code Editor edits the cheat file format popularised by the R4 flashcart.

The IDs of games can get changed when you edit the ROM. It's not something you can edit about the game yourself - you need to edit the ID of the entry for the game in the cheat file to match the new ID for the modded game, which you can get from the files in this thread that contain the cheats that patch the controls.

Once you've edited the usrcheat.dat file, you copy it to sd:/_nds/TWiLightMenu/extras/.
 

CartoonGamerMatt

Member
Newcomer
Joined
Mar 26, 2021
Messages
7
Trophies
0
Age
27
XP
54
Country
United States
R4 Cheat Code Editor edits the cheat file format popularised by the R4 flashcart.

The IDs of games can get changed when you edit the ROM. It's not something you can edit about the game yourself - you need to edit the ID of the entry for the game in the cheat file to match the new ID for the modded game, which you can get from the files in this thread that contain the cheats that patch the controls.

Once you've edited the usrcheat.dat file, you copy it to sd:/_nds/TWiLightMenu/extras/.
Thank you! I will try and figure this out from what you've explained here.
Post automatically merged:

R4 Cheat Code Editor edits the cheat file format popularised by the R4 flashcart.

The IDs of games can get changed when you edit the ROM. It's not something you can edit about the game yourself - you need to edit the ID of the entry for the game in the cheat file to match the new ID for the modded game, which you can get from the files in this thread that contain the cheats that patch the controls.

Once you've edited the usrcheat.dat file, you copy it to sd:/_nds/TWiLightMenu/extras/.
The main thing that confuses me is where I can find the new ID for the D-pad patched game. You said that's in the files on this thread?
 

Vendicatorealato

Active Member
Newcomer
Joined
Jan 22, 2023
Messages
36
Trophies
0
XP
483
Country
Italy
The main thing that confuses me is where I can find the new ID for the D-pad patched game. You said that's in the files on this thread?
You can view it by loading the ROM to R4CCE, clicking on "…" after adding a new game.
Anyway, we discussed about D-Pad patched The Legend of Zelda games in previous pages, and these are the GameIDs:
The GameID of Phantom Hourglass (USA) D-Pad patched is AZEE-FD8A6DD1.
the GameID of the D-Pad patched Spirit Tracks (USA) is BKIE-5818C636
 

Ninja-Eule

Member
Newcomer
Joined
Apr 28, 2024
Messages
10
Trophies
0
Age
27
XP
33
Country
Germany
As for the gyroscope business, emcintosh and Ninja-Eule can you test this program? It's just a regular NDS application. I doubt this will work, but just as a last attempt of mine.
Start it, wait for ~10 seconds, and tell me what you see at the bottom screen (specifically, there should be something like "gyro variant" and "gyro device id"). Ideally, if the gyroscope would work, on the top screen there are 3 rectangles (reg, blue, green), and if you rapidly rotate the console around one of the three cardinal axis (X, Y, Z), they will expand up and down. You may also press DPad Up for "calibration", but it probably doesn't matter
Sorry for taking so long to respond. I was busy with university.
The gyro seems to work in the test app you send me.
If I move the 3DS up and down the green bar points in the opposite direction of the movement, moving the 3DS left causes the red and blue bars to point down, while moving it right makes the bars point up, tilting the 3DS left and right makes the blue bar go up for right and down for left and tilting the 3DS front and back causes the red bar to go up when the left side goes back and the right side goes forward with the opposite happening if the left side goes forward and the right side goes back.
I have GyroVariant 02 with GyroDeviceId 72 as seen in the picture. I hope that info helps.
The last 2 digits of all 3 values shown on the bottom screen hover a bit with the left and right ones staying in the positive direction and reaching 32 max while the middle one goes from -48 up to +32. Recalibrating doesn't change that.
 

Attachments

  • WhatsApp Image 2024-05-23 at 23.42.14.jpeg
    WhatsApp Image 2024-05-23 at 23.42.14.jpeg
    148.9 KB · Views: 2
  • Like
Reactions: emcintosh

EmmaQF

Member
Newcomer
Joined
May 5, 2020
Messages
6
Trophies
0
Age
23
XP
91
Country
Brazil
Hi dude Ive been trying to remap the mario 64 buttons but I just can't download r4cce no matter how many times I click it won't download. Can you help make this cheat.dat file ?
 

shoco

Well-Known Member
OP
Member
Joined
Aug 1, 2019
Messages
127
Trophies
0
XP
541
Country
Russia
Could GoldenEye Rogue Agent get the same c-stick love as the other FPS-es? One of the few on the DS with dual wield if I’m not mistaken.
Done

I would try to patch the device table. It's always been 18 devices long but they made changes to the Gyroscope entries over the years.
Yeah, it seems I can't avoid it. But it's a little problematic to do blindfolded, without access to the device. And I am not really sure what to patch-in into those table. Are those i2c device addresses and bus IDs even stay the same? Because otherwise I don't know what to do except for probing every possible combination, but even then I have to know what to look for

Hello! thanks for the updated Usercheat but fighting fantasy and now Phantasy star Zero still give this black or White Screen and wont load the game.
Check out the troubleshooting section in the first post. One way or another, you haven't patched the TwlBg properly

Is it possible to invert the c-stick camera x axis in Super Mario 64 DS?
Here is a version with the inverted CStick (sm64ds_inverted_cstick_x.zip)

Sorry for taking so long to respond. I was busy with university.
The gyro seems to work in the test app you send me.
Good to know. You can try this version of the mod. It doesn't support CStick but it should be enough to see if the gyro even works. And, as I understand, the X and Y axis are supposed to be swapped in your gyro version. I think I can fix it later. Also, please check out `TestGyro_v2.zip` below.

@emcintosh Hello. I've got another request for you. Please try this `TestGyro_v2.zip`. It's the same test app as the previous one, except now it should also show the I2C Device table (i.e. a list of bus ids and addresses) from your TwlBg on the bottom screen. Just type it here or take a photo. It should look something like this:
Code:
I2C Device Table:
00) 00:4A 00:7A 00:78
03) 01:4A 01:78 01:2C
06) 01:2E 01:40 01:44
09) 02:D6 02:D0 02:D2
12) 02:A4 02:9A 02:A0
 

Attachments

  • sm64ds_inverted_cstick_x.zip
    42.1 KB · Views: 1
  • TestGyro_v2.zip
    43.7 KB · Views: 1
  • Like
Reactions: STJebus

ghjfdtg

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,374
Trophies
1
XP
3,331
Country
Yeah, it seems I can't avoid it. But it's a little problematic to do blindfolded, without access to the device. And I am not really sure what to patch-in into those table. Are those i2c device addresses and bus IDs even stay the same? Because otherwise I don't know what to do except for probing every possible combination, but even then I have to know what to look for
I think this is the most up to date one. The author seems to have extracted these entries directly from I2C module.
https://github.com/profi200/libn3ds/blob/master/source/arm11/drivers/i2c.c#L31

Once you fix the device table you should be able to use the I2C functions normally but this time the Gyroscope device IDs should all work.
 

Ninja-Eule

Member
Newcomer
Joined
Apr 28, 2024
Messages
10
Trophies
0
Age
27
XP
33
Country
Germany
Yeah, it seems I can't avoid it. But it's a little problematic to do blindfolded, without access to the device. And I am not really sure what to patch-in into those table. Are those i2c device addresses and bus IDs even stay the same? Because otherwise I don't know what to do except for probing every possible combination, but even then I have to know what to look for

Good to know. You can try this version of the mod. It doesn't support CStick but it should be enough to see if the gyro even works. And, as I understand, the X and Y axis are supposed to be swapped in your gyro version. I think I can fix it later. Also, please check out `TestGyro_v2.zip` below.
I hope the Picture sheds some light on the I2C situation. Are the bus IDs also in there? If not I can test a 3rd version of the TestGyro to get these in case they aren't. I typed the code below to make it easier to copy. It seems to be identical to your example.

As for the old 3DS version of the mod, it works but is a bit wonky. When I move the 3DS left, then my view moves left and up, when I move the 3DS right, the view moves right and down, tilting the 3DS back and forth makes the view move up and down in tiny steps, mostly down and moving the 3DS up and down does nothing.

Code:
I2C Device Table:
00) 00:4A 00:7A 00:78
03) 01:4A 01:78 01:2C
06) 01:2E 01:40 01:44
09) 02:D6 02:D0 02:D2
12) 02:A4 02:9A 02:A0
 

Attachments

  • WhatsApp Image 2024-05-29 at 09.07.50.jpeg
    WhatsApp Image 2024-05-29 at 09.07.50.jpeg
    483.4 KB · Views: 1

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: https://youtu.be/WwFuB1GRKz4