Skip to content

Commit 5d85b7e

Browse files
committed
Ready for final distribution
1 parent 29fbf9f commit 5d85b7e

File tree

4 files changed

+95
-17
lines changed

4 files changed

+95
-17
lines changed

README.txt

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
Secret of Mana/Seiken Densetsu 2 MSU-1
2-
Version 0.9 Beta
2+
Version 1.0
33
by DarkShock
44

5-
This hack adds CD quality audio to Secret of Mana (U) using the MSU-1 chip invented by byuu.
6-
The hack has been tested on SD2SNES, BSNES 075, bsnes-plus 073.1b and higan 094. The patched ROM needs to be named som_msu1.sfc.
5+
This hack adds CD quality audio to Secret of Mana using the MSU-1 chip invented by byuu.
6+
The hack has been tested on SD2SNES, bsnes-plus 073.1b and higan 094. The patched ROM needs to be named som_msu1.sfc.
7+
8+
BSNES v075 or any other version is NOT RECOMMENDED, use bsnes-plus it's much better (and also the emulator I use for testing/analysis/debugging).
79

810
Works also with:
911
- Seiken Densetsu 2 (J)
@@ -12,6 +14,13 @@ Works also with:
1214
**** IMPORTANT FOR PAL ROM *****
1315
You need to edit the manifest file (som_msu1.xml or manifest.bml) and change NTSC to PAL in order to work
1416

17+
In order for this to work, you need the music pack available here: https://www.mediafire.com/?q6lss155pnywtt3
18+
19+
=================
20+
= Patch the ROM =
21+
=================
22+
Use Lunar IPS or your favorite IPS patcher to patch the ROM.
23+
1524
===============
1625
= Using BSNES =
1726
===============
@@ -24,7 +33,7 @@ You need to edit the manifest file (som_msu1.xml or manifest.bml) and change NTS
2433
===============
2534
1. Patch the ROM
2635
2. Launch it using higan
27-
3. Go to %USERPROFILE%\Emulation\Super Famicom\topgear2s_msu1.sfc in Windows Explorer.
36+
3. Go to %USERPROFILE%\Emulation\Super Famicom\som_msu1.sfc in Windows Explorer.
2837
4. Copy manifest.bml and the .pcm file there
2938
5. Run the game
3039

@@ -37,8 +46,10 @@ Launch the game and voil
3746
===========
3847
= Credits =
3948
===========
40-
* DarkShock - ASM hacking & coding, Music editing
41-
* David Thomas /GinBunBun - Music compilation
49+
* DarkShock - ASM hacking & coding
50+
* David Thomas / GinBunBun - Music compilation
51+
* NTI Productions - Music editing
52+
* Datschge - SPC dump
4253

4354
=========
4455
= Music =
@@ -66,8 +77,8 @@ $13 / 19 = The Legend
6677
$14 / 20 = The Orphan of Storm
6778
$15 / 21 = Eight Ringing Bells
6879
$16 / 22 = Dancing Beasts
69-
$17 / 23 = Victory !
70-
$18 / 24 = Got Mana Sword SFX
80+
$17 / 23 = Victory ! (Jingle)
81+
$18 / 24 = Boss Defeated
7182
$19 / 25 = Cannon Travel Lunch (SFX)
7283
$1A / 26 = Cannon Travel (SFX)
7384
$1B / 27 = Ceremony
@@ -76,9 +87,9 @@ $1D / 29 = A Prayer and a Whisper
7687
$1E / 30 = New Contient Rises (SFX)
7788
$1F / 31 = Happenings on a Moonlight Night
7889
$20 / 32 = A Curious Happening
79-
$21 / 33 = ?????
90+
$21 / 33 = Unused Jingle 1
8091
$22 / 34 = Midge Mallet (SFX)
81-
$23 / 35 = Unknown Jingle
92+
$23 / 35 = Unknown Jingle 2
8293
$24 / 36 = A Wish
8394
$25 / 37 = Monarch on the Shore
8495
$26 / 38 = Steel and Traps
@@ -88,10 +99,10 @@ $29 / 41 = Kind Memories
8899
$2A / 42 = The Holy Intruder
89100
$2B / 43 = In the Darkness' Depths (The Dead of Night)
90101
$2C / 44 = Angel's Fear
91-
$2D / 45 = Squaresoft rowing sound
92-
$2E / 46 = (Jingle)
93-
$2F / 47 = (Jingle)
94-
$30 / 48 = (Jingle)
102+
$2D / 45 = Mysterious Moaning
103+
$2E / 46 = Mara's Key (Jingle)
104+
$2F / 47 = Got an Item (Jingle)
105+
$30 / 48 = Elemental Acquired (Jingle)
95106
$31 / 49 = Give Love its Rightful Time
96107
$32 / 50 = The Second Truth from the left
97108
$33 / 51 = The Curse
@@ -112,6 +123,7 @@ To compile the hack you need
112123

113124
* bass v14 (https://web.archive.org/web/20140710190910/http://byuu.org/files/bass_v14.tar.xz)
114125
* wav2msu (https://github.com/mlarouche/wav2msu)
126+
* sox (https://sox.sourceforge.net/)
115127

116128
To distribute the hack you need
117129

@@ -120,5 +132,6 @@ To distribute the hack you need
120132

121133
make.bat assemble the patch
122134
create_pcm.bat create the .pcm from the WAV files
135+
edit_audio.bat process the WAV files with SOX
123136
distribute.bat distribute the patch
124137
make_all.bat does everything

make_all.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@ECHO OFF
22

3-
make && create_pcm && distribute
3+
make && distribute

manifest.bml

+16
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,42 @@ cartridge region=NTSC
2828
track number=15 name=som_msu1-15.pcm
2929
track number=16 name=som_msu1-16.pcm
3030
track number=17 name=som_msu1-17.pcm
31+
track number=18 name=som_msu1-18.pcm
3132
track number=19 name=som_msu1-19.pcm
3233
track number=20 name=som_msu1-20.pcm
3334
track number=21 name=som_msu1-21.pcm
3435
track number=22 name=som_msu1-22.pcm
36+
track number=23 name=som_msu1-23.pcm
37+
track number=24 name=som_msu1-24.pcm
38+
track number=25 name=som_msu1-25.pcm
39+
track number=26 name=som_msu1-26.pcm
3540
track number=27 name=som_msu1-27.pcm
3641
track number=28 name=som_msu1-28.pcm
3742
track number=29 name=som_msu1-29.pcm
43+
track number=30 name=som_msu1-30.pcm
3844
track number=31 name=som_msu1-31.pcm
3945
track number=32 name=som_msu1-32.pcm
46+
track number=33 name=som_msu1-33.pcm
47+
track number=34 name=som_msu1-34.pcm
48+
track number=35 name=som_msu1-35.pcm
4049
track number=36 name=som_msu1-36.pcm
4150
track number=37 name=som_msu1-37.pcm
4251
track number=38 name=som_msu1-38.pcm
4352
track number=39 name=som_msu1-39.pcm
53+
track number=40 name=som_msu1-40.pcm
4454
track number=41 name=som_msu1-41.pcm
4555
track number=42 name=som_msu1-42.pcm
4656
track number=43 name=som_msu1-43.pcm
57+
track number=44 name=som_msu1-44.pcm
58+
track number=45 name=som_msu1-45.pcm
59+
track number=46 name=som_msu1-46.pcm
60+
track number=47 name=som_msu1-47.pcm
61+
track number=48 name=som_msu1-48.pcm
4762
track number=49 name=som_msu1-49.pcm
4863
track number=50 name=som_msu1-50.pcm
4964
track number=51 name=som_msu1-51.pcm
5065
track number=52 name=som_msu1-52.pcm
66+
track number=53 name=som_msu1-53.pcm
5167
track number=54 name=som_msu1-54.pcm
5268
track number=55 name=som_msu1-55.pcm
5369
track number=56 name=som_msu1-56.pcm

secret_of_mana_msu1.asm

+51-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ IsMSUReady:
193193
bne TrackMissing
194194
195195
// Play the song and add repeat if needed
196-
//jsr TrackNeedLooping
197-
lda #$03
196+
lda RequestedSong
197+
jsr TrackNeedLooping
198198
sta MSU_AUDIO_CONTROL
199199
200200
// Set volume
@@ -226,6 +226,55 @@ TrackMissing:
226226
rts
227227
}
228228

229+
scope TrackNeedLooping: {
230+
// $17 / 23 = Victory ! (Jingle)
231+
cmp.b #$17
232+
beq noLooping
233+
// $19 Cannon Travel Lunch (SFX)
234+
cmp.b #$19
235+
beq noLooping
236+
// $1A Cannon Travel (SFX)
237+
cmp.b #$1A
238+
beq noLooping
239+
// $1E New Contient Rises (SFX)
240+
cmp.b #$1E
241+
beq noLooping
242+
// $21 Unused Jingle 1
243+
cmp.b #$21
244+
beq noLooping
245+
// $22 Midge Mallet (SFX)
246+
cmp.b #$22
247+
beq noLooping
248+
// $23 Unknown Jingle 2
249+
cmp.b #$23
250+
beq noLooping
251+
// $28 Flammie Coming (SFX)
252+
cmp.b #$28
253+
beq noLooping
254+
// $2D Mysterious Moaning
255+
cmp.b #$2D
256+
beq noLooping
257+
// $2E Mara's Key (Jingle)
258+
cmp.b #$2E
259+
beq noLooping
260+
// $2F Got an Item (Jingle)
261+
cmp.b #$2F
262+
beq noLooping
263+
// $30 Elemental Acquired (Jingle)
264+
cmp.b #$30
265+
beq noLooping
266+
// $35 Ally Joins (Jingle)
267+
cmp.b #$35
268+
beq noLooping
269+
270+
// Track loops
271+
lda.b #$03
272+
rts
273+
noLooping:
274+
lda #$01
275+
rts
276+
}
277+
229278
scope MSU_Fade: {
230279
lda RequestedSong
231280
sta FadeCount

0 commit comments

Comments
 (0)