Homebrew The Legend of Zelda - A Link to the Past (Nintendo Switch port)

theShrike

New Member
Newbie
Joined
Feb 22, 2023
Messages
3
Trophies
0
Age
39
XP
30
Country
United States
How did you do it?
Where did u put the files? Im trying it but not working for me

I would like to use the helth cheat with thw ZR button, but typing ZR at the .ini doesn't work as well. Someone know how to do it?
You put the music in the folder called 'msu' where your zelda3.nro is, mine is on my switch at /switch/zelda3/msu, then in the zelda3.ini file that is at /switch/zelda3/zelda3.ini you edit the line
EnableMSU = 1
Also I added these to be safe
# The path to the MSU files. The number and the file extension are appended automatically.
MSUPath = msu/alttp_msu-

# Remember MSU position and return back to the same position when entering
# an overworld area. (Only remembers one area)
ResumeMSU = 1

# Change the volume of the MSU playback, a value between 0-100
MSUVolume = 100%
Make SURE the files in the msu folder start with 'alttp_msu-' if not then change this to follow the file naming convention. After this the sounds worked great for me.
 
  • Like
Reactions: mathew77

theShrike

New Member
Newbie
Joined
Feb 22, 2023
Messages
3
Trophies
0
Age
39
XP
30
Country
United States
How did you do it?
Where did u put the files? Im trying it but not working for me

I would like to use the helth cheat with thw ZR button, but typing ZR at the .ini doesn't work as well. Someone know how to do it?
(Sorry for the double post, it posted my other one above before I was verified and I didnt realize it would save it, this one is a bit more detailed)

There are a few steps to enable the higher quality music.
The pathing will change slightly depending on where on your switch you installed your zelda3.nro file. Mine for example is in my /switch/zedal3/zelda3.nro.
Step 1: Modify the zelda3.ini file that is next to your zelda3.nro file, you need these lines:
# Enable MSU support for audio. Files need to be in a subfolder, msu/alttp_msu-*.pcm
# Only works with 44100 hz and 2 channels
EnableMSU = 1
# The path to the MSU files. The number and the file extension are appended automatically.
MSUPath = msu/alttp_msu-
# Remember MSU position and return back to the same position when entering
# an overworld area. (Only remembers one area)
ResumeMSU = 1
# Change the volume of the MSU playback, a value between 0-100
MSUVolume = 100%
Then you need to have a folder sitting next to your zelda3.nro file with the name that matches the MSUPath name, "msu".
In that folder needs to be files that all start with the second part of MSUPath, "alttp_msu-", You can find these files by googling for something like "Legend of zelda pcm sets" (I dont think I can post the link to the site with the files but it is pretty easy to find).
At the end your directory structure should look something like:
msu/
alttp_msu-1.pcm
alttp_msu-10.pcm
alttp_msu-11.pcm
alttp_msu-12.pcm
....etc
zelda3.ini
zelda3.nro
zelda3_assets.dat
Post automatically merged:

Not sure if the original author checks here or not but here are my observations and questions thus far:
Overall fantastic work! The compile for switch was dead simple.
Questions:
- I wish the repo had a config.json file in the /platform/switch folder so we could create a *.nsp file if we wanted to. It took me WAAY to many hours to get a forwarder working so I didnt have to go to the HB menu every time to launch it. The forwarder also allows you to resume state instead of exiting the game if you head back to the main screen. If I can sort out how to write the config file I will create a pull request. If you have one could you please add it to the repo?
- I wish the zelda3.ini was more clear and complete for the switch, it maps buttons at the bottom to a keyboard instead of a controller and is not clear how to remap to a controller, I tried creating a save/load with "Select+L" and "Select+R" and it did nothing in game. If this could be fixed it would go a long way. If you know how this works can you please update the zelda3.ini so the controller maps to these functions?
-Is there any way to improve the look of the graphics? I.e. smooth the pixels or use any higher rez graphic sprites?
Wants:
- I will offer an expansion to the README, but it should be more clear how to get the upgraded music working, it is super easy but for someone who does not know what they are doing it is not completely clear. I keep seeing this question asked over and over.
 
Last edited by theShrike,

Bruno8254

New Member
Newbie
Joined
Feb 4, 2023
Messages
2
Trophies
0
Age
33
XP
23
Country
Brazil
(Sorry for the double post, it posted my other one above before I was verified and I didnt realize it would save it, this one is a bit more detailed)

