Homebrew TWPatcher - DS(i) mode screen filters and patches

  • Thread starter Sono
  • Start date
  • Views 762,876
  • Replies 2,430
  • Likes 102

Are you interested in a complete replacement of TwlBg which includes all patches?

  • Yes, I don't care how broken it will be!

    Votes: 188 79.3%
  • No, I don't want to use even more broken stuff

    Votes: 20 8.4%
  • Yes, but only in GBA mode, because I play DSi exclusives

    Votes: 12 5.1%
  • No, because I only use DS and DSi mode

    Votes: 17 7.2%

  • Total voters
    237
  • Poll closed .

rxwaan

Member
Newcomer
Joined
Jul 29, 2023
Messages
6
Trophies
0
XP
123
Country
United States
It's the latter. Redshift code runs once before that section of memory is completely unmapped and mapped to the DS/GBA side.

The more surprising thing is that it doesn't crash when waking up from sleep mode, as sleep mode always crashes for me...
Good to know it wasn't just user error on my part.

I will note after some playing around I think I have discovered at least a workaround for this, however, since my 3DS is almost always on charge when I'm not using it, I can't validate its effectiveness as far as battery goes.

Basically, before closing the lid/putting the game in sleep mode I have been using the Select + Down + L shortcut to open the .nds/ROM menu and leaving it on-screen and the game suspended. It seems that as long as this menu is open, when I return to the game later it will retain my Redshift adjustments and I can simply close the menu and continue playing.

Again, I can't speak for the effectiveness of this workaround where battery is concerned since I'm not sure if this puts it into actual sleep mode or just turns off the backlight the same way it does when you close the screen running the built-in GBA VC.
 

Attachments

  • PXL_20230806_191718528.jpg
    PXL_20230806_191718528.jpg
    4.4 MB · Views: 66
  • Like
Reactions: csandrade87

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,666
Trophies
3
Age
25
XP
21,168
Country
United States
Good to know it wasn't just user error on my part.

I will note after some playing around I think I have discovered at least a workaround for this, however, since my 3DS is almost always on charge when I'm not using it, I can't validate its effectiveness as far as battery goes.

Basically, before closing the lid/putting the game in sleep mode I have been using the Select + Down + L shortcut to open the .nds/ROM menu and leaving it on-screen and the game suspended. It seems that as long as this menu is open, when I return to the game later it will retain my Redshift adjustments and I can simply close the menu and continue playing.

Again, I can't speak for the effectiveness of this workaround where battery is concerned since I'm not sure if this puts it into actual sleep mode or just turns off the backlight the same way it does when you close the screen running the built-in GBA VC.
Yeah, in the nds-bootstrap in-game menu, it does not go into sleep mode, and the backlight simply turns off.
 

rxwaan

Member
Newcomer
Joined
Jul 29, 2023
Messages
6
Trophies
0
XP
123
Country
United States
Yeah, in the nds-bootstrap in-game menu, it does not go into sleep mode, and the backlight simply turns off.
I thought this may be the case. I'm also not sure if the bootstrap menu has an automatic timeout but from what I've tested this workaround has been fine as a short term solution when I'm closing the screen for a couple mins at a time. I can't confirm the efficacy long-term.
 
  • Like
Reactions: csandrade87

Kiichin

Member
Newcomer
Joined
Oct 9, 2013
Messages
11
Trophies
0
Age
31
XP
151
Country
Brazil
Hey friends.
Haven't used my 3DS to play DS much these past few years and I wanted to do so.

