It is currently Mon Jan 21, 2019 12:10 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Jan 12, 2019 12:00 am 
Offline

Joined: Fri Jan 11, 2019 11:54 pm
Posts: 2
I want to replace some of the music and sounds in Zelda 2. I have the game disassembled, but I don't know how to go about editing the music. I need help.


Top
 Profile  
 
PostPosted: Sat Jan 12, 2019 11:30 am 
Offline

Joined: Sun Mar 03, 2013 1:52 am
Posts: 114
Location: Texas, USA
Romhacking.net's Data Crystal wiki page for Zelda II: The Adventure of Link has a "Zelda II Music Document". The hex locations in that document are offsets in the .NES file.


Top
 Profile  
 
PostPosted: Sat Jan 12, 2019 12:48 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2390
Location: DIGDUG
2 methods.

Figure out exactly what the music code does.

or.

Find the music data, and just corrupt it and see what happens.


another thought. go somewhere where nothing is going on, but music plays such as the title screen., and look at the RAM in a debugger. The zeropage RAM almost certainly has some pointers to music data, they tell you where the data is.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Sun Jan 13, 2019 9:03 am 
Offline

Joined: Fri Jan 11, 2019 11:54 pm
Posts: 2
I have the Music document from RHDN, and I have a disassembly. I can find the music, but the info only talks about how to change pitch and tones. What I need to figure out is how to replace a song with a different song not currently in the game.


Top
 Profile  
 
PostPosted: Sun Jan 13, 2019 11:25 am 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3630
Location: Indianapolis
According to that doc, the songs are built from a sequence of phrases. You'll need to divide your music into phrases, then make that "phrase order" table that points to your phrases so they'll play in the order you want.


Top
 Profile  
 
PostPosted: Sun Jan 13, 2019 6:21 pm 
Offline

Joined: Sun Mar 19, 2006 9:44 pm
Posts: 972
Location: Japan
UltimaWeapon wrote:
I have the Music document from RHDN, and I have a disassembly. I can find the music, but the info only talks about how to change pitch and tones. What I need to figure out is how to replace a song with a different song not currently in the game.

The doc is explaining it in Lego block detail, and you want it as a pre-made Lego building. I'm afraid you'll have to build your song up in Lego block detail in the format and arrangement that Zelda 2's music engine expects.

By the way, almost every old game system games' music engine / driver is unique from one another. There is no standard music format for them, let alone a human-readable one.

_________________
http://www.chrismcovell.com


Top
 Profile  
 
PostPosted: Fri Jan 18, 2019 7:19 pm 
Offline
User avatar

Joined: Thu Sep 07, 2006 1:08 pm
Posts: 585
Location: United States
ccovell wrote:
The doc is explaining it in Lego block detail, and you want it as a pre-made Lego building. I'm afraid you'll have to build your song up in Lego block detail in the format and arrangement that Zelda 2's music engine expects.

Or...

You can do something like this and replace the music engine with your own:

https://youtu.be/_Hx4QUNsTiw

_________________
Ruling the World One Bean™ at a Time...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group