YS V msu
Page 1 of 5
Page 1 of 5 • 1, 2, 3, 4, 5
YS V msu
Project finished:
https://www.zeldix.net/t1731-ys-v-kefin-kingdom-of-sand
https://www.zeldix.net/t1731-ys-v-kefin-kingdom-of-sand
Ok, attached is my asm for YS V. Unfortunately it was a lot harder than I initially expected but I think it works now (also fading).
Unfortunately I couldn't implement a spc fallback. Really tried a lot but this game is somewhat weird. I only managed a mute with apu (hardcore). So if a track can't be placed with a CD track (since there are simply too few), you need to pcm the spc...
What needs to be done:
- loop table at the end must be completed
- pcm:s need to be made
To map a theme:
brakpoint at $808717
$80/8717 22 00 FC 9F JSL $9FFC00[$9F:FC00] A:016F X:006E
Track is in the X register
Patch
v3: freeze bug when obtaining item fixed
v4: security play added
- Attachments
Last edited by Conn on Fri 22 Jun 2018 - 8:36; edited 5 times in total
Conn- Since : 2013-06-30
Re: YS V msu
Is this for the vanilla Jap ROM, or a ROM with the English translation applied?
https://agtp.romhack.net/project.php?id=ys5
There was a lot of recoding done in the translation, so the MSU for one might not work on the other...
https://agtp.romhack.net/project.php?id=ys5
There was a lot of recoding done in the translation, so the MSU for one might not work on the other...
edale- Since : 2017-10-03
Re: YS V msu
I used a English patched 1.0 rom to build this patch, but it surely is also compatible with the org jap.
Edit: tested and works with every rom (eng, jap). I also added a preliminary ips patch to above file (loop table not completed).
Edit: tested and works with every rom (eng, jap). I also added a preliminary ips patch to above file (loop table not completed).
Conn- Since : 2013-06-30
Re: YS V msu
Good to know it's compatible with both. IIRC 2 of the game's engines had to be rewritten from the ground up for that translation to work (something about getting words to display sideways instead of vertically), so I wasn't sure they'd be compatible.
edale- Since : 2017-10-03
Re: YS V msu
@edale Here is the mapped Ys V track list. Link below:
Updated: Using GoogleDocs (so anyone can edit the PCM chart)
https://docs.google.com/spreadsheets/d/1bFZ3pue90BvdiMCpFqoiRIbjcvM4YLAcfx72CV2xrTo/edit?usp=sharing
Update1: Added the decimal equivalents for the hex values. Ooops, forgot to do that.
Update2: Added a section to determine loop/non-loop status of tracks (WIP, play as you go).
Update3: The link should now allow anyone to edit the tracklist
Updated: Using GoogleDocs (so anyone can edit the PCM chart)
https://docs.google.com/spreadsheets/d/1bFZ3pue90BvdiMCpFqoiRIbjcvM4YLAcfx72CV2xrTo/edit?usp=sharing
Update1: Added the decimal equivalents for the hex values. Ooops, forgot to do that.
Update2: Added a section to determine loop/non-loop status of tracks (WIP, play as you go).
Update3: The link should now allow anyone to edit the tracklist
Last edited by pepillopev on Sun 20 May 2018 - 15:52; edited 5 times in total
pev- Since : 2017-10-16
Re: YS V msu
@Conn Ok, I mapped all the tracks and did a check off and noticed some tracks were not part of the mapped list using the $808717 X-register. My guess, the missing tracks are most likely shared and won't know until I play there to verify. I will keep you posted. Those that are not part of the mapped list are shown below:
Catch the Record
Digest
Farewell
Scheme of Madness I
The Extra Room
The Secret Experience
Theme of Adol
Vanishing World
Catch the Record
Digest
Farewell
Scheme of Madness I
The Extra Room
The Secret Experience
Theme of Adol
Vanishing World
pev- Since : 2017-10-16
Re: YS V msu
The value in x should be unique, in Geiger you can set the breakpoint, edit register and set a new x value. Then the edited theme is played. If you edit an unused theme, like 01 an error screen is displayed.
If that was your technique already you really need to play there
If that was your technique already you really need to play there
Conn- Since : 2013-06-30
Re: YS V msu
I went through the whole list 00 thru FF and those listed tracks did not show up (the other non used values would give an error message and crash game).
I think those tracks are going to be shared tracks. As before, I will need to play there to verify this theory.
I think those tracks are going to be shared tracks. As before, I will need to play there to verify this theory.
pev- Since : 2017-10-16
Re: YS V msu
I noticed a freeze bug when opening the chest. I fixed it (redownload patch from first post).
To make my fix take effect I had to make the item obtained jingle track 00 a non-loop in the loop table ($01). I hope it fixes all other such instances as well... but the loop table should be finished before trying (otherwise it may freeze at other places as well with a non-loop track).
Also here's a savestate that might help:
https://www.zophar.net/savestates/snes/ys-5.html
Edit: I checked your missing themes:
For example, one theme is going on right after the 78 (crumbling sfx) here:
https://youtu.be/s-zbHeGspuk?list=PL2x_L-xksKqR3T1TGiBb5YkGYtCt9mJ1y&t=802
(Time: 13:22)
It goes into the music at 13:41. There is no further check in my code for this music
Same with farewell. It starts with the 72 theme (Seagull FX) here:
Time: 23:12
Without further check of my code it will play the farwell theme at
Time: 23: 30
I'll check whether I find good hooks
To make my fix take effect I had to make the item obtained jingle track 00 a non-loop in the loop table ($01). I hope it fixes all other such instances as well... but the loop table should be finished before trying (otherwise it may freeze at other places as well with a non-loop track).
Also here's a savestate that might help:
https://www.zophar.net/savestates/snes/ys-5.html
Edit: I checked your missing themes:
For example, one theme is going on right after the 78 (crumbling sfx) here:
https://youtu.be/s-zbHeGspuk?list=PL2x_L-xksKqR3T1TGiBb5YkGYtCt9mJ1y&t=802
(Time: 13:22)
It goes into the music at 13:41. There is no further check in my code for this music
Same with farewell. It starts with the 72 theme (Seagull FX) here:
Time: 23:12
Without further check of my code it will play the farwell theme at
Time: 23: 30
I'll check whether I find good hooks
Conn- Since : 2013-06-30
Re: YS V msu
Ok, I fixed it, redownload v4 from first post.
What I did is that I made a security play at another security play hook.
The problem is that if one of the sfx like music tracks you marked red in your excel, Pev, is played, the playroutine is skipped. So I implemented another hook.
The problem is that the tracks cannot be mapped as usual so you need to play through the game with a breakpoint at
$2004 (write hook)
New mapped:
https://www.youtube.com/watch?v=s-zbHeGspuk
$11: Time: 23:30 farewell
$80: Time 13:41 after rock crumbling
The problem with $80 is that it uses the shared theme number $12 with shop, so I mapped it to $80 in new the asm!
If more shared tracks are there with the remaining tracks, you'd need to copy/paste the bold part and map it to other themes as well.
Poah, that game is weird....
What I did is that I made a security play at another security play hook.
The problem is that if one of the sfx like music tracks you marked red in your excel, Pev, is played, the playroutine is skipped. So I implemented another hook.
The problem is that the tracks cannot be mapped as usual so you need to play through the game with a breakpoint at
$2004 (write hook)
New mapped:
https://www.youtube.com/watch?v=s-zbHeGspuk
$11: Time: 23:30 farewell
$80: Time 13:41 after rock crumbling
The problem with $80 is that it uses the shared theme number $12 with shop, so I mapped it to $80 in new the asm!
Theme 11 (farewell) isn't shared.securityPlay:
loopfadesecurity:
LDA $7FFC00
BNE loopfadesecurity
TXA
CMP $7ffc02
BEQ endSecurity
PHX
CMP #$12 ;shared shop theme after rock grumble?
BNE $03
LDA #$80 ; map new theme
TAX
If more shared tracks are there with the remaining tracks, you'd need to copy/paste the bold part and map it to other themes as well.
Poah, that game is weird....
Conn- Since : 2013-06-30
Re: YS V msu
Thanks for the update. At this moment, I’m backed up with work and won’t have an opportunity to play test until this weekend.
pev- Since : 2017-10-16
Re: YS V msu
Real life first
Here's a tracelog with $2004 write and the ending:
So with the current asm, the security code is ~only~ executed in case the normal hook isn't executed and is covered with
$9F/FC4D , normal hook is $9F/FC10 (with new code these execute breakpoint will shift so better make a write breakpoint at 2004).
As you can see, the credits are also not mapped and shared with pcm -00, to do it write in the current asm:
Here's a tracelog with $2004 write and the ending:
$9F/FC4D 8D 04 20 STA $2004 [$00:2004] A:FA80 X:0080 Y:0009 this was $12 (shared shop) I remapped it to $80
$9F/FC10 8D 04 20 STA $2004 [$00:2004] A:0008 X:0008 Y:0002
$9F/FC10 8D 04 20 STA $2004 [$00:2004] A:9B10 X:0010 Y:007E
$9F/FC10 8D 04 20 STA $2004 [$00:2004] A:000C X:000C Y:0001
$9F/FC10 8D 04 20 STA $2004 [$00:2004] A:0076 X:0076 Y:0000
$9F/FC10 8D 04 20 STA $2004 [$00:2004] A:0072 X:0072 Y:0002
$9F/FC4D 8D 04 20 STA $2004 [$00:2004] A:E111 X:0011 Y:0019 this is farwell $11, not shared
$9F/FC4D 8D 04 20 STA $2004 [$00:2004] A:E700 X:0000 Y:007E credit roll not mapped yet, shares with 00 got item
So with the current asm, the security code is ~only~ executed in case the normal hook isn't executed and is covered with
$9F/FC4D , normal hook is $9F/FC10 (with new code these execute breakpoint will shift so better make a write breakpoint at 2004).
As you can see, the credits are also not mapped and shared with pcm -00, to do it write in the current asm:
It's just a copy/paste thing as you see. This red code would map the credits from shared $00 to $81.
securityPlay:
loopfadesecurity:
LDA $7FFC00
BNE loopfadesecurity
TXA
CMP $7ffc02
BEQ endSecurity
PHX
CMP #$12 ; shares shop
BNE $03
LDA #$80 ; map to 80
TAX
CMP #$00 ; shares got item
BNE $03
LDA #$81 ; map to $81
TAX
STZ $2006
STA $2004
Conn- Since : 2013-06-30
Re: YS V msu
Starting work on this.
ATM the only real option is a PS2 PCM pack. Potential problem, PS2 has 40 tracks, SNES has 58. I'll have to see what's left over on the SNES side when I get all the PS2 tracks converted.
ATM the only real option is a PS2 PCM pack. Potential problem, PS2 has 40 tracks, SNES has 58. I'll have to see what's left over on the SNES side when I get all the PS2 tracks converted.
edale- Since : 2017-10-03
Re: YS V msu
@edale, get the tracklist. I updated including the loop status as I progress through the game.
pev- Since : 2017-10-16
Re: YS V msu
Already using it. Though I tried to mark track 110 as looping, and I couldn't figure out how to edit it (you did say it was editable, right?).pepillopev wrote:@edale, get the tracklist. I updated including the loop status as I progress through the game.
right?
Also, much easier to take care of the conversions with your tracklist listing the track titles/names, rather than the locations the songs play at (usually need to do a playthrough to build a second tracklist with song titles instead, can skip that step now). I should have most of the PS2 tracks converted before I even touch the game now, lol.
edale- Since : 2017-10-03
Re: YS V msu
@edale, I was reading a little more with regards to Dropbox online editing and found out other collaborators have to have a dropbox account to use this feature. I'm going to see if GoogleDocs allows this w/o subjecting you to open another account just to use the feature.
pev- Since : 2017-10-16
Re: YS V msu
@edale, I updated the link to use GoogleDocs (this one allows anyone to edit a document w/o needing an account). Now you can properly update the track list within your web browser.
pev- Since : 2017-10-16
Re: YS V msu
I actually was logged in to Dropbox when I tried, and it didn't work.
That said, the googledocs one seems to work fine.
That said, the googledocs one seems to work fine.
edale- Since : 2017-10-03
Re: YS V msu
@edale, I have to give you permission to edit it in Dropbox. I was lazy to find out your DropBox user name and took the 'easy' GoogleDocs route, lol.
pev- Since : 2017-10-16
Re: YS V msu
Adding a column to the GoogleDocs file, just a checkmark for if I've converted the PCM yet or not to help me track things.
Gotta admit, this is convenient.
Gotta admit, this is convenient.
edale- Since : 2017-10-03
Re: YS V msu
@edale I already did some tracks (mix of orchestrated, ps2, and snes pcm). You want me to share them with you. No reason to re-invent the wheel. I can then leave you at it (so, I can be free to do something else). Interested? No reason for two people to work on the same project (with same resources).
pev- Since : 2017-10-16
Re: YS V msu
@edale Only thing, I use audacity for the WAV edits. I can leave you all the WAVs, PCMs, and Audacity SAVES for you to continue where I left off. I'm almost half way done with them (tracks 0-80, 110, 129, 130).
pev- Since : 2017-10-16
Re: YS V msu
At the moment, I'm just matching up PS2 tracks to the SNES SPC's, converting them, and numbering to match the tracklist. Haven't even glanced at the orchestrations yet (each of the orchestrated albums only has 10-15 tracks, so I'm not hopeful), or tried them out in-game.
I can get through a good 15 tracks an hour when I'm focusing on working on it (and not doing a few tracks on the side while doing 3 other things, lol), so I'll be done with that and on the hunt for the missing tracks by tomorrow most likely.
I already have all the Ys 5 albums in FLAC, so I'm good on that front.
The SNES track for ones not covered by the PS2 soundtrack I could use though.
I can get through a good 15 tracks an hour when I'm focusing on working on it (and not doing a few tracks on the side while doing 3 other things, lol), so I'll be done with that and on the hunt for the missing tracks by tomorrow most likely.
I already have all the Ys 5 albums in FLAC, so I'm good on that front.
The SNES track for ones not covered by the PS2 soundtrack I could use though.
edale- Since : 2017-10-03
Re: YS V msu
@edale Ok, I'll give you the ones I have done so far. Maybe, you can create another column (PS2 or SPC)?
pev- Since : 2017-10-16
Re: YS V msu
@edale I uploaded what I worked on (it is in PCM format). Pull what you need from there. I never made a list as to what was SPC or PS2. Link below:
https://www.dropbox.com/sh/e3cov02lumw01r3/AABdO58ANsMb5jMJasuT5FyGa?dl=0
The PCMs are looped. But knowing your OCD complex, I can safely say, you will edit them (which is fine by me, you do a better job).
https://www.dropbox.com/sh/e3cov02lumw01r3/AABdO58ANsMb5jMJasuT5FyGa?dl=0
The PCMs are looped. But knowing your OCD complex, I can safely say, you will edit them (which is fine by me, you do a better job).
pev- Since : 2017-10-16
Page 1 of 5 • 1, 2, 3, 4, 5
Page 1 of 5
Permissions in this forum:
You cannot reply to topics in this forum