jombo23 / N64-Tools

N64 Tools
The Unlicense
239 stars 113 forks source link

Issues getting the right soundbank from Indiana Jones and the Infernal Machine #41

Open thekovic opened 2 years ago

thekovic commented 2 years ago

I'll preface by pointing out that this is a Factor 5 game so things are likely to be weird. I looked at this issue https://github.com/jombo23/N64-Tools/issues/34 which explained some things about how Factor 5 games work. So I extracted all the MIDIs, clicked "Write DLS Combined Banks" but they don't seem to be lining up. For example, when playing back track 130 (main menu theme) with what I think should be the corresponding bank - number 82 (because the banks appear to be numbered in hexadecimal, 82 = 130) - I hear the MIDI played back with samples the game uses for opening doors sounds.

SubDrag commented 2 years ago

It's not matching numbers. You'll have to try them all unfortunately and find best one... Every game is specific and hardcoded music to bank in game code.

thekovic commented 2 years ago

Hmm, trying all of them would be very lengthy. Do you think I could observe what bank is being used for a particular song by looking at the game's memory in an emulator while the song is playing if I look for the right thing? An index or a string perhaps?

SubDrag commented 2 years ago

I imagine is a way, but I'm not familiar with it enough to have specific instructions on how to.