-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bot does not connect #75
Comments
Hi, |
What version is the minecraft server? From the line There could also be a problem with encryption. But you said that you have tried offline server. Then there is no encryption |
i was in version 1.20.1, and the id changes a lot is not the same always
|
This sounds like a race condition then. What server brand are you running? vanilla, paper, spigot? Maybe I can reproduce the problem if I have this info. |
I tried in my localhost and in a paper server, both same issue, sometimes the bot connects when I try a lot of times, but it does nothing an disconnects after a few seconds. And about the online mode it's false idk if the "open to lan" uses online-mode: true, but the server is in online-mode: false edit: I'm building from source with the latest commits, the nuget one works. |
Typical for a race condition. Sadly I can not reproduce this. So I can not fix it. We need to add a lot of logs to be able to see whats going on. But logging might take so much time that the race condition gets healed. Race conditions are tough. The old version (from nuget) had the login process less optimized which might made the race condition so unlikely it worked :D What system are you running this on? Processor? OS? Release or Debug Build? DotNet Version (exact)? Currently there is already logging for when packets are sent and received. So please set the global LogLevel to Verbose (aka. Trace) and send the log file. This might already be enough to find the problem |
Im running in my system Windows 10 with an Intel I5 10400 using the release version and DotNet 8 The logs shows this with "trace" level:
running it for a second time shows:
Third time:
|
It seems that encryption handling is broken. I will look into this. But in the mean time you can try using an offline bot (on an offline server of course) and see if that works for you. Because encryption is only used in online mode. Thanks for reporting. |
I fixed the problem. You can use the main branch of my forked repo. It should work now. |
i tried with your repo and got the following error
|
It will work on 1.20.4. |
Ok so the encryption problem is gone. |
Oh we double fixed it :D I created #76 |
now it works good guys |
tried every version offline and online
The text was updated successfully, but these errors were encountered: