Can homebrew apps work with NitroFS?

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
I am looking to make a NitroFS ROM with NeoDS while including the ROMs (for personal use only) in the file system since it seems not to work any other way.

Is it possible to do this? I also would like to make one for dspack arcade emulation.
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
Thanks for the link. Hopefully the creator of that port can point us in the right direction. If this can be done, it should help homebrew a lot. Though I would guess any built ROM would need to be 256MB or smaller.

(Also, it's odd: For some reason I have not been getting notifications when you replied to this thread.)
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
Thanks for the link. Hopefully the creator of that port can point us in the right direction. If this can be done, it should help homebrew a lot. Though I would guess any built ROM would need to be 256MB or smaller.

(Also, it's odd: For some reason I have not been getting notifications when you replied to this thread.)
dunno. I'd check alerts in your profile preferences. I got an alert you replied. I think they originally had that set to do that by default, but then undid it so you had to enable it yourself. my account is from like 2009, so it's old.

I may not have learned much about nitrofs. I just have a photographic memory, so when I say I don't remember or know, I probably never knew. that's what got me through school. :P
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
I will give the settings a check.

Edit; That was it. It was somehow disabled. I honestly don't remember doing that, though I could have.

It wouldn't be the first time my profile has been messed with. Someone (probably a mod) a while ago removed my entire signature, but I won't get into that.
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
fyi, I know cervi has been busy, possibly with school or something, which is why the nds version of undertale has been slow going, so he may not respond for a little while.
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
Okay. I did download the DS Gamer Maker and the required files like devkitpro but I am not sure if this tool can build a homebrew DS ROM with embedded files. It says it is for Windows 10 but it loads just fine on 7.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
Okay. I did download the DS Gamer Maker and the required files like devkitpro but I am not sure if this tool can build a homebrew DS ROM with embedded files. It says it is for Windows 10 but it loads just fine on 7.
there's a rom creator, which may be in tools, that it uses to create the nds rom itself. you may need to do pacman -Syu nds-dev. install everything that shows up. if Syu causes msys to close, run it again, because it needs to close after certain installs, and it may not be finished once it encounters one of those. iirc, the tool is nds scene rom tool.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
1684691171223.png

that's the one. every nds homebrew I've compiled has used this tool to create the rom itself.
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
The tool that I used has a GUI, and unfortunately no way to create a bootable ROM with embedded files.

I did install the whole devkitpro setup yesterday of what your snippet shows. I am still wondering how to point it to a path of the boot file and the directory of roms.

Edit: I tested this: https://www.romhacking.net/utilities/793/ with NeoDS.

It will extract and then rebuild the ROM. I tested it on Desmume and melonDS and they both give the same error so it's probably safe to say it won't work on hardware either.

Edit 2: I tested DSPack. It works on emulators, but not on Twilight Menu. It does boot on TM but crashes almost instantly.
 
Last edited by _47iscool,

Cervi

Well-Known Member
Newcomer
Joined
Aug 25, 2022
Messages
46
Trophies
0
Location
Catalonia
XP
394
Country
Spain
Hi! I've taken a while to respond but anyhow, thanks for tagging me, wouldn't have seen it otherwise.

As godreborn has mentioned, as far as I know all Nintendo DS homebrew uses ndstool to build ROMs, and it supports nitrofs. When I was first setting up the UndertaleDS project I used the devkitpro examples (https://github.com/devkitPro/nds-examples) as a base for my Makefile. You can find an example in the filesystem/nitro_fs folder. The way you do it is just by having a "nitrofs" folder where you put the files. Then, you add it to the ROM by using the -d parameter of ndstool, and you can access them as you would access any other filesystem using C, with fopen, fread, fclose... (preceding the path with "nitro:/<path>", for example "nitro:/backgrounds/image.png").

Be aware that the default implementation for the "filesystem.h" library on devkitpro has an issue where it only works when the nitrofs is smaller than 32MB (that's due to it using GBAROM instead of accessing the cartridge for some reason). I fixed that by changing a couple lines in UndertaleNDS, and I still haven't hit a limit in size (you can find here my modified nitrofs.c at and the corresponding "filesystem.h" here).

I haven't taken a look at neither DS Game Maker nor any of the other utilities you've mentioned, so I don't know whether it'd be possible to do the same on them.

Hope this maybe helps?
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
Could you link a modified compiled build that can work with ROMs up to 256MB? I have a few aof and mslug ROMs.
I tried an older version called dslazy that has a gui as mentioned above from RHDN.

I get this below with melonDS and desmume:
nds.png

The built ROM is 220MB. And when it extracts the original nds homebrew file, the y7.bin and y9.bin files are zero bytes. Is this the issue? DSPack works on emulators and lists the roms but on DSi hardware it blank-screens.
 
Last edited by _47iscool,

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,170
Country
United States
I don't think you have to put all data in the rom image. You could have a small rom image and data like assets outside the rom itself. I think you'll need a flash cart with on the fly patching though. TwilightMenu on the 3ds should also be able to do it.
 

_47iscool

Noticer
OP
Member
Joined
Nov 18, 2013
Messages
675
Trophies
1
XP
1,142
Country
United States
I do have an R4i Gold but prefer not to use it. I also don't have a spare microSD at the moment as the DSi is using it for homebrew and and backups and such.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    ooowwww a new way for me to beat NFS 510 :D @SylverReZ
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi, Yeah, believe you can do PSP games as well. But a Pi5 is much powerful in comparison.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure about other models of Pi4 but the Pi 4 B with 8GBs OCed to 2Ghz handles PSP really great except like 1 game I found and it is playable it just looks bad lol Motor Storm Arctic something or other.
  • Psionic Roshambo @ Psionic Roshambo:
    Other games I can have turned up to like 2X and all kinds of enhancements, Motorstorm hmmm nope 1X and no enhancements lol
  • Veho @ Veho:
    Waiting for Anbernic's rg[whatever]SP price announcement, gimme.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
    SylverReZ @ SylverReZ: What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo