Game not locating custom sound files

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Game not locating custom sound files

Post 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,

}
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Game not locating custom sound files

Post 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.
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Game not locating custom sound files

Post by Komag »

ah, good to know!
Finished Dungeons - complete mods to play
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: Game not locating custom sound files

Post 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. :)
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: Game not locating custom sound files

Post by HaunterV »

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
Post Reply