Game not locating custom sound files
Posted: Thu Oct 04, 2012 5:15 am
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,
}
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,
}