Cortex Command

Cortex Command

Endless content for every part of the game
Built for modding from the ground up, Cortex Command supports a community of talent whose quality work can be enjoyed here: actors, items, vehicles, scenes, game modes, tech factions - you name it!
Learn More
Modding error
I've been trying my hand at modding. Baby steps, right now I'm simply re-configuring and re-spriting a copy of Ronin's AK-47 and finding out what values do what. Everything works great: the pixel art is compatible, index is in order, none of the values are invalid..

I wanted to change the firing sound of the weapon, found a nice short .wav file to use and altered the index to remove the old sounds and redirect it to the new .wav file. No matter what I do it just won't work. Cortex Command won't start and it'll state that it failed to load the new sound.
Do I need to do something to the .wav file to make it compatible?

FireSound = Sound AddSample = ContentFile FilePath = Base.rte/Devices/Rifles/(name of the new sound).wav //this line gives error EmptySound = Sound AddSample = ContentFile FilePath = Base.rte/Devices/EmptyClick3.wav ReloadStartSound = Sound AddSample = ContentFile FilePath = Base.rte/Devices/ReloadStart.wav ReloadEndSound = Sound AddSample = ContentFile FilePath = Base.rte/Devices/ReloadEnd.wav

Am I doing something wrong?
< >
Showing 1-3 of 3 comments
Borkorus 31 1 Aug, 2019 @ 11:44pm 
Try it another way around. Restore default line for firing sound, then name your new wav the same way like the old one, and then replace it. This should work for now. I do not see any other problem. Not in the code, at least. If it's not working too - try using an mp3 file for the sound. This should work.

Or perhaps your new file's name is too complicated? Try making it simple.
MaximDude 2 Aug, 2019 @ 2:55am 
Make sure your wav file is 16bit.
24bit wav will crash on loading.
Thanks for the suggestions guys, turns out MaximDude was right. You're life-savers!
< >
Showing 1-3 of 3 comments
Per page: 1530 50