Hi again, i have the defintion script for one song in mod_assets\scripts sounds.lua and it works fine. Now my question is how do I add more to that sound script? I tried to simplly leave 2 spaces and type in a new defination but i get a white text message top left screen ingame that says no such sound sample asylum.
My script sounds.lua looks like this:
-- This file has been generated by Dungeon Editor 1.3.1
-- TODO: place your custom sound definitions here
defineSound{
name = "invader",
filename = "mod_assets/sounds/invader.wav",
loop = false,
volume = 1,
minDistance = 30,
maxDistance = 32,
}
defineSound{
name = "asylum",
filename = "mod_assets/sounds/asylum.wav",
loop = false,
volume = 1,
minDistance = 30,
maxDistance = 32,
}
Adding multiple custom songs to sounds.lua?
-
- Posts: 17
- Joined: Sun Oct 21, 2012 1:08 am
Re: Adding multiple custom songs to sounds.lua?
The only possibility is that there is no asylum.wav in the mod_assets/sounds folder.
Be sure to check format and typos.
Be sure to check format and typos.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
-
- Posts: 17
- Joined: Sun Oct 21, 2012 1:08 am
Re: Adding multiple custom songs to sounds.lua?
yes the song is in the sound folder along with invader.wav and i rechecked all spelling. Did i place the definition script in the sounds.lua properly? By format you mean the type of sound file? if so it was converted same as invader into a wavNeikun wrote:The only possibility is that there is no asylum.wav in the mod_assets/sounds folder.
Be sure to check format and typos.
Re: Adding multiple custom songs to sounds.lua?
I don't know what to say. It should work.
Here's a bug test. Cut the asylum sound script from sounds.lua and paste it in any other .lua script that gets loaded by your dungeon.
Here's a bug test. Cut the asylum sound script from sounds.lua and paste it in any other .lua script that gets loaded by your dungeon.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
Re: Adding multiple custom songs to sounds.lua?
I had the same problem with some of my sounds for a while there. I believe I saw this in another thread, but the .wav files have to be 16 bit or they won't register as being there.
Re: Adding multiple custom songs to sounds.lua?
try switching the order, place the code for the second song first.
try renaming the files to each other's names
those ideas would just be to help narrow down the problem
try renaming the files to each other's names
those ideas would just be to help narrow down the problem
Finished Dungeons - complete mods to play
-
- Posts: 17
- Joined: Sun Oct 21, 2012 1:08 am
Re: Adding multiple custom songs to sounds.lua?
wow after so much troubleshooting i found out what it was , even though all my music is in flac format i convert them to 16 bit @44100 hz wav files, turns out that entire album does not work so there must be a small variation in the file format that is causing this error.
I tried another file from another album and it worked.
So thank you to all for your help!
I tried another file from another album and it worked.
So thank you to all for your help!