Hey! A while ago, I've encountered a client-sided issue that was confirmed by Dylan. So the problem was that when I used LevelEventSoundPacket with disableRelativeVolume as true wasn't working at all. What disableRelativeVolume was supposed to do is that the sound that is playing should be able to be heard by every player with the same volume, regardless of the position. Here's the OS and the PM version I was using: PocketMine-MP: 3.19.1 PHP: 7.4 Server OS: Windows Game version: Win10 And this is the code PHP: $packet = new LevelSoundEventPacket();$packet->sound = 290; // ID of the sound$packet->disableRelativeVolume = true;$packet->position = $player;$player->sendDataPacket($packet); Any idea on how to fix these "client issues"? And for those who want my discord, please do add me because I made a new account for cleaning up things. minijaham#3259
What I've done is to send a audio packet to all the players with their location, this won't solve the location error though.
Hmm, We can use the broadcastLevelSoundEvent from Level PHP: $player->getServer()->getLevelByName("Hub")->broadcastLevelSoundEvent(new \pocketmine\math\Vector3(0,0,0), 290, -1, -1, false, true); Only problem is that the sound will not broadcast to the player if the chunks aren't visible to the player. And yes, this works with disableRelativeVolume.
I also did this but it's the same issue as above, It doesn't work if the player is outside the render distance. PHP: $packet = new \pocketmine\network\mcpe\protocol\LevelSoundEventPacket(); $packet->sound = 290; // ID of the sound $packet->disableRelativeVolume = true; $packet->position = new \pocketmine\math\Vector3(0,0,0); $player->handleLevelSoundEvent($packet); What are your thoughts @Primus xD
Hmm...I might just not be getting what client issues exactly are. Are they caused by the device? The OS? I've tried every possible workaround I can think of, but they were either super inefficient or failed.
They do work, except that the disableRelativeVolume isn't functioning the way I want it to. Does it work for you?
Hmm...could be. Considering that I purchased minecraft on my IOS device, and the same thing happened....