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

  • Thread starter Sono
  • Start date
  • Views 745,093
  • Replies 2,428
  • Likes 101

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 .

selcuk

Well-Known Member
Newcomer
Joined
Oct 3, 2015
Messages
83
Trophies
0
Age
33
XP
256
Country
You know, I just noticed I failed to notice the "B to A" part in the original question.
I can bind X, Y, L, R, START, SELECT, or DPAD to GBA B, but any other button requires extra patching sadly.
I would be more than glad if you could do this. My A button sadly doesn't work properly so its a pain in the ass to play some platformers.
 
  • Like
Reactions: Sono

Zense

Well-Known Member
Member
Joined
Apr 20, 2008
Messages
1,977
Trophies
2
XP
4,300
Country
Italy
Thanks a lot for your work on this, the widescreen is a great thing to have. How would I try swapping the screen in DS mode if possible?
There are cheats that do that I believe, but I think they are among those that don't work with nds-bootstrap. @Robz8 could enlighten us on that. Not all games have those cheats of course. There might even be patches for it for all I know.
 

AvocadoToast

Active Member
Newcomer
Joined
Jun 11, 2020
Messages
27
Trophies
0
Age
19
XP
79
Country
United States
Try using the link above your post, that should contain it.

--------------------- MERGED ---------------------------



MTX supports only up to 512px wide output, so without a proper GPU scaling patch it won't be possible to utilize this feature :/
THANK YOU SO MUCH SONO! Just one final question, when toggling redshift in the patch menu, how do I access it in game or change the settings later? I see when I installed it the screen turned more of a red-ish tint, but how do I gain access to the standard redshift menu as found in 3ds mode?
jk i figured it out
 
Last edited by AvocadoToast,

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,820
Trophies
2
Location
home
XP
9,291
Country
Hungary
Well, I have good news and bad news...

The good news is that GPU scaling works, and the quality of the scaling is extremely superb!
The bad news is that it's so awfully blurry that my eyeballs physically started to hurt after looking at the image for more than a few seconds, because my brain attempts to focus on the blurry image too hard.
And when I don't apply the linear filter patch, the pixels are all over the place, so it makes sense why Nintendo abandoned this feature so early that only 3 extra values are written when enabling GPU scaling, none of which do anything.

This patch will be available temporarily in an upcoming patcher version, but will be eventually removed due to health concerns.
 

PrincessLillie

(Future) VTuber
Member
Joined
Nov 28, 2013
Messages
2,920
Trophies
3
Age
21
Location
Virtual Earth
Website
lillie2523.carrd.co
XP
4,783
Country
United States
Well, I have good news and bad news...

The good news is that GPU scaling works, and the quality of the scaling is extremely superb!
The bad news is that it's so awfully blurry that my eyeballs physically started to hurt after looking at the image for more than a few seconds, because my brain attempts to focus on the blurry image too hard.
And when I don't apply the linear filter patch, the pixels are all over the place, so it makes sense why Nintendo abandoned this feature so early that only 3 extra values are written when enabling GPU scaling, none of which do anything.

This patch will be available temporarily in an upcoming patcher version, but will be eventually removed due to health concerns.
I say make it a permanent feature but add a health advisory that pops up when enabling it.
 

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,569
Trophies
3
Age
24
XP
20,945
Country
United States

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,820
Trophies
2
Location
home
XP
9,291
Country
Hungary
Hopefully 800px mode can be implemented now.

Actually, not without heavy patches. The problem is that there is not enough VRAM allocated for a 1024x256 texure, and after that I'd need to patch a lot of PDC reg pokes which change the screen mode.

It might be possible, but it's a lot of work.


Irrelevant to the quote, there is a hotfix which fixes GBA-mode GPU scaling; I'll reupload it soon.
 
Last edited by Sono,

Draexelion

Well-Known Member
Member
Joined
Aug 8, 2017
Messages
109
Trophies
0
Age
27
XP
1,012
Country
Sweden
I'm using an r4 flashcart and THE widescreen looks good but it's a little too blurry kind of. The game in question is Pokémon soul silver. How do I make it less blurry? I'm using Sharp linear.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,820
Trophies
2
Location
home
XP
9,291
Country
Hungary
I'm using an r4 flashcart and THE widescreen looks good but it's a little too blurry kind of. The game in question is Pokémon soul silver. How do I make it less blurry? I'm using Sharp linear.

Currently widescreen will always be blurry. I'd need to remake the patches to mitigate the blur.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,820
Trophies
2
Location
home
XP
9,291
Country
Hungary
Oh ok thanks for the quick response! :) Do you have an ETA on that by any chance?

No. It's been requested a lot since a long time, but sadly I can't make a day have more than 24hrs in it.

I know how to solve it and what to patch, but it takes way too much time to get it out of my head into Notepad++.
 

geekboy1011

Well-Known Member
Newcomer
Joined
Mar 24, 2013
Messages
74
Trophies
0
Age
30
XP
584
Country
United States
Gave a huge skim but didn't see any documentation on the features/patches of the TWPatcher? Is there one floating around? Obviously I get/understand all the display/filter modes, Its just the various patches/RTCOM stuff. :D
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,820
Trophies
2
Location
home
XP
9,291
Country
Hungary
Gave a huge skim but didn't see any documentation on the features/patches of the TWPatcher? Is there one floating around? Obviously I get/understand all the display/filter modes, Its just the various patches/RTCOM stuff. :D

There isn't any documentation, sorry. It's hard to document patches; or at least I haven't figured out an efficient and useful method.


Un-START reverses the role of START and SELECT during boot-time, so instead of pressing START *or* SELECT to disable stretching, you have to hold START *and* SELECT to enable stretching.

Redshift is a port of CTR_Redshift to TwlBg. It shifts your screen to be more red (or "warm"), or alternatively to be more blue (or "cold"). Useful when playing a lot at night, because it helps on your eyes.

DMPGL is the name of the OpenGL driver for the PICA200. I have to patch the GPU driver itself to be able to get widescreen, but I also have to patch the MTX driver (the capture card's driver used to transfer DS/GBA display to ARM11) to be able to get widescreen.

GPU scale test is what it sounds like. Normally the upscaling is done by the capture card hardware using very simple math, but it's low quality, and is generally really phinicky to get working. The patch patches a lot of the graphics drivers and graphics software to be able to get the GPU working instead of the capture card doing it.
The reason it's so difficult but not impossible is because there is a flag which tells if the scaling should be done by the GPU, but it's almost completely unfinished, so I have to basically implement what Nintendo didn't implement using existing code space which I can't change or expand... yeah.

The exception handler is not that useful, it's just a PoC, and nobody has the kernel patches yet, because TWPatcher doesn't have a kernel patcher yet. If you had a patched LegacyKernel11, then this patch would reinstall exception handlers which weren't fully removed from LegacyKernel11. It's definitely useful for debugging rtcom payloads.

Anti-DPAD patch just removes the DPAD filters, meaning that you can press LEFT+RIGHT or UP+DOWN using the DPAD and the CPad. This patch is necessary, because on unpatched TwlBg and AgbBg these aren't possible.

The hole patch is just a test trainer which runs every frame. It changes between versions, and it's no use to anyone besides me.

As for the "???" patch, I have no idea either. It doesn't seem to do anything...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    ZeroT21 @ ZeroT21: Chuck your brain out the window, it's useless, use your head instead