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,875
Trophies
2
XP
29,189
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: 80

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
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,875
Trophies
2
XP
29,189
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: 64
  • zelda3-016127545a226000.nsp.zip
    353.7 KB · Views: 67

tatundria

Well-Known Member
Member
Joined
Feb 24, 2009
Messages
394
Trophies
1
XP
2,138
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,875
Trophies
2
XP
29,189
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,138
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,875
Trophies
2
XP
29,189
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
    BETA215 @ BETA215: Fighting downhill is proper of traitors, sometimes you do what you have to do...