![Flan's Mod Ultimate Stability Edition](https://media.forgecdn.net/avatars/thumbnails/228/314/256/256/637049574570422621.jpeg)
Need help with flashbang sound
kotmatross28729 opened this issue · 6 comments
I'm trying to make a flashbang grenade, but the game freezes when it explodes. The logs say:
[paulscode.sound.SoundSystemLogger:errorMessage:131]: Error in class 'CodecJOrbis'
[17:12:14] [paulscode.sound.SoundSystemLogger:errorMessage:132]: Ogg header not recognized in method 'readHeader'.
[paulscode.sound.SoundSystemLogger:errorMessage:131]: Error in class 'CodecJOrbis'
[17:12:14] [paulscode.sound.SoundSystemLogger:errorMessage:132]: Error reading the header
This happens if I try to make a sound for a grenade.
If I put the sound in assets/sounds and I will indicate it name in the grenade txt itself, then there will be no sound,
I added it to sounds.json (I don't think it's right) as a
"flashbang": {
"category" : "player",
"sounds" : [ "flansmod:flashbang" ]
},
And then the game just freezes when it explodes.
Can you tell me please how to add my own sounds?
Pack used:
Flashbang test.zip
I used a working ogg sound from another pack, renamed it and it to flashbang, and it doesn't freeze the game, however it still doesn't play
Okay, I'll check it out tomorrow. What's the name of the grenade you're editing?
That suggests there's something wrong with the sound file, could you try a different sound file? It needs to be .ogg encoded. I looked in your pack and flashbang.ogg has got the right extension, but it might not be encoded properly perhaps?
I've tested it out on my end with a sound that I know works (RPGShoot), and the sound plays correctly. So, not sure what's going on there.