There are a few steps to enable the higher quality music.
The pathing will change slightly depending on where on your switch you installed your zelda3.nro file. Mine for example is in my /switch/zedal3/zelda3.nro.
Step 1: Modify the zelda3.ini file that is next to your zelda3.nro file, you need these lines:
# Enable MSU support for audio. Files need to be in a subfolder, msu/alttp_msu-*.pcm
# Only works with 44100 hz and 2 channels
EnableMSU = 1
# The path to the MSU files. The number and the file extension are appended automatically.
MSUPath = msu/alttp_msu-
# Remember MSU position and return back to the same position when entering
# an overworld area. (Only remembers one area)
ResumeMSU = 1
# Change the volume of the MSU playback, a value between 0-100
MSUVolume = 100%
Then you need to have a folder sitting next to your zelda3.nro file with the name that matches the MSUPath name, "msu".
In that folder needs to be files that all start with the second part of MSUPath, "alttp_msu-", You can find these files by googling for something like "Legend of zelda pcm sets" (I dont think I can post the link to the site with the files but it is pretty easy to find).
At the end your directory structure should look something like:
msu/
alttp_msu-1.pcm
alttp_msu-10.pcm
alttp_msu-11.pcm
alttp_msu-12.pcm
....etc
zelda3.ini
zelda3.nro
zelda3_assets.dat
Post automatically merged:

Not sure if the original author checks here or not but here are my observations and questions thus far:
Overall fantastic work! The compile for switch was dead simple.
Questions:
- I wish the repo had a config.json file in the /platform/switch folder so we could create a *.nsp file if we wanted to. It took me WAAY to many hours to get a forwarder working so I didnt have to go to the HB menu every time to launch it. The forwarder also allows you to resume state instead of exiting the game if you head back to the main screen. If I can sort out how to write the config file I will create a pull request. If you have one could you please add it to the repo?
- I wish the zelda3.ini was more clear and complete for the switch, it maps buttons at the bottom to a keyboard instead of a controller and is not clear how to remap to a controller, I tried creating a save/load with "Select+L" and "Select+R" and it did nothing in game. If this could be fixed it would go a long way. If you know how this works can you please update the zelda3.ini so the controller maps to these functions?
-Is there any way to improve the look of the graphics? I.e. smooth the pixels or use any higher rez graphic sprites?
Wants:
- I will offer an expansion to the README, but it should be more clear how to get the upgraded music working, it is super easy but for someone who does not know what they are doing it is not completely clear. I keep seeing this question asked over and over.

Thanks!

My .ini was lacking tha path line!

About the switch buttons mapping, i still coudn't solve!
 

Kei00

Well-Known Member
Newcomer
Joined
Jan 18, 2013
Messages
62
Trophies
1
XP
807
Country
Antarctica
Is there a way to centre the image on the screen? With an offset in the ini file or something? I guess not, but I'd rather ask. Thank you.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,461
Country
United Kingdom
Latest build NRO from the commit from 4 days ago. Commits show a lot of language support added lately, you'd have to make your own dat file from the relevant rom, idk I've only tested it with the standard US rom.

In case it becomes relevant to anyone, the python script to extract the assets from the rom into the dat file requires at least python 3.8, not mentioned in the instructions but in an old closed github issue.
 

Attachments

  • Zelda3-a23632a.zip
    3.2 MB · Views: 82

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,251
Country
France
Latest build NRO from the commit from 4 days ago. Commits show a lot of language support added lately, you'd have to make your own dat file from the relevant rom, idk I've only tested it with the standard US rom.

In case it becomes relevant to anyone, the python script to extract the assets from the rom into the dat file requires at least python 3.8, not mentioned in the instructions but in an old closed github issue.
Hello, I just tested with the French language, it does not work for me
 
  • Sad
Reactions: hippy dave

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,461
Country
United Kingdom
Alright here's a tweaked build, I wanted to use the autosave function (enabled from the ini, saves on quit and reloads on restart) but afaik there's no way to quit the nro with the default controls. I saw this person's pull request to quit by pressing start + select together, copied the code but changed it to pressing both joysticks in at the same time, as I don't think the joystick presses have any effect in the default controls. So this updated nro is from the same latest commit on master but with the added quit code as described, I've also changed Autosave to 1 in the included ini, so you can use that or set it yourself in your own ini.

