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

Coltonious

New Member
Newbie
Joined
Feb 25, 2021
Messages
4
Trophies
0
Age
24
XP
59
Country
United States
This is awesome! Thank you so much!

I just have one question, though. How do you patch other games? The only game that looks like it comes up when I open up the TWPatch is SM64DS. I want to make sure I'm patching my other games as well if I can :ha:
 

Stremon

Well-Known Member
Member
Joined
Sep 30, 2014
Messages
212
Trophies
0
Age
41
Location
Nerima, Tokyo
Website
jbbongrand.blogspot.fr
XP
881
Country
France
Silly question, do you guys think there is a way to make these patches work with the old 3DS XL circle pad pro?
I find it a lot more comfortable to use than the small c-stick of the new 3DS, it would work fantastic with games like Metroid Prime Hunters.
I know the circle pad pro doesn't use a direct connection (uses the IR serial port instead), so I wonder what would be needed to actually use it.
 

lone_wolf323

Well-Known Member
Member
Joined
May 27, 2011
Messages
5,455
Trophies
2
XP
4,871
Country
Canada
Silly question, do you guys think there is a way to make these patches work with the old 3DS XL circle pad pro?
I find it a lot more comfortable to use than the small c-stick of the new 3DS, it would work fantastic with games like Metroid Prime Hunters.
I know the circle pad pro doesn't use a direct connection (uses the IR serial port instead), so I wonder what would be needed to actually use it.
Are you looking for something like https://gbatemp.net/threads/wip-rehid-button-remapping-for-3ds.585387/ that?
 
  • Like
Reactions: Stremon

Stremon

Well-Known Member
Member
Joined
Sep 30, 2014
Messages
212
Trophies
0
Age
41
Location
Nerima, Tokyo
Website
jbbongrand.blogspot.fr
XP
881
Country
France
oh wow that'd actually do the trick, thanks bud! :D
Post automatically merged:

@lone_wolf323 I have been reading that thread and sadly it's not really what I want to do.
For Metroid prime hunters the small C-Stick is mapped to the touch screen input to handle the camera motion, it's not mapped to buttons. Same for Super Mario 64, the stick is mapped to the touch screen camera buttons.
 
Last edited by Stremon,
  • Like
Reactions: lone_wolf323

solidgui3

Well-Known Member
Newcomer
Joined
Feb 21, 2023
Messages
50
Trophies
0
Age
19
XP
189
Country
Brazil
Do you plan on doing any patches for C.O.P. the recruit? It's basically a driver clone and I think it would benefit nicely from dual analog control, especially in the shooting sections.
 
  • Like
Reactions: Tarmfot

emcintosh

On the internet, everyone knows I'm a cat
Member
Joined
Dec 4, 2016
Messages
434
Trophies
0
XP
2,293
Country
United Kingdom
This is awesome! Thank you so much!

I just have one question, though. How do you patch other games? The only game that looks like it comes up when I open up the TWPatch is SM64DS. I want to make sure I'm patching my other games as well if I can :ha:
Sono used SM64DS as the example image in TWPatch so you could see the effect of the different filters. The thing that is actually being patched is the instructions the 3DS uses to show the DS's lower res picture on the 3DS's higher res screen. It gets applied to any DS game, not just SM64DS.

The patches you apply to each game individually are the ones for widescreen - you tell the game to squash a wider field of view into the DS's screen, which will then get stretched out to the right shape by the 3DS if you selected a widescreen patch in TWPatch (so the image is stretched horizontally by a larger amount than vertically).

Better scaling; original 4:3 aspect ratio: Apply TWPatch normally
Better scaling; 16:10 widescreen: Apply TWPatch with widescreen option (hold Y+B to see this option) AND apply a patch/cheat to each game.
 
Last edited by emcintosh,
  • Like
Reactions: shoco

shoco

Well-Known Member
OP
Member
Joined
Aug 1, 2019
Messages
110
Trophies
0
XP
476
Country
Russia
Do you think it is possible to enable the gyroscope on AGB_FIRM for WarioWare Twisted?
I assume these patches work with NDS Bootstrap rather than with TWL_FIRM directly.
I know very little about AGB_FIRM. But in any case, AGB_FIRM would need to implement RTCom or something similar to communicate with the Arm11 to read the gyro data. And I'm not even sure if this is possible, according to gbaTek/3dbrew the legacy RTC registers (utilized by RTCom) can only be used for this purpose in DS mode.

Actually, gbaTek and 3dbrew mention registers that are used to emulate the RTC there. But even if it works, it would require patching both the AGB_FIRM (to pass the gyro data through the RTC) and the game (to accept that data from the RTC and use it properly). Too much hassle for one game.

These patches do work directly with TWL_FIRM. nds-bootstrap only gives you the ability to run AR cheatcodes, and even that is unnecessary since roms can be patched directly beforehand (like DeadSkullzJr's xdelta version of the SM64DS patch ).

Silly question, do you guys think there is a way to make these patches work with the old 3DS XL circle pad pro?
Theoretically, this should be possible. It would require implementing a way to read the Circle Pad Pro through the IR port. But I don't have this device, so I cannot do that. Also, it's probably pretty hard to do. The CStick is simple because it's just an I2C device. Even though TWL_FIRM knows nothing about it specifically, there is already everything we need to communicate with it.
 
Last edited by shoco,
  • Like
Reactions: Stremon

Tsukiru

Over the Eden
Member
Joined
May 25, 2021
Messages
321
Trophies
0
XP
788
Country
United States
Not sure how to go about this so here goes nothing. I got TWLPatcher and used that and downloaded the KH Days cheat file in the original post and my character gets stuck going to the left or right non stop.
 

Zense

Well-Known Member
Member
Joined
Apr 20, 2008
Messages
1,977
Trophies
2
XP
4,271
Country
Italy
I'm very grateful for the amount of work you've put into this and surprised I didn't discover it until now.

Imo these patches and the whole story behind them deserve to get on the front page.

What do you think, @FAST6191?
 

Stremon

Well-Known Member
Member
Joined
Sep 30, 2014
Messages
212
Trophies
0
Age
41
Location
Nerima, Tokyo
Website
jbbongrand.blogspot.fr
XP
881
Country
France
I know very little about AGB_FIRM. But in any case, AGB_FIRM would need to implement RTCom or something similar to communicate with the Arm11 to read the gyro data. And I'm not even sure if this is possible, according to gbaTek/3dbrew the legacy RTC registers (utilized by RTCom) can only be used for this purpose in DS mode.

Actually, gbaTek and 3dbrew mention registers that are used to emulate the RTC there. But even if it works, it would require patching both the AGB_FIRM (to pass the gyro data through the RTC) and the game (to accept that data from the RTC and use it properly). Too much hassle for one game.

These patches do work directly with TWL_FIRM. nds-bootstrap only gives you the ability to run AR cheatcodes, and even that is unnecessary since roms can be patched directly beforehand (like DeadSkullzJr's xdelta version of the SM64DS patch ).


Theoretically, this should be possible. It would require implementing a way to read the Circle Pad Pro through the IR port. But I don't have this device, so I cannot do that. Also, it's probably pretty hard to do. The CStick is simple because it's just an I2C device. Even though TWL_FIRM knows nothing about it specifically, there is already everything we need to communicate with it.
Thanks for the reply! (and for the awesome work you did on the mods)
That makes sense, it sounds pretty hard to support such IR protocol.
I was hoping it would internally be close enough to the CStick as that one is retro compatible with the circle pad pro games.
If you want I could send you a circle pad pro, but I don't want you to feel forced to work on it if that's not something that sounds fun to do :lol:
It would be a very niche feature that I doubt many people would use anyway haha
 
  • Like
Reactions: shoco

CheatFreak47

Catgirl Expert
Member
Joined
Oct 11, 2011
Messages
1,569
Trophies
2
Age
28
Location
Michigan, USA
XP
2,757
Country
United States
I'd like to clarify that it is possible to use these on any flashcart as well, for those of you who stick to using one of those instead of Twilight Menu.

You just use TWPatcher to setup a patched Twlbg and have Luma3DS set to load custom modules, and then set up the Action Replay cheats database linked by the OP with your flashcart instead, or add the codes manually to whatever database your flashcart uses.

Just apply the patch cheats in your flashcart menu (probably WoodR4 or YsMenu) and then boot the game, as long as your patched Twlbg is loaded by Luma, the patched games can see and interface with the additional controls.

You can also use the direct to rom patches provided by DSJ to patch a rom and load that.
 
  • Like
Reactions: shoco

shoco

Well-Known Member
OP
Member
Joined
Aug 1, 2019
Messages
110
Trophies
0
XP
476
Country
Russia
Not sure how to go about this so here goes nothing. I got TWLPatcher and used that and downloaded the KH Days cheat file in the original post and my character gets stuck going to the left or right non stop.
Looks like the TwlBg patch doesn't work properly. Check the section "In case something doesn't work" of the original post

I was hoping it would internally be close enough to the CStick as that one is retro compatible with the circle pad pro games.

The devices themselves should be close enough (on a logical level), but their low-level communication protocols are still different (ir vs i2c, technically the IR transceiver/receiver is itself an I2C device but whatever), and that's what really matters here. I guess normally the communication is implemented by the OS so that 3ds games could use these peripherals interchangeably, but we don't have that in DS mode so everything has to be coded manually.
Anyway, I don't know much about IR and reverse engineering in general, 3dbrew mentions some kind of obfuscation/encryption regarding this IR device (which is not exactly unexpected), so I really doubt I could do anything with it. But maybe someone more knowledgeable will do something one day (if it's feasible/possible)
 
Last edited by shoco,
  • Like
Reactions: Stremon

The Catboy

GBAtemp Official Catboy™: RIP Akira Toriyama
Member
Joined
Sep 13, 2009
Messages
27,736
Trophies
4
Location
Making a non-binary fuss
XP
38,495
Country
Antarctica

shoco

Well-Known Member
OP
Member
Joined
Aug 1, 2019
Messages
110
Trophies
0
XP
476
Country
Russia
Might it be possible at all for these cheats to work with forwarders installed using YANBF?
As long as this YANBF supports AR cheats and does not messes with TWL_FIRM my mods should work correctly. Although, I've never used any forwarders myself

It seems like serveral of the codes like 358/2 Days, DQ9, and really most of them don’t seem to do anything
Works for me. If you want, you can check the section "In case something doesn't work" of the original post. Most of these patches don't do anything except allow you to move the main character 360 degrees (or something close to it) with the cpad; mostly meaningless
 

Swagner

New Member
Newbie
Joined
Apr 10, 2023
Messages
1
Trophies
0
XP
35
Country
Australia
Wow I'll have to check the update out on my O3ds in a bit.
Post automatically merged:


The 200 delay seems to work fine, the game comes back when I open my 3DS back up, and then the hack kicks back in after about 5 seconds. :)
d̶o̶e̶s̶ ̶y̶o̶u̶r̶ ̶O̶3̶d̶s̶ ̶s̶t̶i̶l̶l̶ ̶h̶a̶v̶e̶ ̶m̶u̶s̶i̶c̶ ̶s̶l̶o̶w̶d̶o̶w̶n̶ ̶w̶i̶t̶h̶ ̶t̶h̶e̶ ̶m̶o̶s̶t̶ ̶r̶e̶c̶e̶n̶t̶ ̶f̶i̶l̶e̶ ̶O̶P̶ ̶p̶r̶o̶v̶i̶d̶e̶d̶?̶ ̶M̶i̶n̶e̶ ̶s̶t̶i̶l̶l̶ ̶h̶a̶s̶ ̶m̶a̶j̶o̶r̶ ̶m̶u̶s̶i̶c̶ ̶s̶l̶o̶w̶d̶o̶w̶n̶ ̶a̶n̶d̶ ̶s̶o̶m̶e̶ ̶c̶r̶a̶c̶k̶l̶i̶n̶g̶.̶ downloaded v2.2 works fine now
 
