Boss Music

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Emera Nova
Posts: 146
Joined: Wed Jun 11, 2014 1:31 am

Boss Music

Post 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?
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Boss Music

Post 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,
}
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply