Homebrew [TOOL] .nds NO-INTRO roms to DSiWARE

redunka

Well-Known Member
Member
Joined
Nov 26, 2014
Messages
432
Trophies
0
Age
29
XP
2,548
Country
Russia
Apparently, some games may not use any saves at all (for example, Blazblue/Blayzbloo).
The script will create a 0KB public.sav for those, but it shouldn't be a problem if the game won't be looking for a save anyway.
If still you don't want for that public.sav and data folder to be created at all for such games, this should work:
Code:
root_folder=$(basename "${1}" ".nds")
title_id=$(python print_rom_data.py "${1}" title_id)
save_size=$(python print_rom_data.py "${1}" save_size)
content_folder="${root_folder}/${title_id}/content"
data_folder="${root_folder}/${title_id}/data"
fat_size=save_size

mkdir -p "${content_folder}"
./maketmd "${1}"
mv title.tmd "${content_folder}/."

if [[ fat_size -ne 0 ]] && [[ fat_size -lt 65536 ]]
then
    mkdir "${data_folder}"
    fat_size=65536
    dd if=/dev/zero of=public.sav bs=1 count=$fat_size
    mkfs.msdos -v -F 12 -s 1 -D 0 -r 224 public.sav
    truncate -s ${save_size} public.sav
    mv public.sav "${data_folder}/."
fi

cp "${1}" "${content_folder}/00000000.app"
By the way, for those who haven't installed Windows 10 yet, I tried to make a "true" Windows pack. :blush:
Extract attached zip somewhere, place the .nds files into the same folder you extracted the zip to, and run "convert_to_dsiware.bat".
Tested on Windows 7 64bit, and also on Windows XP 32bit, just in case.
I hope this works fine for others, too.

EDIT: Check this post for an updated version: https://gbatemp.net/threads/tool-nds-no-intro-roms-to-dsiware.514089/page-3#post-8261498
 
Last edited by redunka,

fwannmacher

Active Member
OP
Newcomer
Joined
Mar 23, 2016
Messages
37
Trophies
0
Age
36
XP
503
Country
Brazil
Apparently, some games may not use any saves at all (for example, Blazblue/Blayzbloo).
The script will create a 0KB public.sav for those, but it shouldn't be a problem if the game won't be looking for a save anyway.
If still you don't want for that public.sav and data folder to be created at all for such games, this should work:
Code:
root_folder=$(basename "${1}" ".nds")
title_id=$(python print_rom_data.py "${1}" title_id)
save_size=$(python print_rom_data.py "${1}" save_size)
content_folder="${root_folder}/${title_id}/content"
data_folder="${root_folder}/${title_id}/data"
fat_size=save_size

mkdir -p "${content_folder}"
./maketmd "${1}"
mv title.tmd "${content_folder}/."

if [[ fat_size -ne 0 ]] && [[ fat_size -lt 65536 ]]
then
    mkdir "${data_folder}"
    fat_size=65536
    dd if=/dev/zero of=public.sav bs=1 count=$fat_size
    mkfs.msdos -v -F 12 -s 1 -D 0 -r 224 public.sav
    truncate -s ${save_size} public.sav
    mv public.sav "${data_folder}/."
fi

cp "${1}" "${content_folder}/00000000.app"
By the way, for those who haven't installed Windows 10 yet, I tried to make a "true" Windows pack. :blush:
Extract attached zip somewhere, place the .nds files into the same folder you extracted the zip to, and run "convert_to_dsiware.bat".
Tested on Windows 7 64bit, and also on Windows XP 32bit, just in case.
I hope this works fine for others, too.
Great work man!
 
  • Like
Reactions: Flame and redunka

redunka

Well-Known Member
Member
Joined
Nov 26, 2014
Messages
432
Trophies
0
Age
29
XP
2,548
Country
Russia
Is that windows version the same thing as the original or is it a re written version?
The .bat script is a rewrite, but the python script is the same, just converted with py2exe so it can be run without python installed.
Windows doesn't have its own tools to create a fat12 image and truncate it, so equivalents are included (bfi.exe and truncate.exe)
And maketmd has an official Windows build.
 

Flame

Me > You
Global Moderator
Joined
Jul 15, 2008
Messages
7,269
Trophies
3
XP
18,688
so i thought is was my chromebook's fault. but i tried it with other setup now that im home.

i get this error message, were it says power down your device. once i put the dsiware created with this tool in the correct location,

once i remove that dsiware, everything works again.
 
Last edited by Flame,

fwannmacher

Active Member
OP
Newcomer
Joined
Mar 23, 2016
Messages
37
Trophies
0
Age
36
XP
503
Country
Brazil
so i thought is was my chromebook's fault. but i tried it with other setup now that im home.

i get this error message, were it says power down your device. once i put the dsiware created with this tool in the correct location,

once i remove that dsiware, everything works again.
Which game have you tried?
 

elenarguez

Well-Known Member
Member
Joined
Jun 14, 2018
Messages
231
Trophies
0
XP
991
Country
Spain
There are some dsiware that doesn't create any file in the content folder, some of them are (all EUR):
16 Shot Shoting Watch
Wario Ware Snapped
Mighty Flip Champs
 

redunka

Well-Known Member
Member
Joined
Nov 26, 2014
Messages
432
Trophies
0
Age
29
XP
2,548
Country
Russia
There are some dsiware that doesn't create any file in the content folder, some of them are (all EUR):
16 Shot Shoting Watch
Wario Ware Snapped
Mighty Flip Champs
If you're using my Windows version, that happens because those .nds files have an exclamation mark in their names.
Sorry for the inconvenience, I'll try to fix the .bat later when I have some time.
For now you can just rename those .nds so they don't have any "!" in the name.
 

elenarguez

Well-Known Member
Member
Joined
Jun 14, 2018
Messages
231
Trophies
0
XP
991
Country
Spain
If you're using my Windows version, that happens because those .nds files have an exclamation mark in their names.
Sorry for the inconvenience, I'll try to fix the .bat later when I have some time.
For now you can just rename those .nds so they don't have any "!" in the name.
Ok thx :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtu.be/IihvJBjUpNE?si=CsvoEbwzNKFf0GAm cool