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,
}
Game not locating custom sound files
Re: Game not locating custom sound files
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
ah, good to know!
Finished Dungeons - complete mods to play
- Soaponarope
- Posts: 180
- Joined: Thu Oct 04, 2012 3:21 am
Re: Game not locating custom sound files
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.
It's always these little things overlooked.
Re: Game not locating custom sound files
I'm having trouble getting the custom particle systems to work.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