Next up - neither of the forwarders in this thread worked for me, so I made my own (using the same titleid as impeeza's because thinking of numbers is hard), I used the setup from this forwarder maker but the main from this one so that when you quit the nro, it exits back to the home menu rather than reopening the nro over and over. So with the aforementioned modified nro you can click both joysticks any time and it will autosave and exit to home menu, then autoload when you reopen. nro path is /switch/zelda3/zelda3.nro
 

Attachments

  • Zelda3-a23632a-exitmod.zip
    3.2 MB · Views: 66
  • zelda3-016127545a226000.nsp.zip
    353.7 KB · Views: 68

tatundria

Well-Known Member
Member
Joined
Feb 24, 2009
Messages
394
Trophies
1
XP
2,146
Country
Argentina
Alright here's a tweaked build, I wanted to use the autosave function (enabled from the ini, saves on quit and reloads on restart) but afaik there's no way to quit the nro with the default controls. I saw this person's pull request to quit by pressing start + select together, copied the code but changed it to pressing both joysticks in at the same time, as I don't think the joystick presses have any effect in the default controls. So this updated nro is from the same latest commit on master but with the added quit code as described, I've also changed Autosave to 1 in the included ini, so you can use that or set it yourself in your own ini.

Next up - neither of the forwarders in this thread worked for me, so I made my own (using the same titleid as impeeza's because thinking of numbers is hard), I used the setup from this forwarder maker but the main from this one so that when you quit the nro, it exits back to the home menu rather than reopening the nro over and over. So with the aforementioned modified nro you can click both joysticks any time and it will autosave and exit to home menu, then autoload when you reopen. nro path is /switch/zelda3/zelda3.nro
Those NSP forwarders do not work for me... the quit as soon as I launch them. My previous nsp made by myself does not work with the new build of the .nro neither.
 
  • Wow
Reactions: hippy dave

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,461
Country
United Kingdom
Those NSP forwarders do not work for me... the quit as soon as I launch them. My previous nsp made by myself does not work with the new build of the .nro neither.
When mine was quitting immediately it was because I didn't have the dat file in place with the nro, do you have that? Otherwise I don't know.
 

tatundria

Well-Known Member
Member
Joined
Feb 24, 2009
Messages
394
Trophies
1
XP
2,146
Country
Argentina
When mine was quitting immediately it was because I didn't have the dat file in place with the nro, do you have that? Otherwise I don't know.
Do you mean zelda3_assets.dat inside /switch/zelda3 folder? I have that. Is there a new version of zelda3_assets.dat that may be not compatible with the new compilation of the .nro? Because I cannot find any other reason why it does not work...
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,461
Country
United Kingdom
Do you mean zelda3_assets.dat inside /switch/zelda3 folder? I have that. Is there a new version of zelda3_assets.dat that may be not compatible with the new compilation of the .nro? Because I cannot find any other reason why it does not work...
Yes that's the one I mean. I don't know if there have been changes to the dat file but it's worth a try to generate a new one with the python script from the current GitHub code.
 
  • Like
Reactions: Trilyan

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
    +1
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
    +1
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
    +1
  • K3Nv2 @ K3Nv2:
    White fries hold up
    +1
  • The Real Jdbye @ The Real Jdbye:
    @K3Nv2 sure you can
  • BakerMan @ BakerMan:
    why tf do people hate android users? is it the video quality? just because "AnDrOiD = pOoR" bc they don't cost an arm and a leg like iphones do?
    +1
  • BakerMan @ BakerMan:
    i won't be turned off by an iphone, but don't pick on me for having an android, that's just how this shit should work
  • ZeroT21 @ ZeroT21:
    Should say more what these kind of android users say bout nokia 3310 users
  • BigOnYa @ BigOnYa:
    I've owned both iPhone and Androids over the years. Both are just as good, other than Apples higher price. I'm currently on Android, Samsung S21 I think, and very happy with it.
  • K3Nv2 @ K3Nv2:
    Got my 60 minute steps in whew
    +2
  • BigOnYa @ BigOnYa:
    I get mine in everyday, going back n forth to the fridge for a beer.
    +1
  • K3Nv2 @ K3Nv2:
    6,000 steps in so far legs almost broke getting off
    +1
  • K3Nv2 @ K3Nv2:
    Your mind gets in a werid pattern of just finishing then when you're done you're like I need a soda
  • BigOnYa @ BigOnYa:
    You get a "walkers" high?
  • K3Nv2 @ K3Nv2:
    Not really I just use to love building up a sweat
  • BigOnYa @ BigOnYa:
    Funny, that's what uremum always says
  • K3Nv2 @ K3Nv2:
    Yeah and people that take viagra think they have a big dick
    +1
  • K3Nv2 @ K3Nv2:
    You cant fix one insult edit for another edit you pog
  • BigOnYa @ BigOnYa:
    Nuh I'm on my tablet n it always auto corrects me
  • K3Nv2 @ K3Nv2:
    Heorin and uremum do have close quarters
  • Sonic Angel Knight @ Sonic Angel Knight:
    BIG CHICKEN :P
    K3Nv2 @ K3Nv2: https://youtu.be/q855tNpvDoQ?si=Tl57KMjiVjyBherB +1