PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.96k stars 904 forks source link

Prismarine-Chunk error on Server Join #518

Closed KittenPopo closed 4 years ago

KittenPopo commented 7 years ago

img_1968

When I attempt to start the bot on a server it immedietly stops with this error.

I have not modified any files, and was just testing out one of the example scripts.

rom1504 commented 7 years ago

What server version and kind (vanilla, spigot, etc) ?

On Sun, May 21, 2017, 21:00 KittenPopo notifications@github.com wrote:

[image: img_1968] https://cloud.githubusercontent.com/assets/28826980/26286537/ef596248-3e1c-11e7-8bde-4c31dbec4837.PNG

When I attempt to start the bot on a server it immedietly stops with this error.

I have not modified any files, and was just testing out one of the example scripts.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/518, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPN_sPlafQoPEMNGQpZlSOZjQNhhscjks5r8InjgaJpZM4NhsCb .

KittenPopo commented 7 years ago

It is spigot, and it seems to be a spigot error with further testing.

I am trying to work on a bot for survival servers using Mineflayer.

https://github.com/KittenPopo/SkillBot

jfowl commented 7 years ago

Also happens using the vanilla client 'open to LAN' server. (1.11 & 1.11.2) @rom1504

Error StackTrace:


~\node_modules\prismarine-chunk\src\pc\1.9\chunk.js:0

TypeError: "value" argument is out of bounds
    at checkInt (buffer.js:1031:11)
    at Buffer.writeUInt16LE (buffer.js:1089:5)
    at Chunk.eatPackedBlockLongs (~\node_modules\prismarine-chunk\src\pc\1.9\chunk.js:458:23)
    at Chunk.unpackChunkData (~\node_modules\prismarine-chunk\src\pc\1.9\chunk.js:371:31)
    at Chunk.load (~\node_modules\prismarine-chunk\src\pc\1.9\chunk.js:343:29)
    at addColumn (~\node_modules\mineflayer\lib\plugins\blocks.js:46:12)
    at Client.<anonymous> (~\node_modules\mineflayer\lib\plugins\blocks.js:168:5)
    at emitTwo (events.js:106:13)
    at Client.emit (events.js:191:7)
    at Parser.deserializer.on (~\node_modules\minecraft-protocol\src\client.js:102:12)```
rom1504 commented 4 years ago

fixed now