Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Error: unsupported protocol version #4

Open
joex92 opened this issue Nov 20, 2022 · 4 comments
Open

Error: unsupported protocol version #4

joex92 opened this issue Nov 20, 2022 · 4 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@joex92
Copy link

joex92 commented Nov 20, 2022

$ ts-node src/index.ts
C:\Users\joex92\NatsirtMC\node_modules\minecraft-protocol\src\createClient.js:28
  if (!mcData) throw new Error(`unsupported protocol version: ${optVersion}`)
                     ^
Error: unsupported protocol version: 1.18.2
    at Object.createClient (C:\Users\joex92\NatsirtMC\node_modules\minecraft-protocol\src\createClient.js:28:22)
    at Object.createBot (C:\Users\joex92\NatsirtMC\node_modules\mineflayer\lib\loader.js:95:35)
    at Object.<anonymous> (C:\Users\joex92\NatsirtMC\src\index.ts:11:22)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Module.m._compile (C:\Users\joex92\NatsirtMC\node_modules\ts-node\src\index.ts:1371:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Object.require.extensions.<computed> [as .ts] (C:\Users\joex92\NatsirtMC\node_modules\ts-node\src\index.ts:1374:12)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
error Command failed with exit code 1.

how do I add support for new versions?

@tristancamejo tristancamejo added bug Something isn't working dependencies Pull requests that update a dependency file labels Nov 21, 2022
@tristancamejo
Copy link
Owner

You’ll need to update mineflayer, I completely forgot this project existed; I may get around to reworking this since I made this when I was so young to programming.

@joex92
Copy link
Author

joex92 commented Nov 21, 2022

lol yeah, I noticed.... I actually looked up mineflayer and I'm now testing the library 🙃
I'm still learning node, so I didn't know how to update your project to make it work with the latest version of every module... 😅

@tristancamejo
Copy link
Owner

tristancamejo commented Nov 22, 2022 via email

@joex92
Copy link
Author

joex92 commented Nov 22, 2022

🤔 I mean, I noticed... that's why in the end I didn't try to update your code, although I still forked it just in case...
anyways a rework would be appreciated...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants