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

make it possible to hide warnings : unknown transaction confirmation #1117

Closed PnsDev closed 4 years ago

PnsDev commented 4 years ago

My console keep spamming warning along the line of this and I'm not sure what it means, could someone help me with this:

WARNING : unknown transaction confirmation for window 0, action 2871 and accepted false WARNING : unknown transaction confirmation for window 0, action 1966 and accepted false WARNING : unknown transaction confirmation for window 0, action 1001 and accepted false WARNING : unknown transaction confirmation for window 0, action 1863and accepted false WARNING : unknown transaction confirmation for window 0, action 1625 and accepted false

All I'm doing is reading chat. Nothing else.

Nurutomo commented 4 years ago

sometimes this happens to me too! I tried to hide it. but don't know where the message or error came from?

maybe this message or error came from prismarine-window

Pada tanggal Sen, 6 Jul 2020 20.32, Jose Casas notifications@github.com menulis:

My console keep spamming warning along the line of this and I'm not sure what it means, could someone help me with this:

WARNING : unknown transaction confirmation for window 0, action 2871 and accepted false WARNING : unknown transaction confirmation for window 0, action 1966 and accepted false WARNING : unknown transaction confirmation for window 0, action 1001 and accepted false WARNING : unknown transaction confirmation for window 0, action 1863and accepted false WARNING : unknown transaction confirmation for window 0, action 1625 and accepted false

All I'm doing is reading chat. Nothing else.

— 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/1117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOBD63TYCTDNFUNYNSDOETR2HG7BANCNFSM4ORTQARA .

rom1504 commented 4 years ago

We could hide it but it just means your server is doing incorrect things with inventory

On Mon, Jul 6, 2020, 18:08 Nurutomo notifications@github.com wrote:

sometimes this happens to me too! I tried to hide it. but don't know where the message or error came from?

maybe this message or error came from prismarine-window

Pada tanggal Sen, 6 Jul 2020 20.32, Jose Casas notifications@github.com menulis:

My console keep spamming warning along the line of this and I'm not sure what it means, could someone help me with this:

WARNING : unknown transaction confirmation for window 0, action 2871 and accepted false WARNING : unknown transaction confirmation for window 0, action 1966 and accepted false WARNING : unknown transaction confirmation for window 0, action 1001 and accepted false WARNING : unknown transaction confirmation for window 0, action 1863and accepted false WARNING : unknown transaction confirmation for window 0, action 1625 and accepted false

All I'm doing is reading chat. Nothing else.

— 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/1117, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEOBD63TYCTDNFUNYNSDOETR2HG7BANCNFSM4ORTQARA

.

— 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/1117#issuecomment-654329111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SMXM4EOB23OZ2UDVLR2HZJDANCNFSM4ORTQARA .

PnsDev commented 4 years ago

I'll just try to hide it, do you know where it comes from and how I could hide it? @rom1504

Karang commented 4 years ago

Here is the line: https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/inventory.js#L477 You can comment/remove it to hide the message.

rom1504 commented 4 years ago

You could add a if(!options.hideErrors) there

On Wed, Jul 29, 2020, 10:17 Karang notifications@github.com wrote:

Here is the line: https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/inventory.js#L477 You can comment/remove it to hide the message.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/1117#issuecomment-665511789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437VBECV6G6YNFNBDOQTR57LINANCNFSM4ORTQARA .

Oreoezi commented 2 years ago

My console keep spamming warning along the line of this and I'm not sure what it means, could someone help me with this:

WARNING : unknown transaction confirmation for window 0, action 2871 and accepted false WARNING : unknown transaction confirmation for window 0, action 1966 and accepted false WARNING : unknown transaction confirmation for window 0, action 1001 and accepted false WARNING : unknown transaction confirmation for window 0, action 1863and accepted false WARNING : unknown transaction confirmation for window 0, action 1625 and accepted false

All I'm doing is reading chat. Nothing else.

Certain anticheats send transactions. I'd assume it's watchdog in this case.

rom1504 commented 2 years ago

As you can see above the hideErrors option allows you to ignore warnings

Oreoezi commented 2 years ago

I know

INotSleep commented 2 years ago

I dont want to hide errors. Im nothing do with my inventory. Why it error comes?

U5B commented 2 years ago

Server has anticheat that sends invalid packets. Mineflayer warns that the server is being weird.

INotSleep commented 2 years ago

Vulcan. Hmmm. what a packets?)

U5B commented 2 years ago

You can add hideErrors: true to hide it. Other than that, you can't really prevent the error from showing.