Page 1 of 1

Boss Music

Posted: Mon Mar 30, 2015 6:06 am
by Emera Nova
I'm trying to add in a custom track for the boss room and possibility a dungeon level. I have the audio track set up as an .ogg and placed it inside the sounds folder. But when I go in game it doesn't show up anywhere.

Then I tried to add it as a scripted sound in the lua file

Code: Select all

defineSound{
  name = "CampFireSong",
  filename = "mod_assets/sounds/House of Fire.ogg",
  loop = false,
  volume = 3,
  minDistance = 1,
  maxDistance = 5,
  }
And that didn't work either now I'm getting some error code about it not being a riff file. >-> What do I do to get this to work?

Re: Boss Music

Posted: Mon Mar 30, 2015 6:12 am
by minmay
defineSound is for sound effects which are RIFF .wav files. You want defineAmbientTrack:

Code: Select all

defineAmbientTrack{
	name = "CampFireSong",
	filename = "mod_assets/sounds/House of Fire.ogg",
	volume = 1,
}