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

setControlState('forward', true) getting kicked for fly hacking #572

Closed
duralakun opened this issue Jul 30, 2017 · 4 comments
Closed

setControlState('forward', true) getting kicked for fly hacking #572

duralakun opened this issue Jul 30, 2017 · 4 comments

Comments

@duralakun
Copy link

I just want to move forward with the bot (not fly), i tried it on my local machine and it worked fine with:

setControlState('forward', true)

but when i try the same on an online server (with many players) i get instantly kicked for fly hacking.

How does the server know the difference between the bot moving and a player? Is there a way around this?

@KittenPopo
Copy link

It seems it could be 1 of 3 things:

  1. The bots ControlState method moves too quickly, which sensitive anticheats can pick up on and assume you are speed hacking.

  2. The bot moves very suddenly with no ease, something players cannot do. The anticheat senses this and suspects fly hacking.

  3. You are moving slightly upwards or over something, that you would normally fall down onto, and the anticheat thinks you are flyhacking. This might happen if you are moving on half slabs.

The anticheat can't tell the bot moving v.s. the player, as the bot uses the same imput as Minecraft when you hit the "W" key. So it must be something irregular causing the anticheat to kick you.

@duralakun
Copy link
Author

duralakun commented Aug 1, 2017

Thank you KittenPopo !
It was number 3.
When I did the test the bot was staying on carpet. Now i logged in back without the carpet and this works. The server no longer kicks the bot for fly hacking.

I guess this can be fixed by changing something in physics.js, i will try to understand how it works.

@duralakun
Copy link
Author

duralakun commented Aug 1, 2017

I just did some tests and the bot treats carpets like solid blocks! Meaning it will just walk 1 block above them, ofcourse it gets kicked for fly hacking ^^

@rom1504
Copy link
Member

rom1504 commented Aug 1, 2017

#228

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

3 participants