-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
problem with 1.21.1 #3492
Comments
"vanilla/spigot/paper paper 1.12.1" which one ?
…On Thu, Oct 31, 2024, 01:45 0x00sec ***@***.***> wrote:
- The FAQ
<https://github.com/PrismarineJS/mineflayer/blob/master/docs/FAQ.md>
doesn't contain a resolution to my issue
Versions
- mineflayer: 4.23.0
- server: vanilla/spigot/paper paper 1.12.1
- node: node.js 20
Detailed description of a problem
when trying to run the example code to learn about this im getting error
the bot will join my server but flot there give me an error then just leave
idk how i would fix then and the server is running local host
What did you try yet?
Did you try any method from the API?
Did you try any example? Any error from those?
Your current code
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
host: 'localhost', // minecraft server ip
username: 'Bot', // username to join as if auth is `offline`, else a unique identifier for this account. Switch if you want to change accounts
auth: 'microsoft' // for offline mode servers, you can set this to 'offline'
// port: 25565, // set if you need a port that isn't 25565
// version: false, // only set if you need a specific version or snapshot (ie: "1.8.9" or "1.16.5"), otherwise it's set automatically
// password: '12345678' // set if you want to use password-based auth (may be unreliable). If specified, the `username` must be an email})
bot.on('chat', (username, message) => {
if (username === bot.username) return
bot.chat(message)})
// Log errors and kick reasons:bot.on('kicked', console.log)bot.on('error', console.log)
Expected behavior
it should just join if im not mistaken and stay there till i make it do
more
Additional context
here is the error im getting
RangeError: Read error for undefined : The value of "offset" is out of range. It must be >= 0 and <= 46944. Received -620568453
at boundsError (node:internal/buffer:88:9)
at Buffer.readUInt8 (node:internal/buffer:254:5)
at Object.readVarInt [as varint] (/home/container/node_modules/protodef/src/datatypes/utils.js:68:22)
at Object.string (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:97:61)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3837:44)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3842:17)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3847:15)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3850:13)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3852:11)
at Object.packet_advancements (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3857:9) {
code: 'ERR_OUT_OF_RANGE',
field: 'play.toClient'
}
An error occurred: ERR_OUT_OF_RANGE - Deserialization error for play.toClient : Read error for undefined : The value of "offset" is out of range. It must be >= 0 and <= 46944. Received -620568453 RangeError: Read error for undefined : The value of "offset" is out of range. It must be >= 0 and <= 46944. Received -620568453
at boundsError (node:internal/buffer:88:9)
at Buffer.readUInt8 (node:internal/buffer:254:5)
at Object.readVarInt [as varint] (/home/container/node_modules/protodef/src/datatypes/utils.js:68:22)
at Object.string (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:97:61)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3837:44)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3842:17)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3847:15)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3850:13)
at eval (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3852:11)
at Object.packet_advancements (eval at compile (/home/container/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3857:9) {
code: 'ERR_OUT_OF_RANGE',
field: 'play.toClient'
}
—
Reply to this email directly, view it on GitHub
<#3492>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437RSAIKVWRK34CLIO4LZ6F4SZAVCNFSM6AAAAABQ5IVMWOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDKNRXGIYTINA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
paper |
but i have since fixed this problem |
Fixed how?
…On Fri, Nov 1, 2024, 12:57 0x00sec ***@***.***> wrote:
but i have since fixed this problem
—
Reply to this email directly, view it on GitHub
<#3492 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437TSBCR6FCQ7276DZ3TZ6NUC5AVCNFSM6AAAAABQ5IVMWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRG42TONRQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
How did you fix it? |
Having this same issue, how did you fix it? |
I have the same issue, are there any fixxes now? |
No please report any information you have (log, specific environment to reproduce) to help fix |
At this point it feels like I am absolutely chasing a ghost.. However, what I've noticed. One day the bot spits the following error, doesn't stay connected and doesn't respond to any commands:
The day after, it only spitted the following error, but stayed connected and just worked:
The day after that, it went to the behaviour like on the first day, not working. And today it's back to it's behaviour of the second day, only the 1 error and working again.. I'll ask the server owner for a full list of all the plugins, but at this moment it doesn't make any sense for me. |
Versions
Detailed description of a problem
when trying to run the example code to learn about this im getting error the bot will join my server but flot there give me an error then just leave idk how i would fix then and the server is running local host
What did you try yet?
Did you try any method from the API?
Did you try any example? Any error from those?
Your current code
Expected behavior
it should just join if im not mistaken and stay there till i make it do more
Additional context
here is the error im getting
The text was updated successfully, but these errors were encountered: