In-game music.

General discussion and socializing.
User avatar
Patchouli_Knowledge
Posts: 2248
Joined: Mon Jun 20, 2011 1:57 am

Re: In-game music.

Post by Patchouli_Knowledge »

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.
Image
-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
User avatar
SacreDoom
Posts: 2590
Joined: Tue Apr 06, 2010 3:14 pm

Re: In-game music.

Post by SacreDoom »

(Kinda off-topic)

I think I figured out how to extract the game's music files somehow sometime ago..
User avatar
Patchouli_Knowledge
Posts: 2248
Joined: Mon Jun 20, 2011 1:57 am

Re: In-game music.

Post by Patchouli_Knowledge »

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.
Image
-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
User avatar
Mashadar
Posts: 379
Joined: Thu Jan 20, 2011 9:34 am

Re: In-game music.

Post by Mashadar »

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)
User avatar
will1701-a
Posts: 89
Joined: Mon May 09, 2011 2:09 am

Re: In-game music.

Post by will1701-a »

I figured out the name of the song it is a reference to the McRoll. and Sanae has the best theme btw.
User avatar
Patchouli_Knowledge
Posts: 2248
Joined: Mon Jun 20, 2011 1:57 am

Re: In-game music.

Post by Patchouli_Knowledge »

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.
Image
-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
User avatar
will1701-a
Posts: 89
Joined: Mon May 09, 2011 2:09 am

Re: In-game music.

Post by will1701-a »

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.
User avatar
Patchouli_Knowledge
Posts: 2248
Joined: Mon Jun 20, 2011 1:57 am

Re: In-game music.

Post by Patchouli_Knowledge »

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.
Image
-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.
User avatar
will1701-a
Posts: 89
Joined: Mon May 09, 2011 2:09 am

Re: In-game music.

Post by will1701-a »

That's pretty legit stuff.
User avatar
Patchouli_Knowledge
Posts: 2248
Joined: Mon Jun 20, 2011 1:57 am

Re: In-game music.

Post by Patchouli_Knowledge »

will1701-a wrote:That's pretty legit stuff.
I didn't quite understand what you mean.
Image
-=The law of inverse desire=- The chances of dropping what you want is the reciprocal of how much you want it.

Return to “The Inn of Brodgar”