I had installed this patch and TWMenu++ a couple of years ago. Now, when I open the TWPatcher and choose my option (say, Sono's Crisp") everything seems to work as intended but when I open the game (a Pokémon hackrom) through TWMenu++ it doesn't look different. It could be just me not being able to see a huge difference but a funny behaviour is that when I open TWMenu++ the "cursor" seems to be selecting the sharpen filter, instead of the previously selected one (Sono's Crisp at this example). Is this the expected behaviour? If it is not how could I go around updating? Thanks in advance.
 

verypedro

Well-Known Member
Newcomer
Joined
Jul 28, 2019
Messages
57
Trophies
0
Age
29
XP
297
Country
Brazil
Hey friends.
Haven't used my 3DS to play DS much these past few years and I wanted to do so.

I had installed this patch and TWMenu++ a couple of years ago. Now, when I open the TWPatcher and choose my option (say, Sono's Crisp") everything seems to work as intended but when I open the game (a Pokémon hackrom) through TWMenu++ it doesn't look different. It could be just me not being able to see a huge difference but a funny behaviour is that when I open TWMenu++ the "cursor" seems to be selecting the sharpen filter, instead of the previously selected one (Sono's Crisp at this example). Is this the expected behaviour? If it is not how could I go around updating? Thanks in advance.
Did you enable external FIRMS in the Luma menu (holding Select while powering on the 3DS)? It won't work if you haven't.

But yeah, the app always default to Linear Sharpen when you launch it. That is expected.


While I am at it I was wondering it is possible to have game specific patches. I use YANBF to launch my games from the 3DS Menu and it would be super cool to have a specific patch to a specific game, like Sharpen Crisp to Pokémon, or Linear Sharpen for Super Mario 64 DS.
I know it's probably not possible, but I was wondering about it
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,829
Trophies
2
Location
home
XP
9,428
Country
Hungary
While I am at it I was wondering it is possible to have game specific patches. I use YANBF to launch my games from the 3DS Menu and it would be super cool to have a specific patch to a specific game, like Sharpen Crisp to Pokémon, or Linear Sharpen for Super Mario 64 DS.
I know it's probably not possible, but I was wondering about it

Not possible with the default TWL_FIRM / AGB_FIRM.

With a custom replacement, it is possible to read settings from SDCard for each specific game. It's not ready to be released though, especially since I don't have raw SD access, as Nintendo didn't add it to Process9.
 
  • Like
Reactions: verypedro

verypedro

Well-Known Member
Newcomer
Joined
Jul 28, 2019
Messages
57
Trophies
0
Age
29
XP
297
Country
Brazil
Not possible with the default TWL_FIRM / AGB_FIRM.

With a custom replacement, it is possible to read settings from SDCard for each specific game. It's not ready to be released though, especially since I don't have raw SD access, as Nintendo didn't add it to Process9.
Yeah, I was guessing that it wouldn't be possible.

But don't mind this specific use and keep doing your best with the open_twl_firm (or whatever you decide to name it lol), you are doing what Nintendind't. Thank you!
 
  • Like
Reactions: Sono

Altphere

New Member
Newbie
Joined
Aug 8, 2023
Messages
2
Trophies
0
Age
20
XP
19
Country
Spain
Don't know why, but everytime i try to apply some upscaling patches it just refuses to work. I've been trying for days now, but it doesn't want to change the upscaling method. Is TWPatcher working on the latest luma version?
 

verypedro

Well-Known Member
Newcomer
Joined
Jul 28, 2019
Messages
57
Trophies
0
Age
29
XP
297
Country
Brazil
Don't know why, but everytime i try to apply some upscaling patches it just refuses to work. I've been trying for days now, but it doesn't want to change the upscaling method. Is TWPatcher working on the latest luma version?
Luma 13 broke some things but 13.0.1 fixed it back.

Be sure to Enable loading external FIRMs and modules in the Luma start up menu by holding Select while powering up the console. After applying a filter with TWPatch it should create a file named TwlBg.cxi on /luma/sysmodules. Please check if that is the case
 
  • Like
Reactions: Altphere

Altphere

New Member
Newbie
Joined
Aug 8, 2023
Messages
2
Trophies
0
Age
20
XP
19
Country
Spain
Luma 13 broke some things but 13.0.1 fixed it back.

Be sure to Enable loading external FIRMs and modules in the Luma start up menu by holding Select while powering up the console. After applying a filter with TWPatch it should create a file named TwlBg.cxi on /luma/sysmodules. Please check if that is the case
Yeah I had that enabled. What seemed to cause the issue was that i also enabled the option of custom upscaling filters for DSi on the startup menu, because it sounded like i needed that enabled too. Disabling it seems to have fixed the problem.
 
  • Like
Reactions: verypedro

verypedro

Well-Known Member
Newcomer
Joined
Jul 28, 2019
Messages
57
Trophies
0
Age
29
XP
297
Country
Brazil
Yeah I had that enabled. What seemed to cause the issue was that i also enabled the option of custom upscaling filters for DSi on the startup menu, because it sounded like i needed that enabled too. Disabling it seems to have fixed the problem.
Nice that you figured it out! It will help to troubleshoot other people who might come across with the same problem.

By the way, I still have no idea what that feature in Luma does lol
 
  • Like
Reactions: Altphere

Einz

New Member
Newbie
Joined
Dec 8, 2016
Messages
3
Trophies
0
Age
24
XP
51
Country
Canada
Is there a way to use both GPU scaling for widescreen games and scaling filters for non-widescreen games?
Ideally, I'd like to be able to switch between the two by selecting the 4:3 or 16:10 options in the Twilight Menu Game settings.

From what I've read so far, it seems I'll need to have two different "TwlBg.cxi" files to manually rename to "Widescreen.cxi" in the "sd:/_nds/TWiLightMenu/TwlBg/" path?
 
Last edited by Einz,

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,666
Trophies
3
Age
25
XP
21,168
Country
United States
Is there a way to use both GPU scaling for widescreen games and scaling filters for non-widescreen games?
Ideally, I'd like to be able to switch between the two by selecting the 4:3 or 16:10 options in the Twilight Menu Game settings.

From what I've read so far, it seems I'll need to have two different "TwlBg.cxi" files to manually rename to "Widescreen.cxi" in the "sd:/_nds/TWiLightMenu/TwlBg/" path?
Just do the widescreen process like normal, and then when done, re-run TWPatch, and select your scaling filter with widescreen disabled.
 
  • Like
Reactions: Einz

Einz

New Member
Newbie
Joined
Dec 8, 2016
Messages
3
Trophies
0
Age
24
XP
51
Country
Canada
Just do the widescreen process like normal, and then when done, re-run TWPatch, and select your scaling filter with widescreen disabled.
Thanks! So just to check my understanding, the widescreen cxi remains in the "sd:/_nds/TWiLightMenu/TwlBg/" path, and the scaling filter cxi remains in the default location "sd:/_nds/TWiLightMenu/TwlBg/".

Picking the aspect ratio for each game will then utilize the right cxi accordingly?
 

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,666
Trophies
3
Age
25
XP
21,168
Country
United States
Thanks! So just to check my understanding, the widescreen cxi remains in the "sd:/_nds/TWiLightMenu/TwlBg/" path, and the scaling filter cxi remains in the default location "sd:/_nds/TWiLightMenu/TwlBg/".
The default location would actually be "sd:/luma/sysmodules/".
Picking the aspect ratio for each game will then utilize the right cxi accordingly?
Yes, it will.
 
  • Like
Reactions: Einz

CapitanRooster

New Member
Newbie
Joined
Sep 29, 2023
Messages
4
Trophies
0
Age
26
XP
21
Country
United States
I've used the patcher for installing the blue light filter specifically but I don't really know how to toggle between regular light mode and my filter configuration while I'm playing DS games. I've looked everywhere but does anyone know how to go between them? Specifically I'm using Twilight Menu to play ds games. I don't really want to be using the filter during the day.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,829
Trophies
2
Location
home
XP
9,428
Country
Hungary
I've used the patcher for installing the blue light filter specifically but I don't really know how to toggle between regular light mode and my filter configuration while I'm playing DS games. I've looked everywhere but does anyone know how to go between them? Specifically I'm using Twilight Menu to play ds games. I don't really want to be using the filter during the day.

You can't, it's not a feature anyone asked for yet.

The best I can do is add button held detection to disable. Which button? Can't make it configurable, so it must be decided.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, people who cant download it can still play the game
  • BigOnYa @ BigOnYa:
    If your internet speeds are fast enough. Streaming 4k takes alot. I used to only have 20mb sec, and 4k struggled. Now I have 300mb sec and 4k plays fine.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i only have like 1 or 2 mb sec
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
    K3Nv2 @ K3Nv2: Lol McDonald's has a grandma mcflurry