<EndOfLifeSound> and <ExplosionFlags> Variables not working properly during first game load

TheRebornAce shared this bug 36 hours ago
Submitted

I am creating a custom weapon mod with custom SFX. I am using the <EndOfLifeSound>(EOL) function to play the custom sound when the projectile misses the target and <ExplosionFlags> function to force play the same SFX when it does hit the target. However, when you first load up the game and open a world, the EOL sound does not play at all. But when you refresh the world (using F5 for example), then the EOL sound plays properly. I have checked with a vanilla SFX to ensure it was my own audio file but the same issue still occurs. I have also asked in the official Keen modding discord channel and it seems to be concluded as a bug from what was discussed.

Again, this issue only occurs when you FIRST load up the game and load up any world. After a world refresh, then the sound plays properly in whatever world you play on.

I have attached a zip file containing my custom SFX and a modded audio.sbc file. These two files are called out in an ammos.sbc file that modifies the EOL sound of the vanilla rocket.

Reproduction steps:

- Open the game

- Create a new world and load this mod

- Load the newly created world

- Once loaded in, create a platform with the large grid missile launcher. Create another platform across from it to shoot at.

- Fire the rocket launcher and watch it as it makes impact. There should be no impact sound.

- Save then refresh the world with F5. Repeat the firing process again and this time there should be an impact SFX.

- SFX will play properly until you close the game.

Please let me know if I may have missed something when modding a new custom SFX or if it is indeed some sort of bug. Thanks.

Leave a Comment
 
Attach a file
Access denied