Posted March 14, 201312 yr Really I have no idea what is going on. I have about 38 custom sounds. All of them work 100% Last night I added 4 new sounds, but they never play. If I change the entity code to return one of the old sounds it plays fine If I rename one of the old sounds to the new sound name is does not play. If I rename the new sound to the old sound it plays fine. It's killing me whats going on Pre-init calls this @ForgeSubscribe() public void onSoundsLoaded(SoundLoadEvent event) { SoundManager manager = event.manager; for (String soundName : sounds) { manager.soundPoolSounds.addSound(soundName, getClass().getResource("/myresources/audio/" + soundName)); } } Relevant entity code protected String getLivingSound() { return "newsound"; }
March 15, 201312 yr Author Figured it out last night. It appears that a system process had a file lock on the new files. After a re-boot everything is working again.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.