Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft PE Bedrock not working #642

Open
Erani0 opened this issue Aug 22, 2022 · 5 comments
Open

Minecraft PE Bedrock not working #642

Erani0 opened this issue Aug 22, 2022 · 5 comments
Assignees
Labels
Bug This request does fix a bug. v3

Comments

@Erani0
Copy link
Contributor

Erani0 commented Aug 22, 2022

I have a Minecraft Bedrock server and can not query the status other online testers work without problems even Minecraftr Java Works only the Minecraft BEdrock Does not work

can someone help me

@TitusKirch
Copy link
Collaborator

I can confirm that there is a problem with the Minecraft BE. In the test with GameQ there was no result, in the test via node-gamedig there was the expected result.

Here is the node-gamedig protocol for Minecraft BE:
https://github.com/gamedig/node-gamedig/blob/master/protocols/minecraftbedrock.js

@TitusKirch TitusKirch added Bug This request does fix a bug. v3 labels Aug 22, 2022
@bumbummen99
Copy link
Collaborator

PE does extend Minecraft what is just Gamespy3, apparently Bedrock does use Raknet if i dont get that wrong:
https://github.com/xPaw/PHP-Minecraft-Query/blob/24de69ac33c254aa6ea88cbc4ac2a212ae1b9a86/src/MinecraftQuery.php#L201

@Erani0
Copy link
Contributor Author

Erani0 commented Aug 28, 2022

The test that was made for PE does not come from a Bedrock server. Do you have any idea how we can solve this so that Bedrock works?

@bumbummen99
Copy link
Collaborator

bumbummen99 commented Aug 28, 2022

The test that was made for PE does not come from a Bedrock server. Do you have any idea how we can solve this so that Bedrock works?

Implementing Raknet as in the linked sources 😄 So we need a Raknet protocol class. We need some documentation for this as the mentioned libraries only use magic i.e. a hardcoded command to get the status.

Gamedig:

Buffer.from('00ffff00fefefefefdfdfdfd12345678', 'hex'), // Magic

xPaw

// hardcoded magic https://github.com/facebookarchive/RakNet/blob/1a169895a900c9fc4841c556e16514182b75faf8/Source/RakPeer.cpp#L135
$OFFLINE_MESSAGE_DATA_ID = \pack( 'c*', 0x00, 0xFF, 0xFF, 0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0xFD, 0xFD, 0xFD, 0xFD, 0x12, 0x34, 0x56, 0x78 );

@Austinb
Copy link
Owner

Austinb commented Mar 28, 2023

Has this issue been resolved with the pr #657?

@Austinb Austinb self-assigned this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This request does fix a bug. v3
Projects
None yet
Development

No branches or pull requests

4 participants