custom wav file not working?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
[SMUG]Ipecac
Posts: 28
Joined: Tue Oct 21, 2014 5:51 am

custom wav file not working?

Post by [SMUG]Ipecac »

Hey I found a post from GR1 that says i can:

playSound("mod_assets/sounds/sound_name.wav")

I put a wav file in there and called for it, but it says no sound exists? anyone know what I need to do here?
DrKojak
Posts: 23
Joined: Fri Oct 24, 2014 11:19 am

Re: custom wav file not working?

Post by DrKojak »

.wav sound files need to be 44,100 Hz, 16 bit and mono (you can do this in Audacity) otherwise they will not even load.
.ogg music files only need to be 44,100 Hz as far as i know. and can be stereo

http://grimwiki.net/wiki/Custom_Sound_Tutorial here's a handy tutorial/guide

the entry in your sounds text file (in the scripts folder) also needs to look like this
Image

Additionally, in-game you can create a 'sound' asset, then un-tick 'sound' in the inspector and have a trigger that, when pressed, it will activate the sound.
[SMUG]Ipecac
Posts: 28
Joined: Tue Oct 21, 2014 5:51 am

Re: custom wav file not working?

Post by [SMUG]Ipecac »

Ah okay. Ive avoided those .lua things! Thanks for the direction.
[SMUG]Ipecac
Posts: 28
Joined: Tue Oct 21, 2014 5:51 am

Re: custom wav file not working?

Post by [SMUG]Ipecac »

got it! Thanks :)
Post Reply