Last edited by Swagner,

shoco

Well-Known Member
OP
Member
Joined
Aug 1, 2019
Messages
110
Trophies
0
XP
476
Country
Russia
Could I request the japanese exclusive superior sequel, Okaeri! Chibi-Robo! Happy Richie Ōsōji? (Happy Rich Big Sweep)
Sure. I'll see if I can do something

d̶o̶e̶s̶ ̶y̶o̶u̶r̶ ̶O̶3̶d̶s̶ ̶s̶t̶i̶l̶l̶ ̶h̶a̶v̶e̶ ̶m̶u̶s̶i̶c̶ ̶s̶l̶o̶w̶d̶o̶w̶n̶ ̶w̶i̶t̶h̶ ̶t̶h̶e̶ ̶m̶o̶s̶t̶ ̶r̶e̶c̶e̶n̶t̶ ̶f̶i̶l̶e̶ ̶O̶P̶ ̶p̶r̶o̶v̶i̶d̶e̶d̶?̶ ̶M̶i̶n̶e̶ ̶s̶t̶i̶l̶l̶ ̶h̶a̶s̶ ̶m̶a̶j̶o̶r̶ ̶m̶u̶s̶i̶c̶ ̶s̶l̶o̶w̶d̶o̶w̶n̶ ̶a̶n̶d̶ ̶s̶o̶m̶e̶ ̶c̶r̶a̶c̶k̶l̶i̶n̶g̶.̶ downloaded v2.2 works fine now
Have you tried the last version attached in the original post? The one in an archive named "super_mario_64_ds.zip". I thought I've solved this problem long ago. Was the CPad at least working when you had the sound problem?
 
  • Like
Reactions: stanleyopar2000

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    straferz @ straferz: Anybody know why this is happening to my ACWW town...