Jump to content

New sounds don't play even if they are copies of existing sounds


sbcroix

Recommended Posts

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";
}

 

 

 

 

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.