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

  • Thread starter Sono
  • Start date
  • Views 532,286
  • Replies 2,085
  • Likes 92

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

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

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

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

    Votes: 10 6.6%
  • No, because I only use DS and DSi mode

    Votes: 9 5.9%

  • Total voters
    152

Hyper99

Well-Known Member
Newcomer
Joined
Aug 2, 2019
Messages
90
Trophies
0
Age
19
XP
120
Country
Venezuela
Yes, so that it can reboot into widescreen, if a game supports it.
The GUI itself will stay in 4:3 (with black borders, ofc).
What I meant was that the patch would only work on TwilightMenu++, not original NDS games, which it isn't how it should work, right?
 

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
15,211
Trophies
2
Age
23
XP
17,862
Country
United States
What I meant was that the patch would only work on TwilightMenu++, not original NDS games, which it isn't how it should work, right?
It'll only work for TWiLight Menu++, so DSiWare games/apps will stay in 4:3.
The patcher itself will probably have a widescreen for all option though. Don't quote me on that though.
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,516
Trophies
2
Location
rehabilitation center
XP
6,291
Country
Hungary
Everyone has been waiting long enough. It's 31C at 21:58 and I'm having a heatstroke. Fuck this.

I packaged the secret PC version. No pattern selection, sorry. Not that it's useful because the widescreen patch writes an identity matrix on boot.

Put unpatched TwlBg.cxi or section0.bin next to mkpatch.exe and rename it as section0.bin
Run ./mkpatch.exe asd 1010
That will create TwlBg.cxi which you can copy to your 3DS

The exe is in a zip to bypass "security" checks.

the "asd" part can be anything except "agb"
"1010" is a binary bitmask, 0th bit is rightmost, zerofill
bit list:
0 CTR_Redshift
1 debug text
2 trainer mode
3 DMPGL wide
4 "HID" patch, source code says "remove opposing DPAD check"
7 "DEBUG" patch, source code says "hidden debug patch"

rest of the bits must be zero or else fail

Note for patch selection:
If "bytes used" reports 100% or more then remove either the debug text or the redshift code!

https://puu.sh/E43fN/f7f3eb2f61.zip
 
Last edited by Sono,

Hyper99

Well-Known Member
Newcomer
Joined
Aug 2, 2019
Messages
90
Trophies
0
Age
19
XP
120
Country
Venezuela
Everyone has been waiting long enough. It's 31C at 21:58 and I'm having a heatstroke. Fuck this.

I packaged the secret PC version. No pattern selection, sorry. Not that it's useful because the widescreen patch writes an identity matrix on boot.

Put unpatched TwlBg.cxi or section0.bin next to mkpatch.exe and rename it as section0.bin
Run ./mkpatch.exe asd 1000
That will create TwlBg.cxi which you can copy to your 3DS

The exe is in a zip to bypass "security" checks.

the "asd" part can be anything except "agb"
"1000" is a binary bitmask, 0th bit is rightmost, zerofill
bit list:
0 CTR_Redshift
1 debug text
2 trainer mode
3 DMPGL wide
4 "HID" patch, source code says "remove opposing DPAD check"
7 "DEBUG" patch, source code says "hidden debug patch"

rest of the bits must be zero or else fail

Note for patch selection:
If "bytes used" reports 100% or more then remove either the debug text or the redshift code!

https://puu.sh/E426K/9b88b4ef79.zip
I have so many questions
 
  • Like
Reactions: Sono

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
15,211
Trophies
2
Age
23
XP
17,862
Country
United States
Everyone has been waiting long enough. It's 31C at 21:58 and I'm having a heatstroke. Fuck this.

I packaged the secret PC version. No pattern selection, sorry. Not that it's useful because the widescreen patch writes an identity matrix on boot.

Put unpatched TwlBg.cxi or section0.bin next to mkpatch.exe and rename it as section0.bin
Run ./mkpatch.exe asd 1000
That will create TwlBg.cxi which you can copy to your 3DS

The exe is in a zip to bypass "security" checks.

the "asd" part can be anything except "agb"
"1000" is a binary bitmask, 0th bit is rightmost, zerofill
bit list:
0 CTR_Redshift
1 debug text
2 trainer mode
3 DMPGL wide
4 "HID" patch, source code says "remove opposing DPAD check"
7 "DEBUG" patch, source code says "hidden debug patch"

rest of the bits must be zero or else fail

Note for patch selection:
If "bytes used" reports 100% or more then remove either the debug text or the redshift code!

https://puu.sh/E426K/9b88b4ef79.zip
In the generated .cxi with the DMPGL wide patch, the top screen isn't stretched, and there's glitchiness on the right side of the top screen.
Is there anything I need to change? I used "asd 1000".
 
Last edited by RocketRobz,

Hyper99

Well-Known Member
Newcomer
Joined
Aug 2, 2019
Messages
90
Trophies
0
Age
19
XP
120
Country
Venezuela
Everyone has been waiting long enough. It's 31C at 21:58 and I'm having a heatstroke. Fuck this.

I packaged the secret PC version. No pattern selection, sorry. Not that it's useful because the widescreen patch writes an identity matrix on boot.

Put unpatched TwlBg.cxi or section0.bin next to mkpatch.exe and rename it as section0.bin
Run ./mkpatch.exe asd 1000
That will create TwlBg.cxi which you can copy to your 3DS

The exe is in a zip to bypass "security" checks.

the "asd" part can be anything except "agb"
"1000" is a binary bitmask, 0th bit is rightmost, zerofill
bit list:
0 CTR_Redshift
1 debug text
2 trainer mode
3 DMPGL wide
4 "HID" patch, source code says "remove opposing DPAD check"
7 "DEBUG" patch, source code says "hidden debug patch"

rest of the bits must be zero or else fail

Note for patch selection:
If "bytes used" reports 100% or more then remove either the debug text or the redshift code!

https://puu.sh/E426K/9b88b4ef79.zip
I'm afraid to ask because I think you mentioned it in previous pages, but where do I find section0.bin?
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,516
Trophies
2
Location
rehabilitation center
XP
6,291
Country
Hungary
In the generated .cxi with the DMPGL wide patch, the top screen isn't stretched, and there's glitchiness on the right side of the top screen.
Is there anything I need to change? I used "asd 1000".

Updated the URL, the wide patch was commented out by accident.

I'm afraid to ask because I think you mentioned it in previous pages, but where do I find section0.bin?

It's the same as in the manual patching, except you use the exe instead of HxD. Also, redownload the exe because I made a mistake.
 
General chit-chat
Help Users
    JuanBaNaNa @ JuanBaNaNa: But p1ngpong isn't even here :huh: