In-game music.

General discussion and socializing.

Re: In-game music.

Postby Patchouli_Knowledge » Sun Jul 17, 2011 7:52 pm

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

Re: In-game music.

Postby SacreDoom » Sun Jul 17, 2011 10:30 pm

(Kinda off-topic)

I think I figured out how to extract the game's music files somehow sometime ago..
User avatar
SacreDoom
 
Posts: 2590
Joined: Tue Apr 06, 2010 3:14 pm

Re: In-game music.

Postby Patchouli_Knowledge » Mon Jul 18, 2011 6:20 am

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

Re: In-game music.

Postby Mashadar » Tue Jul 19, 2011 12:53 am

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
Mashadar
 
Posts: 379
Joined: Thu Jan 20, 2011 9:34 am

Re: In-game music.

Postby will1701-a » Tue Jul 19, 2011 4:29 am

I figured out the name of the song it is a reference to the McRoll. and Sanae has the best theme btw.
User avatar
will1701-a
 
Posts: 89
Joined: Mon May 09, 2011 2:09 am

Re: In-game music.

Postby Patchouli_Knowledge » Tue Jul 19, 2011 6:46 am

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

Re: In-game music.

Postby will1701-a » Tue Jul 19, 2011 9:50 pm

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

Re: In-game music.

Postby Patchouli_Knowledge » Wed Jul 20, 2011 5:08 pm

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

Re: In-game music.

Postby will1701-a » Thu Jul 21, 2011 9:25 am

That's pretty legit stuff.
User avatar
will1701-a
 
Posts: 89
Joined: Mon May 09, 2011 2:09 am

Re: In-game music.

Postby Patchouli_Knowledge » Fri Jul 22, 2011 3:25 am

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

PreviousNext

Return to The Inn of Brodgar

Who is online

Users browsing this forum: Claude [Bot] and 3 guests