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

1.9.2 chunk loading issue #434

Closed
reverofevil opened this issue Jun 27, 2016 · 5 comments
Closed

1.9.2 chunk loading issue #434

reverofevil opened this issue Jun 27, 2016 · 5 comments

Comments

@reverofevil
Copy link

reverofevil commented Jun 27, 2016

assert.js:90
  throw new assert.AssertionError({
  ^
 AssertionError: 61696 === 31589
    at addColumn (C:\Users\user\Desktop\mineflayer\lib\plugins\blocks.js:85:1
2)
    at Client.<anonymous> (C:\Users\user\Desktop\mineflayer\lib\plugins\block
s.js:188:5)
    at emitTwo (events.js:106:13)
    at Client.emit (events.js:191:7)
    at Parser.<anonymous> (C:\Users\user\Desktop\mineflayer\node_modules\mine
craft-protocol\dist\client.js:101:16)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at readableAddChunk (C:\Users\user\Desktop\mineflayer\node_modules\readab
le-stream\lib\_stream_readable.js:210:18)
    at Parser.Readable.push (C:\Users\user\Desktop\mineflayer\node_modules\re
adable-stream\lib\_stream_readable.js:169:10)
    at Parser.Transform.push (C:\Users\user\Desktop\mineflayer\node_modules\r
eadable-stream\lib\_stream_transform.js:123:32)
@reverofevil
Copy link
Author

I see four first fields of this format at offset 0.

@rom1504
Copy link
Member

rom1504 commented Jun 27, 2016

Mineflayer currently only support 1.8

@reverofevil
Copy link
Author

@rom1504 Oh, so I'll have to fix it :/

I didn't find other way than to create a new type in a protocol description and to call bot._client.deserializer.proto.parsePacketBuffer('chunkSection', args.data). Am I doing it right?

@rom1504
Copy link
Member

rom1504 commented Jun 28, 2016

See PrismarineJS/prismarine-chunk#19 (comment)
The plan is to update prismarine-chunk for 1.9 and to use it in mineflayer.
It's not quite done yet though, if you can help on that it would be nice !

@rom1504 rom1504 mentioned this issue Sep 12, 2016
@rom1504
Copy link
Member

rom1504 commented Sep 12, 2016

closed in favor of #449

@rom1504 rom1504 closed this as completed Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants