Sound replacement
I have trouble replacing sounds.
I did everything possible and it won't work:
All I want to do is replace game loss/victory sound.
There are two folders in my mod folder, lua and sound.
Lua contains GUIGameEnd.lua file with these lines edited:
Client.PlayMusic("sound/gameoverman.fev/victory")
Client.PlayMusic("sound/gameoverman.fev/" .. (message.win and "victory" or "loss"))
Sound folder contains:
gameoverman.fev
gameoverman.soundinf
gameoverman_bank00.fsb
soundinf is:
/common/victory
3672
/common/loss
3672
Fev and fsb were created using FMOD, sound files are located exactly as in NS2.fev
But no matter how hard I try, it still plays default music.
Am I missing something?
I did everything possible and it won't work:
All I want to do is replace game loss/victory sound.
There are two folders in my mod folder, lua and sound.
Lua contains GUIGameEnd.lua file with these lines edited:
Client.PlayMusic("sound/gameoverman.fev/victory")
Client.PlayMusic("sound/gameoverman.fev/" .. (message.win and "victory" or "loss"))
Sound folder contains:
gameoverman.fev
gameoverman.soundinf
gameoverman_bank00.fsb
soundinf is:
/common/victory
3672
/common/loss
3672
Fev and fsb were created using FMOD, sound files are located exactly as in NS2.fev
But no matter how hard I try, it still plays default music.
Am I missing something?
Comments
This example is from Rio's tutorial : forums.unknownworlds.com/discussion/128106/how-to-make-a-mod-for-natural-selection-2t
I've spent another 2 hours trying this and that, nothing would work... I thought replacing one sound file would be much easier job, eh.
I think I failed at basic mod setup stage >_<
Later it turned out that I have to replace PlayMusic with StartSoundEffect. And my mod is finally done.
But I guess this mod will never pass consistency check, right?
Good job though.