Page 1 of 1

Game not locating custom sound files

Posted: Thu Oct 04, 2012 5:15 am
by Soaponarope
I'm having trouble with the game finding my custom sound files. It's strange because everything works great in the editor and preview tests. Once I export and run the game through the main menu it crashes right after the intro. The error log tells me my sound files can't be found, but everything should be set right. They are clearly in the dat. file due to it's size, I'm not sure what the problem is.

Here is my error log,

[string "SoundSystem.lua"]:0: File not found: mod_assets/sounds/CryptAmb.wav
stack traceback:
[C]: in function 'load'
[string "SoundSystem.lua"]: in function 'defineSound'
mod_assets/scripts/sounds.lua:17: in main chunk
[string "Dungeon.lua"]: in function 'import'
mod_assets/scripts/init.lua:13: in main chunk
[string "Dungeon.lua"]: in function 'loadInitFile'
[string "GameMode.lua"]: in function 'loadDungeon'
[string "GameMode.lua"]: in function 'newGame'
[string "GameMode.lua"]: in function 'completionFunc'
[string "CinematicMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk


and definition for file in question, which runs great through editor.

defineSound{

name = "CryptAmbsound",

filename = "mod_assets/sounds/CryptAmb.wav",

loop = false,

volume = .8,

}

Re: Game not locating custom sound files

Posted: Thu Oct 04, 2012 6:13 am
by petri
The dat system is case sensitive: the filename has to exactly match on disk and in scripts. It's recommended that all filenames are in lower case to prevent problems like this.

Re: Game not locating custom sound files

Posted: Thu Oct 04, 2012 12:39 pm
by Komag
ah, good to know!

Re: Game not locating custom sound files

Posted: Fri Oct 05, 2012 12:33 am
by Soaponarope
Thank you, that was the problem. My name cases matched up, but for some reason Audacity saved some files as .WAV. This also needs to be lower case.

It's always these little things overlooked. :)

Re: Game not locating custom sound files

Posted: Fri Oct 05, 2012 5:27 am
by HaunterV
I'm having trouble getting the custom particle systems to work.