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

  • Thread starter Sono
  • Start date
  • Views 751,272
  • 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 .

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,823
Trophies
2
Location
home
XP
9,328
Country
Hungary
oh i get it, would be cool if there was a color restoration patch someday

The problem is is that I don't have a DSi, and my DSLite is fried, so I don't have a comparison base sadly. Perhaps if someone could make a color curve test of both 3DS and DS(i) screens then I could look into color vibrancy, but at this moment I can't.
 

moke_2140

Member
Newcomer
Joined
Mar 3, 2016
Messages
12
Trophies
0
Age
29
XP
103
Country
Belgium
picture quality is better on dsi that's for sure, but with sono's patch and maybe a color restoration patch or something, it could look pretty close
 
  • Like
Reactions: Waygeek

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,823
Trophies
2
Location
home
XP
9,328
Country
Hungary
i have a question, does the widescreen patch have a scaling filters or i have to apply one w/ the cia? thanks!

Nope, not yet. Since the exe is a debugging tool, and was not intended to be released, it doesn't include any scale matrixes. Besides, the patch wipes the X scaler clean, so it's also very useless.
 
  • Like
Reactions: Maxcension

H123

Member
Newcomer
Joined
Sep 5, 2019
Messages
8
Trophies
0
Age
34
XP
67
Country
United States
Hello, I followed the instructions to play the game in widescreen and am using the latest bootstrap and twilightmenu. I am trying to play super mario 64 ds in widescreen but it is only coming out as 4:3. I've redone the instructions a few times now but no change. I made sure I have my Widescreen.cxi in the TwlBg folder inside the _nds/TwilightMenu folder and I changed the setting to 16:10 in the settings. I also enabled Loading external FIRMs and modules in Luma. I am playing my games from the flashcart, R4i 3DS GOLD Plus. Anyone know what might be wrong?
 

RocketRobz

Stylish TWiLight Hero
Developer
Joined
Oct 1, 2010
Messages
16,614
Trophies
3
Age
24
XP
21,032
Country
United States
Hello, I followed the instructions to play the game in widescreen and am using the latest bootstrap and twilightmenu. I am trying to play super mario 64 ds in widescreen but it is only coming out as 4:3. I've redone the instructions a few times now but no change. I made sure I have my Widescreen.cxi in the TwlBg folder inside the _nds/TwilightMenu folder and I changed the setting to 16:10 in the settings. I also enabled Loading external FIRMs and modules in Luma. I am playing my games from the flashcart, R4i 3DS GOLD Plus. Anyone know what might be wrong?
It appears you missed my reply. :P
https://gbatemp.net/threads/ds-i-3d...menu-replacement.472200/page-403#post-8795106
 

Sono

cripple piss
OP
Developer
Joined
Oct 16, 2015
Messages
2,823
Trophies
2
Location
home
XP
9,328
Country
Hungary
Thanks to @Gericom for his idea, it turns out his idea is possible in reality! We present to y'all, DS<-->ARM11 communication!

With this new discovery, it's possible to finally connect the DS and the 3DS world for extended features, including analog input (readable Circle Pad), extra hardware support (gyroscope is possible, but still work in progress), and custom trainers embedded into DS homebrew (via code upload to ARM11).

We're still experimenting with the idea, but in the meantime, here is a demo he made:


We're looking into how to put the communication driver into games to allow game patch makers to easily integrate it into their patches.
 
D

Deleted User

Guest
wait... if we have access to arm11/communication... Could this mean wireless screen capture for ds mode?
 

Valery0p

Well-Known Member
Member
Joined
Jan 16, 2017
Messages
560
Trophies
0
XP
1,646
Country
Italy
Whoah, woah, woah, wait a minute... This is really something...
How much of the 3ds features can we use with this "link"? How does it work? What are its limitations?
Like, can we finally access the extra ram to be used as cache for nds bootstrap? Man I've dreamed of this for years...
Or maybe, can the ARM11 at least access the sd card directly, without any bottleneck?
And at last, can we, like, patch the wifi code on the fly to use the WPA2 networks?

Lol now I can't sleep for the hype :rofl2:
 
Last edited by Valery0p,
  • Like
Reactions: RocketRobz

Gericom

Well-Known Member
Member
Joined
Jun 30, 2011
Messages
1,382
Trophies
2
Age
25
XP
4,698
Country
Netherlands
Whoah, woah, woah, wait a minute... This is really something...
How much of the 3ds features can we use with this "link"? How does it work? What are its limitations?
Like, can we finally access the extra ram to be used as cache for nds bootstrap? Man I've dreamed of this for years...
Or maybe, can the ARM11 at least access the sd card directly, without any bottleneck?
And at last, can we, like, patch the wifi code on the fly to use the WPA2 networks?

Lol now I can't sleep for the hype :rofl2:
Well, the communication is not very fast. You won't be using it to expand memory or so. And the arm11 can also not access main memory while it is used by ds mode (switched away). As for wifi code, you wouldn't need arm11 for that since dsi wifi can access wpa2 anyway. But mapping ds wifi to dsi wifi is difficult because it's entirely different, and besides is there still no useable implementation of dsi wifi.
But, other than that, a lot of the peripherals of the 3ds that don't require high speeds should be sort of possible to implement (things like circle pad, extra buttons, gyro, maybe ir, maybe rgb led and that kind of things)
 
Last edited by Gericom,

Valery0p

Well-Known Member
Member
Joined
Jan 16, 2017
Messages
560
Trophies
0
XP
1,646
Country
Italy
Well, the communication is not very fast. You won't be using it to expand memory or so. And the arm11 can also not access main memory while it is used by ds mode (switched away). As for wifi code, you wouldn't need arm11 for that since dsi wifi can access wpa2 anyway. But mapping ds wifi to dsi wifi is difficult because it's entirely different, and besides is there still no useable implementation of dsi wifi.
Thanks for your reply... I thought it would be somewhat limited to little memory manipulations...
Still, this is an amazing discovery, there are a lot of new possibilities from now on, thanks again for all your work guys ^_^
 

Valery0p

Well-Known Member
Member
Joined
Jan 16, 2017
Messages
560
Trophies
0
XP
1,646
Country
Italy
How is this implemented? I saw changes recently made by @Gericom regarding RTC registers on 3dbrew.
You have an eagle eye ;) quote the TWL mode hacking discord server (I can only read right now)
It works because the real time clock (rtc) is partially emulated by twlbg on arm11. It is possible to write to the rtc registers from ds side and read them on arm11 side and write things back. Since there are 2 unused registers the rtc just keeps working like normal
 

Gericom

Well-Known Member
Member
Joined
Jun 30, 2011
Messages
1,382
Trophies
2
Age
25
XP
4,698
Country
Netherlands
How is this implemented? I saw changes recently made by @Gericom regarding RTC registers on 3dbrew.
Yes, it communicates using ds rtc registers (for now at least). The ds rtc is partially software emulated, and as such the registers are read/writable from arm11. Two registers are unused which allows to use them for communication without disturbing the normal rtc functions.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying