-
Patchouli_Knowledge
- Posts: 2248
- Joined: Mon Jun 20, 2011 1:57 am
Re: In-game music.
I think if you have the correct files in the haven.res then you should be able to hear it unless you disabled it in option as most people tend to do especially in the midst of the abruptly loud house music.

-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
-
SacreDoom
- Posts: 2590
- Joined: Tue Apr 06, 2010 3:14 pm
Re: In-game music.
(Kinda off-topic)
I think I figured out how to extract the game's music files somehow sometime ago..
I think I figured out how to extract the game's music files somehow sometime ago..
-
Patchouli_Knowledge
- Posts: 2248
- Joined: Mon Jun 20, 2011 1:57 am
Re: In-game music.
Can you please tell me how are you able to do it? Is it possible to recode it back into the res files?
And no it is not off-topic. In fact it is the actual reason why I made this thread.
And no it is not off-topic. In fact it is the actual reason why I made this thread.

-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
-
Mashadar
- Posts: 379
- Joined: Thu Jan 20, 2011 9:34 am
Re: In-game music.
Replacing the tracks in the resource files is quite straight-forward.
Extracting them is as easy as opening the resource file in a hex editor and deleting everything in front of "MThd".
To replace the track, copy a new midi track to that position and edit the resource size accordingly - that would be the 4 bytes before "MThd".
I made a small tool that does exactly that. It expects either a midi file or a HnH resource file with a single midi track as a parameter and will generate another file with the same name (i.e. ronald.res becomes ronald.mid and vice versa). Alternatively, you can provide the desired output filename as the second parameter.
In Windows, you can simply drag a file onto the program icon to do the conversion.
Binaries for Windows/Linux (47 KB)
Source code (it uses non-standard classes and functions, however it should be more or less self-explaining)
Extracting them is as easy as opening the resource file in a hex editor and deleting everything in front of "MThd".
To replace the track, copy a new midi track to that position and edit the resource size accordingly - that would be the 4 bytes before "MThd".
I made a small tool that does exactly that. It expects either a midi file or a HnH resource file with a single midi track as a parameter and will generate another file with the same name (i.e. ronald.res becomes ronald.mid and vice versa). Alternatively, you can provide the desired output filename as the second parameter.
In Windows, you can simply drag a file onto the program icon to do the conversion.
Binaries for Windows/Linux (47 KB)
Source code (it uses non-standard classes and functions, however it should be more or less self-explaining)
-
will1701-a
- Posts: 89
- Joined: Mon May 09, 2011 2:09 am
Re: In-game music.
I figured out the name of the song it is a reference to the McRoll. and Sanae has the best theme btw.
-
Patchouli_Knowledge
- Posts: 2248
- Joined: Mon Jun 20, 2011 1:57 am
Re: In-game music.
Transient is a very nice theme but I also enjoy Boundaries of Life and Sepette for a Dead Princess which are my two favorites.
And also Mcroll song was based on U.N. Owen was her. There seems to be a large confusion that many believe it is the reverse.
And also Mcroll song was based on U.N. Owen was her. There seems to be a large confusion that many believe it is the reverse.

-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
-
will1701-a
- Posts: 89
- Joined: Mon May 09, 2011 2:09 am
Re: In-game music.
I knew about the whole debate over the Mcroll, but EoSD was released way before that video so it doesn't make since that it is from the Mcroll, but i was just thinking the name was a reference to the McRoll video.
-
Patchouli_Knowledge
- Posts: 2248
- Joined: Mon Jun 20, 2011 1:57 am
Re: In-game music.
Of course the fandom gets riled up when you try to say that it is otherwise. Then again there are a lot of things that the fandom conclucded that Zun has not quite made official as well, someone of them are fairly humorous.
Oh and to have a continual of the topic, I ran one of the midi file I have through the program and produced this res file. Enjoy.
Oh and to have a continual of the topic, I ran one of the midi file I have through the program and produced this res file. Enjoy.

-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
-
will1701-a
- Posts: 89
- Joined: Mon May 09, 2011 2:09 am
Re: In-game music.
That's pretty legit stuff.
-
Patchouli_Knowledge
- Posts: 2248
- Joined: Mon Jun 20, 2011 1:57 am
Re: In-game music.
I didn't quite understand what you mean.will1701-a wrote:That's pretty legit stuff.

-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.