Jump to content

Recommended Posts

Posted

Hello, I try to play a sound when ablock is activated and nothing happens. I hear nothing and I get this errorcode

 

Error in class 'LibraryLWJGLOpenAL'
    Sound buffer null in method 'loadSound'
Error in class 'LibraryLWJGLOpenAL'
    Source '6234ecc8-b453-46d5-8d3f-e459ba6b4e45' was not created because an error occurred while loading aerosteam:sounds/activatetransaltituder.ogg
Error in class 'LibraryLWJGLOpenAL'
    Source '6234ecc8-b453-46d5-8d3f-e459ba6b4e45' not found in method 'play'

 

and in sounds.json I have

{
    "activatetransaltituder": {"category": "master","sounds": [{"name": "activatetransaltituder","stream": false}]}
}

 

and the block code of relevans is

 

						if (playerX < x+addX+1 && playerX > x+addX-1 && playerZ < z+addZ+1 && playerZ > z+addZ-1){
							System.out.println("Within");
							player.setPositionAndUpdate(playerX, height +1 , playerZ);
							world.playSoundAtEntity(player, "aerosteam:activatetransaltituder", 1, 1);
						}

I have checked it is located in my \forge\src\main\java\assets\aerosteam\sounds folder, what am I doing wrong?

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.