node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

Bungeecoord support

Open tmfksoft opened this issue 8 years ago • 10 comments

I've tried using your out of the box example in the readme to connect to my 1.11.2 server running BungeeCord and Paper.

However BungeeCord kicks the client for not being 1.11.2, Is there something I'm missing?

tmfksoft avatar Jan 29 '17 23:01 tmfksoft

Edit to that, It appears specifying the client version in options works (I dug through the code to find that though)

However now I can't connect due to this:

/home/thomas/mc_bot/node_modules/minecraft-protocol/dist/transforms/framing.js:112 } else throw e; ^

Error: Deserialization error for play.toClient : Read error for name : 84 is not in the mappings value at ProtoDef.readMapper (/home/thomas/mc_bot/node_modules/protodef/dist/datatypes/utils.js:43:34) at ProtoDef.read (/home/thomas/mc_bot/node_modules/protodef/dist/protodef.js:102:31) at /home/thomas/mc_bot/node_modules/protodef/dist/datatypes/structures.js:85:32 at tryCatch (/home/thomas/mc_bot/node_modules/protodef/dist/utils.js:83:12) at tryDoc (/home/thomas/mc_bot/node_modules/protodef/dist/utils.js:90:10) at /home/thomas/mc_bot/node_modules/protodef/dist/datatypes/structures.js:84:5 at Array.forEach (native) at ProtoDef.readContainer (/home/thomas/mc_bot/node_modules/protodef/dist/datatypes/structures.js:79:12) at ProtoDef.read (/home/thomas/mc_bot/node_modules/protodef/dist/protodef.js:46:25) at ProtoDef.read (/home/thomas/mc_bot/node_modules/protodef/dist/protodef.js:102:31)

tmfksoft avatar Jan 29 '17 23:01 tmfksoft

Is 0x54 (==84) a custom packet of bungeecord/paper ?

rom1504 avatar Jan 30 '17 00:01 rom1504

Just asked the devs of both, they insist its nothing core to bungeecord or paper (Spigot fork). Is there a way I can probe at it and figure out what it is?

tmfksoft avatar Jan 30 '17 00:01 tmfksoft

@tmfksoft You can enable DEBUG. That will print the packets to the console. With this, we might be able to pinpoint where the problem is. To do this, when you start the client, put the DEBUG environment variable to minecraft-protocol.

roblabla avatar Jan 30 '17 00:01 roblabla

Gets as far as here:

minecraft-protocol { effectId: 578635009, minecraft-protocol location: { x: 6155401, y: -743, z: 24671266 }, minecraft-protocol data: 975356583, minecraft-protocol global: true } +0ms events.js:160 throw er; // Unhandled 'error' event ^

Nothing else past that packet, continues with the trace

tmfksoft avatar Jan 30 '17 00:01 tmfksoft

@tmfksoft could you gist/pastebin the entire logs ?

roblabla avatar Jan 30 '17 00:01 roblabla

Hope this helps :P http://paste.ubuntu.com/23890877/

tmfksoft avatar Jan 30 '17 00:01 tmfksoft

same 84 here https://github.com/PrismarineJS/mineflayer/issues/526#issuecomment-315612025

rom1504 avatar Jul 17 '17 13:07 rom1504

Getting this error when connecting to cosmicpvp.com. Tried specifying the version to a lower number (1.9), but getting a unexpected end of file instead. Might be related to #462

ryoid avatar Jul 20 '17 21:07 ryoid

https://github.com/PrismarineJS/node-minecraft-protocol/issues/336

rom1504 avatar Jul 24 '17 11:07 rom1504