Tutorial  Updated

How to play NDS Games in HD Widescreen (16:9, 21:9, 32:9)!

c8Cp7XCK_o.png

~ Pokémon Diamond Version in 3840x1080 HD (32:9 1080p) with 3D Rasterized in x16 Native Resolution (Captured from Retroarch DeSmuME core)

Notes

  1. If you made a cheat code using the old formula (the one @PRAGMA made) then please update your code to the new formula below which is way more accurate and fixes im-proportionate pixels.
  2. Make sure both the Cheat Code and Emulator Window aspect ratio's match or the frames may look stretched.
Supported Systems

  • DeSmuME on Windows using DeSmuMAR, or DeSmuME on any PC OS however you will need to manually configure DeSmuME to allow window stretching and manually stretch the window to be the Aspect Ratio you wish for.
  • Any core on Retroarch as you can force a specific aspect ratio in Retroarch settings.
  • DrasticDS on Mobile as it allows you to stretch the emulator display.
  • Probably others too! Perhaps MelonDS?
General steps for non-specific systems

  1. Stretch the emulator's output to be the wanted Aspect Ratio. Either by code, settings, wrapper applications, or manually.
  2. Add a cheat code (which can be found below) for the games and Aspect Ratio you wish to use.
  3. Done, run the game, as long as the cheat code works, and the emulator's output is the correct Aspect Ratio, it should look great!
Tutorial for DeSmuME on Windows using DeSmuMAR

  1. Download DeSmuMAR, copy it to C:/Program Files/DeSmuME (Create folder if needed).
    For Windows 8.1 and older: Right-click DeSmuMAR.exe -> Properties -> Compatibility Tab -> Tick "Run this program as an Administrator" checkbox -> Save.
  2. Open DeSmuMAR and it will ask you if you want to download the latest official master branch Dev Build (Auto-build from from an official AppVeyor link).
    Say (y) to download it or (n) for instructions on manually downloading DeSmuME for DeSmuMAR integration.
  3. Right-click DeSmuME.exe -> Properties -> Compatibility Tab -> Tick "Run this program as an Administrator" checkbox -> Save.
    If DeSmuME doesn't get write permission while being inside the "C:/Program Files" directory then it cant save! By doing the above with the Properties, DeSmuME will always require Administrator permission to run, which prevents the problem of saving and such not working without your realizing. Regardless if you're using DeSmuMAR or not, I recommend doing this!
  4. Open DeSmuMAR.exe and enter in the Aspect Ratio and Resolution (Size) you wish to use. It will then open DeSmuME with the exact size you asked for! It will also change various DeSmuME settings to ensure it's able to be opened to the Aspect Ratio and Resolution you specified. All this, automatically! The next time you open DeSmuMAR it will automatically apply the same Aspect Ratio and Resolution, this can be changed by deleting "DeSmuMAR.ini" and re-opening.
  5. Read on below for instructions on getting an Action Replay Cheat Code to use, a cheat code is required or the game will look stretched. When adding a Cheat Code, make sure you tick "turn on code" and if the ROM already booted, reset the ROM to apply the cheat code.
Done! Now, always open DeSmuMAR.exe instead of DeSmuME.exe from now on. You can even associate it as the default application for .nds ROMs or drag and drop supported files onto DeSmuMAR.exe and it will work!

NOTE:
  • View -> LCDs Layout -> Only Horizontal and One LCD options are supported at the moment.
  • If you want a better viewing enjoyment, then I recommend you fiddling with Config -> 3D Settings -> "General Options" Area -> "GPU Scaling Factor". This option changes the resolution of 3D objects, essentially the bigger the scaling factor, the less pixelated 3D objects will be.
  • For Pixel-based games like Zelda, Pokémon, I don't recommend using Texture Scaling as it just makes them less crisp by scaling and using a blur kernel, it doesn't really make them look better at all, if not worse.
Example 16:9 Action Replay Cheat Codes for a handful of popular games


520775D0 00001555
020775D0 00001C72
D2000000 00000000
by @KazoWAR
5201E9E4 00001555
0201E9E4 00001C72
D2000000 00000000
by ?
5202022C 00001555
0202022C 00001C72
D2000000 00000000
by ?
52022F80 00001555
02022F80 00001C72
D2000000 00000000
by ?
52282308 00001555
02282308 00001C72
D2000000 00000000
by @KazoWAR
52282328 00001555
02282328 00001C72
D2000000 00000000
by @KazoWAR
5226FE50 00001555
0226FE50 00001C72
D2000000 00000000
by @KazoWAR
5226FE90 00001555
0226FE90 00001C72
D2000000 00000000
by @KazoWAR
52039288 00001555
02039288 00001C72
D2000000 00000000
by @RadDude McCoolguy
52324998 00001555
02324998 00001C72
D2000000 00000000
by @RadDude McCoolguy
52101A64 00001555
02101A64 00001C72
D2000000 00000000
-
Side effects:
- Chickens (and possibly other entities) can walk through walls a bit near the top of the screen, possibly game breaking I dont know.
- Some NPC's eyes are glitched out and are 100% round and black, they look like zombies.
by @RadDude McCoolguy

For more, check the replies of this thread, or look below for information on crafting your own code.

Crafting your own Widescreen Code!

To craft your own cheat code, there's a fair bit involved and a lot of trial and error, you will need to have a bit of time on your hands if you haven't done something like it before.

The general idea is to look for ROUND(0x1000 * 0x04 / 0x03) which is 0x1555/5461 in the games RAM while a 3D object is loaded into view.

0x1555 is the HEX value for the camera's aspect ratio, which is 4:3. Usually this value wouldn't change, but we gonna do it anyway to trick the game into thinking our "Nintendo DS" has a 16:9 (or other) display, to get it to render 3D objects accordingly.

First things first we need to find out the HEX value for the aspect ratio we want. Down below I put the formula for calculating the HEX value for any aspect ratio you want. Do that to get the HEX value for an Aspect Ratio that would be obvious, I tend to go for something outrageous like 32:9.

Now we need to find the address that holds the 1555 value. I like to use DeSmuME's RAM Searcher to search for the original 4:3 HEX value which as explained earlier is 1555(h). More than one address will show so you will have to just trial & error every one of them until it works.

Change each address's value to the test HEX value we calculated earlier with the formula, and once it actually works, write down the address you changed, it should start with "02". Enter the address into the Cheat Code Format below to finish crafting your cheat code. Feel free to change the Aspect Ratio HEX value you used in debugging with the value you actually want, it still needs to be HEX calculated with the formula below.

Code:
{Address but change the starting "02" with "52"} 00001555
{Address} 0000{Aspect Ratio HEX Value}
D2000000 00000000

While it will just work with the Address and the value of whatever aspect ratio you want, it will be applied every frame even when it may not be in use (Thanks @KazoWAR for the tip)
The first and third line essentially just does a pre-check before trying to overwrite them.
If you're confused by the format, just take a look at the above pre-made cheat codes as an example.

Aspect Ratio Value Formula by (@Vague Rant)


chart.png

HEX(ROUND(0x1000 * WIDTH / HEIGHT))

0x1000 == 4096
ROUND == round to the nearest whole number
HEX == convert decimal to hex (base10 to base16)


e.g.
HEX(ROUND(0x1000 * 16 / 9)) == 0x1C72


Common result values using this formula to spare you time:
  • 16:9 - 0x1C72
  • 16:10 - 0x199A
  • 18:9/2:1 - 0x2000
  • 21:9 - 0x2555
  • 32:9 - 0x38E4
 
Last edited by PRAGMA,

InitialP

New Member
Newbie
Joined
Apr 23, 2023
Messages
2
Trophies
0
Age
36
XP
20
Country
Burundi
Anyone have a code for Advance Wars: Days of Ruin? My phone's aspect ratio is 20:9, but whatever looks good is fine. Thanks!
 

Desconocido90

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
87
Trophies
0
Age
34
XP
866
Country
resident evil dead silence?
Impossible. Besides the first person "cut" minigame, which it's fully 3D, the game uses 3D over non-scrollable 2D backgrounds.

Any cheat code to change aspect ratio will only affect the 3D elements (for example, the character), making it misaligned with the stretched background.

Does this work for SimCity Creator DS? I want the widescreen mod to expand the view of the top screen

A full 2D game rarely can become widescreen, and this one doesn't seem to be an exception...

Just in case I checked it: I looked for addresses with 1555/5461 value in Eur Rom, found a few, I changed them to 7282 but the aspect ratio didn't change.

Unless I'm doing something wrong (I have very little experience doing cheats), it's impossible
 
Last edited by Desconocido90,

Desconocido90

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
87
Trophies
0
Age
34
XP
866
Country
Somebody should make a patcher out of this, it would sure help without the mathematical knowledge of formulas.
A patcher is impossible, the AR values (if they exist) are placed in RAM addresses that vary between games and releases.

Math isn't really required if you only want to replace 4:3 (0x1555, or decimal 5461) to 16:9 (0x1C72 or decimal 7282).
 

BigGangster

Member
Newcomer
Joined
Sep 19, 2023
Messages
9
Trophies
0
Age
21
XP
230
Country
United States
Honestly, I think it cool to see NDS games having widescreen, same with N64 games, but playing on actual hardware from Nintendo 3DS, and Nintendo 64 feels out of place.
 

SentaiBrad

Active Member
Newcomer
Joined
Aug 10, 2016
Messages
31
Trophies
0
Age
33
XP
441
Country
United States
Dragon Quest IX: (16x9)
----------------------------------
5202E098 00001555
0202E098 00001C71
D2000000 00000000
Does anyone have, or know how to convert, this to the PAL cart? DQ9 has a RetroAchievements list and I wanting to check it out with that.
 

AlesioBilbili

Member
Newcomer
Joined
Dec 18, 2023
Messages
13
Trophies
0
Age
24
XP
65
Country
Italy
I H
i was wondering when people would figure this out :P i sorta invented the whole widescreen codes on DS back in 2011 starting with mkds and this code 12147e04 00003D30 and later this 020775D0 00001C71. mid last year i had discovered thats the widescreen value was universal with most ds games. but not all of them. heck even homebrews like dscraft have the 00001555 value. so heres a complete list of games that ive made the widescreen codes for. ive been working on them and quietly releasing them via deadskullzjr cheat code data base for NDS which can be found on this site.

There all verified fully functional by me. a few ds games used slightly different values for example animal crossing had 1548 instead of 1555. wile others require pointer codes. i noticed looking some of the codes above that people had already posted will not work on the entire game with out a pointer. and yeah i know some of the codes below are already posted i didn't feel like fishing them out.



16.9 widescreen codes.

mario kart ds Widescreen 2.1
020775D0 00001C71
0208A068 E3A00AAA - (this part fixes the countdown numbers being stretched)

diddy kong racing DS (U) widescreen
02018A08 00001C71
02018D8C 00001C71

dragon ball ultimate kai (J) widescreen
0207B220 00001C71
02061380 00001C71
020AD6B4 00001C71

CN racing DS (U) widescreen
021D6854 00001C71

Pokemon diamond pearl (U) widescreen
0201E9E4 00001c71

final fantasy III (U) widescreen
02030AFC 00001c71

final fantasy IV (U) widescreen
02040644 00001C71
020CF37C 00001C71

mkds demo (U) widescreen 2.0
020466B0 00001C71

pokemon platinum (U) widescreen
0202022C 00001c71

pokemon heart gold soul silver widescreen (U)
02022F80 00001c71

dragon ball origins 1.1 (U) widescreen
0202A7A0 00001C71
0202B864 00001C71
02088D0C 00001C71
020894AC 00001C71

dragon ball origins 2 (U) widescreen
0209CAD0 00001C71
0203765C 00001C71

GTA china town wars (U) widescreen
A21E0DAC 00000000
020C225C 00001C71
D2000000 00000000

ridge racer DS (U) widescreen
02027738 00001C71

asphalt urban GT (U) (widescreen)
02033620 00001C71

asphalt urban GT 2 (U) widescreen
02034444 00001C71
02047B34 00001c71

animal crossing DS 1.0 (U) widescreen
0203B734 00001C71

ray man (DS) widescreen
0206BB24 00001c71

super monkey ball touch and roll (U) widescreen
02059BD0 00001C71
02059D64 00001C71

radiant historia (U) widescreen
020C468C 00001C71
020C4568 00001C71

dragon quest xi (U) widescreen
0202E088 00001C71

kingdom hearts 258 2 days (U) widescreen
02023C9C 00001c71

need for speed underground 2 (U) widescreen
02017804 00001c71

mario sonic winter games (U) widescreen
02031D54 00001c71

assassins creed chronicles (U) widescreen
020509B4 00001c71

Assassin's Creed II (U)
022D211C 00001c71

Okamiden (U) widescreen
02280DEC 00001c71

zelda phantom hour glass (U) widescreen
92101A64 00001555
02101A64 00001C71
D2000000 00000000

Zelda spirit tracks (U) rev 1.0 widescreen
12078164 00001C71
ZST (U) rev 1.1
12078198 00001C71

death jr (U) widescreen
0206ADA0 00001c71

pac world 3 (U) widescreen
02046074 00001c71

Nicktoons unite (U) widescreen
020F42BC 00001c71

pac n roll (U) widescreen
02033594 00001c71

Tomodachi Collection (JP) widescreen
0202A558 00001c71

mario 3 on 3 hoops (U) widescreen
020A4FC4 00001c71
020A65BC 00001c71


dragon quest monster joker (U) widescreen
021C71F8 00001c71
021DA590 00001c71

dragon quest monster joker 2 (U) widescreen
021C5F04 00001C71
021D3FA0 00001C71

final fantasy XII widescreen(U)
0202A6E8 00001c71

spectrobes beyond the portals widescreen
02075DD0 00001c71
020CE178 00001c71

starwars forces unleashed II widescreen (U)
0208A964 00001c71
0208AAB8 00001c71
0208AB5C 00001c71

starwars Battlefront Elite Squadron widescreen (U)
02033F34 00001c71

My sims agents widescreen (U)
0206B408 00001c71

call of duty world at war widescreen (U)
020213E0 00001c71

call of duty modern warfare 3 widescreen (U)
0201F74C 00001c71

call of duty modern warfare mobilized widescreen (U)
020216D0 00001c71

call of duty 4 MW widescreen (U)
0202B5FC 00001c71

call of duty black ops widescreen (U)
0201EF0C 00001c71

Snowboard Kids DS widescreen (U)
0202C974 00001c71
0208AE7C 00001c71
0209FDE8 00001c71

gauntlet DS U widescreen (U)
5202C248 00001555
0202C248 00001C71
D2000000 00000000



i didnt make these but i added them here just for the heck of it.

new super mario bros (U) widescreen
52062358 E1854804
0200DC5C E3A00EC3
0200AE48 E3A03000
0200AE4C E3A01000
02062338 E3A0C015
02062340 E0050C95
02062350 E1A00000
02062348 E1A05425
02000C00 E1844A0E
02000C04 E3A00015
02000C08 E0040490
02000C0C E1A04224
02000C10 EA02B3C6
D2000000 00000000
520D1BEC 00001555
020D1BEC 00001BFF
D2000000 00000000
520ADB30 E59F0014
020ADB2C EAFD4C33
D2000000 00000000

mario party ds (U) Widescreen
52036CB8 E59F3018
02013AF0 00001C71
02036CD8 00001C71
D2000000 00000000
5217CB2C E59F31CC
0217CD00 00001C71
D2000000 00000000
52182360 E59F3C8C
02182FF4 00000E38
02182FF8 00001C71
D2000000 00000000

super mario 64 ds (E) widescreen
520209C4 E59D0094
020209C8 E3A09C15
0200D03C 00001C71
D2000000 00000000
520B21E8 E59F00E8
020B227C E3A02B07
D2000000 00000000
5211530C E59F205C
02115370 00001C71
D2000000 00000000
I HAVE A 16:10 SCREEN ON MY 3DS 😡😡😡😡😡
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: https://i.imgur.com/bG1pQld.mp4 +1