Homebrew melonDS 0.4

Arisotura

rise of melonism
OP
Member
Joined
Dec 5, 2009
Messages
839
Trophies
1
Age
30
Location
center of the Sun
Website
kuribo64.net
XP
2,498
Country
France
melonDS 0.4 is out!

The highlights of this release are several 2D and 3D fixes and improvements, but also, working wifi multiplayer.

The full changelog is below.


• implement access modes for certain IO registers that were unhandled
• actually implement RCNT instead of hardcoding it
• wifi: emulation of multiplayer cmd/reply/ack transfers
• wifi: more accurate RFSTATUS/RFPINS
• wifi: some games can go into multiplayer now (Pictochat, NSMB, Pokémon known working)
• improved savemem detect heuristic
• implement firmware write, fix SPI bugs
• accurate emulation of 'main memory display FIFO'
• 2D: fix render/capture order
• 2D: implement mode6 large BG
• 2D: fix bitmap BG sizes
• 2D: fix rotscaled bitmap sprites
• 3D: fix missing term in MatrixTranslate
• 3D: fix toon highlight mode
• 3D: fix boxtest bug
• 3D: accurate viewport transform
• 3D: polygon Y-sorting
• 3D: more accurate interpolation, still not perfect
• 3D: more accurate Z and W transforms, fix some cases of Z-fighting
• 3D: separate polygonID attributes for opaque and translucent pixels
• 3D: start documenting and implementing depth test edge cases
• emulate delays for SPI transfers and div/sqrt
• misc bugfixes/additions as usual


pile of copypasta

melonDS4_1.png
melonDS4_2.png
melonDS4_3.png


How to use

melonDS requires BIOS/firmware dumps from a DS. You can dump them with the following dumper.

The files must be placed in the same directory as the melonDS executable, as follows:

* bios7.bin -- ARM7 BIOS, 16KB
* bios9.bin -- ARM9 BIOS, 4KB
* firmware.bin -- firmware, 256KB or 512KB

Note: the DS-mode firmware in the 3DS isn't bootable. It only contains the bare minimum required to run DS games. Be sure to enable direct game boot when using a firmware dump from a 3DS.

Settings

Emulation: settings related to emulation. For now it lets you enable direct game boot (directly runs the game instead of going through the firmware) and the threaded 3D renderer.

There's also a wifi-related setting (which only ended up there because I'm lazy and I need to redo the UI). You should try toggling it if you have trouble getting multiplayer working.

Input: allows you to configure keyboard and joystick input. You can change a mapping by clicking the corresponding entry, then pressing a keyboard key or joystick button. For now, joystick input uses the first joystick available if multiple joysticks are plugged.

If your game fails to save

Check the size of the savefile. melonDS can, in some circumstances, misdetect the save memory type.

Save memory type detection is done only when no existing savefile is present.

If you provide an existing savefile with the correct size, melonDS will use the correct save memory type and saving should work properly.


Downloads

* Windows 64-bit
* Linux 64-bit


If you feel generous

melonDS Patreon


Have fun! :D
 

Hayro

Well-Known Member
Newcomer
Joined
Oct 17, 2016
Messages
89
Trophies
0
Age
34
XP
377
Country
France
How do you setup the Wifi function for MelonDS?
I can't find the access point.

Anyone tested Dragon Quest iX online?
 

Mat37

Well-Known Member
Member
Joined
Dec 3, 2016
Messages
790
Trophies
0
Age
22
Location
Does it matter ?
XP
1,379
Country
France
I am only about 20FPS at MKDS title screen and about 10-15 in race. Is that because the emu require a lot of power or something like bad BIOS and firmware ? (i got them from that paradise site since i don't have a ds)
 
Last edited by Mat37,

AsPika2219

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
1,960
Trophies
1
Age
47
Location
Usa
XP
3,054
Country
Georgia
Testing 1-2-3..... I testing exporting save games from Desmume into melonDS, just few hour ago. :)

  • Open Desmume and any games (example Digimon World Dawn). Play the game and save after any events on games. Pause the game.
  • Next, open File menu and select Export Backup Memory. For Save As Type, stay with Raw save format because melonDS using RAW save version.
  • Change directory into MelonDS or anything depend you put melonds.exe file. For file name, type game name (must matched) for you play it.
  • Click Save and done. Quit Desmume. Next, open My Computer and select Hard Disk C:\ (not other drive because you play them)
  • Next job is copy ROM games from Desmume (under C:\Desmume\Roms or any directory) into MelonDS directory.
  • After that, rename save game that you created from Desmume, just matching game name.
  • Example:- ROM game is Digimon Dawn.nds and save game must to be Digimon Dawn.sav
  • Next job is open MelonDS and open the games (example Digimon Dawn). Wait until show main menu.
  • Select Continue (or Load Game depend on games itself) and finally you continue the saved games from Desmume before!

Try it! Is works! :D If doesn't work, maybe some games required other save game format.... Anyway, enjoy the games! :yaynds:
 

blckshrk

Member
Newcomer
Joined
Jul 5, 2017
Messages
7
Trophies
0
XP
51
Country
Germany
What's the reason for this emulator having 3 windows?

Nonetheless melonDS is great and I'm sure it's going to be a better emulator than DeSmuME is!
It seems like it doesn't even have those timing issues with Pokemon HGSS that DeSmuME supposedly has and there are no random black dots/lines as well. Nice work!
 

PeeJay Bonobo

Well-Known Member
Member
Joined
May 10, 2014
Messages
117
Trophies
0
Age
37
Location
Jamaica, New York
Website
steamcommunity.com
XP
2,048
Country
United States
What's the reason for this emulator having 3 windows?

Nonetheless melonDS is great and I'm sure it's going to be a better emulator than DeSmuME is!
It seems like it doesn't even have those timing issues with Pokemon HGSS that DeSmuME supposedly has and there are no random black dots/lines as well. Nice work!

@StapleButter has stated that he is currently at work on a UI, so you don't have a console, ingame, and a menu window all over your computer screen. Hopefully, this happens by 0.5+, but nonetheless, it's shaping up to be what DeSmuME should've been.
 
  • Like
Reactions: blckshrk

Kioku

猫。子猫です!
Member
Joined
Jun 24, 2007
Messages
12,008
Trophies
3
Location
In the Murderbox!
Website
www.twitch.tv
XP
16,149
Country
United States
No. The 3DS can't even handle N64 emulation.
What does that have to do with anything? Also, why are we talking about emulating DS on the 3DS again? There's already ways of playing ds games without a flashcard and horrible emulation.
 

Hayro

Well-Known Member
Newcomer
Joined
Oct 17, 2016
Messages
89
Trophies
0
Age
34
XP
377
Country
France
Also, why are we talking about emulating DS on the 3DS again? There's already ways of playing ds games without a flashcard and horrible emulation.
You can't run all DS games on 3DS because of Compatibility problem.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • 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
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
    Psionic Roshambo @ Psionic Roshambo: It's always worth a shot