Author Topic: Adding music to a map in Hammerwatch  (Read 4928 times)

Mananewt

  • Posts: 1
  • Maggot Crusher.
    • View Profile
Adding music to a map in Hammerwatch
« on: August 13, 2014, 11:36:38 PM »
I have grabbed a recent obsession with Hammerwatch, when I say I love this game I mean I LOVE this game. I want to give each and every dev a big kiss on their cheeks. I LOVE YOU GUYS. Okay, now that that's out of the way...I was wondering how exactly I import my own music. I did a little research and I have edited the music.xml and placed my song into the music folder (it is .ogg format ofc). Whenever I pull up the playmusic script from the editor I am not able to select my own song. Could I get some help?

CrusaderDeleters

  • Posts: 102
  • The Great Crusader
    • View Profile
Re: Adding music to a map in Hammerwatch
« Reply #1 on: August 14, 2014, 12:40:35 AM »
You can manually type your own selection.
If the Editor was still open while you imported hit, just hold ctrl and hit r to refresh everything on the editor.
The King of Maernol

MrJanCraft

  • Posts: 11
  • Creator of The Castle of Hell 0.5
    • View Profile
Re: Adding music to a map in Hammerwatch
« Reply #2 on: September 25, 2014, 05:54:53 PM »
You need in your Map foulder a Foulder that called is:sound This foulder must countain a Folder that called music and a music.xml

Now place your song in the music folder [must be .ogg]

Now edit the music.xml

<soundbank>

   <music name="example">
      <source res="sound/music/example.ogg" />      
   </music>

</soundbank>

so you change the example to you name of the song then  you start the editor or reload files etc.

and then you must find it under scripting>PlayMusic