Authentication on MC server written in Python doesn't work

I'm currently trying to make an online mode for my Minecraft server and I don't know why it's not working. I've done everything according to the wiki (https://minecraft.wiki/w/Protocol_encryption) but it doesn't help at all. Can anyone help? I'm using 1.21.5. The login function is in login.py. Can anyone help? The problem is that it always hangs on "Encrypting..." until it times out or gives an error like unknown packet, VarInt too large, etc.
Solution:
Good luck on your journey
Jump to solution
104 Replies
Proficode
ProficodeOPβ€’2w ago
I'm trying to make sort of own server code from 0
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Some ChatGPT code ain’t making up for a complete Minecraft server
Proficode
ProficodeOPβ€’2w ago
that's why I'm asking for help
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Why don’t you just toggle online-mode=true and use mojang’s api auto server
Proficode
ProficodeOPβ€’2w ago
on vanilla server? right?
Proficode
ProficodeOPβ€’2w ago
I want to implement some features that are not supported by vanilla servers.
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Like what Minecraft programming is done in Java, not Python
Proficode
ProficodeOPβ€’2w ago
That's why i'm asking for help
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
I obviously know that So what features specifically?
Proficode
ProficodeOPβ€’2w ago
Sort of a proxy with packet modification.
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Reverse proxy? What packet modification? What is your goal?
Proficode
ProficodeOPβ€’2w ago
I'm trying to allow players without official Minecraft to play it by watching ads.
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
We don’t support offline mode
Proficode
ProficodeOPβ€’2w ago
?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Cracked accounts = piracy Good luck getting help as everyone else here also doesn’t help offline/cracked servers
Proficode
ProficodeOPβ€’2w ago
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
β€œAllowing players without official Minecraft to play”
Proficode
ProficodeOPβ€’2w ago
Not my server
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
β€œI’m trying to”
Proficode
ProficodeOPβ€’2w ago
Yeah Not my server πŸ˜„
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
It doesn’t matter either way You’ve basically given up the opportunity to get help the moment that idea of allowing cracked accounts came into your mind
Proficode
ProficodeOPβ€’2w ago
... Wait Can I then make a backrooms server? With Online-Mode On? I didn't know it is illegal (due to Microsoft EULA)
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
I don’t see why not If your goal is that then I’m happy to help
Proficode
ProficodeOPβ€’2w ago
Sorry I didn't know it was illegal, yeah Can u help with authentication?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
No. Give up trying to let cracked accounts play
Proficode
ProficodeOPβ€’2w ago
πŸ˜„ I already told you i didn't wanted to do smth illegal.
Proficode
ProficodeOPβ€’2w ago
For minecraft accounts...
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
What is your goal? That’s still the question Why are you trying to fix something that’s not broken
Proficode
ProficodeOPβ€’2w ago
Now it has changed
Proficode
ProficodeOPβ€’2w ago
It is
Proficode
ProficodeOPβ€’2w ago
Now it's to make a minecraft backrooms server Because the previous one was illegal.
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
So why does it need this auth fix
Proficode
ProficodeOPβ€’2w ago
because it's not working
Carl-bot
Carl-botβ€’2w ago
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file. Where can I find the server log? Logs are stored in <server_directory>/logs/. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log file. Some providers have a separate page for logs and may hide the "logs" folder. On Aternos: β€’ Go to https://aternos.org/log/. On Minehut and server.pro: β€’ Go to the "files" tab in the left menu. β€’ Navigate to the root directory of your server. β€’ From there navigate to /logs/latest.log. What should I do with the log? β€’ First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing. β€’ If you got the latest.log file or created a .txt file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/. β€’ If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)
Admincraft Canned Responses
Proficode
ProficodeOPβ€’2w ago
No i'm trying to make own python server from 0
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
That I can’t help with Why??
Proficode
ProficodeOPβ€’2w ago
Why?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Why are you even doing this
Proficode
ProficodeOPβ€’2w ago
because it will be later easier to add new features to my minecraft server
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
The hell You know fabric forge and neoforge exists right
Proficode
ProficodeOPβ€’2w ago
I've managed state 1 (status state)
No description
No description
Proficode
ProficodeOPβ€’2w ago
What I have now
Proficode
ProficodeOPβ€’2w ago
Proficode
ProficodeOPβ€’2w ago
And it stays in Encrypting and then:
No description
Proficode
ProficodeOPβ€’2w ago
@π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ | Ping for reply Can u help?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
So you are trying to build your own Minecraft server
Proficode
ProficodeOPβ€’2w ago
backrooms, yeah
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
1. ChatGPT code isn’t gonna help, it’s like trying to build google (search engine) with no programming skills 2. Python is inefficient as fuck and will cause shitty performance 3. A proprietary ecosystem means everything have to be custom made. Plugins? Mods? Nah you need to make those too 4. Time, how much of your life do you plan to waste here?
Proficode
ProficodeOPβ€’2w ago
2. Its performance has long since improved, it looks more like a canonical meme than anything real. 4. A lot
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Okay how do you build google with no programming skills
Proficode
ProficodeOPβ€’2w ago
I already did one Sort of
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Using google’s api? Yeah that’s nothing
Proficode
ProficodeOPβ€’2w ago
No, what's that? in case u want to see what i mean: http://65.108.103.151:21773/p/ It has a small database but anyways
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
No im telling you it is not (to an extent) possible nor feasible
Proficode
ProficodeOPβ€’2w ago
We can use java, or C# it's possible many people did: Pumpkin, Py-mine, McPy, I'm just asking for help because i don't see what i did wrong
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Those many people have actual programming knowledge instead of using chatgpt And also pumpkin is not written in python
Proficode
ProficodeOPβ€’2w ago
Rust What do you mean? I've done it by myself
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
https://github.com/py-mine/PyMine-Server last update in December 2022, long deprecated
GitHub
GitHub - py-mine/PyMine-Server: A fast and easy to use, moddable, P...
A fast and easy to use, moddable, Python based Minecraft server! - py-mine/PyMine-Server
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
And mcpy is not even a Minecraft server Pumpkin is in rust
Proficode
ProficodeOPβ€’2w ago
It is
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Nvm found it, but β€œThis repository was archived by the owner on Aug 27, 2021. It is now read-only.” Also deprecated
Proficode
ProficodeOPβ€’2w ago
Where is the problem?) Can u help?)
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
No im not going to spend years of my life making a janky python Minecraft server that will probably not even end up being useful And the fact that you have zero coding knowledge (or close to zero) is not helping
Proficode
ProficodeOPβ€’2w ago
Heh, the fact that you don't understand the basics speaks for itself. Thanks anyways
Solution
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Good luck on your journey
DJDVS
DJDVSβ€’2w ago
Bro left
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Although mark my words, this will be in vein L If it ain’t broken, fix it anyways
DJDVS
DJDVSβ€’2w ago
Java β‰  Python
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
I didn’t even mention pumpkin is so experimental that most functions doesn’t even exist there And I still don’t see the need to do this Clearly I was talking to a brick
DJDVS
DJDVSβ€’2w ago
Once they knew that they would get no support, changed it from β€œmy server” to β€œnot mine” lmao
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
He can’t even properly describe what exactly is the issue We went from allowing offline accounts to play to him making a backrooms server to him trying to build a Python server software
DJDVS
DJDVSβ€’2w ago
And why couldn’t mods/plugins achieve these β€œpacket additions”
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
It sounds like he’s talking nonsense from the start to end Although it’s entertaining to read for whoever stumbles across this :minecraftTroll: Soooo my time well spent
DJDVS
DJDVSβ€’2w ago
Lol ty for the humor
Das_Grosse_J
Das_Grosse_Jβ€’2w ago
Hahaha thanks, very entertaining. I still don’t get it tho? What was he trying to do? Waste hundreds of hours talking to ChatGPT to make his own Minecraft server system that doesn’t even use the same language as MC, instead of just making a fabric server and installing a backrooms mod? Like was there a point?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
nope Β―\_(ツ)_/Β―
Das_Grosse_J
Das_Grosse_Jβ€’2w ago
It would have legit just been wasting his time FOR NO FISHING REASON that is I what I don’t get
DJDVS
DJDVSβ€’2w ago
Some people just think they are special by making a complete new software when it has low chances of working, or just choose the hardests paths in life. As Dominic said, "he’s talking nonsense from the start to end"
NieGestorben
NieGestorbenβ€’2w ago
I have to say one thing, despite a new server software probably not being useful in the slightest, its still a cool project and the building of it is more interesting than any usecase it might have. I am also writing my own server software in Java instead of Python. But you should have pretty good programming knowledge beforehand and not vibe code it.
Programmer / Nerd / Human
yeah I agree, it's a good challenge, I also tried writing my own server/client software in rust, the idea was to make a packet API or something I named "Rusty Packets", but after implementing like 5% of the packets in 1.21.1 I realized it's going to take forever, maintaining it is also nearly impossible
Programmer / Nerd / Human
the code is quite a lot
No description
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
guy literally cant just expect chatgpt to generate all of those
Faultier
Faultierβ€’7d ago
I’ve read through the entire conversation now and still don’t get what problem he was trying to solve
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
His problem is probably having too much time to waste
Jenkins
Jenkinsβ€’7d ago
🀣 it's a damn proxy, what he wanted to do was actually "smart" definitely doable, seems like you were the brick in all honesty frankly he was stupid for asking protocol help in this discord server yeah, chatgpt wasnt going to work but whatever
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
You’d better have read the entire thing
Jenkins
Jenkinsβ€’7d ago
i have
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
He’s trying to make the actual server software itself in Python
Jenkins
Jenkinsβ€’7d ago
well, that's not going to happen with chatgpt but it's very doable
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Bro was trying to vibe code it
Error110
Error110β€’7d ago
i feel bad for whoever hes going to ask next πŸ™ he couldnt even explain what he was doing I cant tell if he was making a add watching system for ALL players or only for offline ones
Jenkins
Jenkinsβ€’7d ago
only offline

Did you find this page helpful?