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.104 Replies
why is that even needed
I'm trying to make sort of own server code from 0
Some ChatGPT code ainβt making up for a complete Minecraft server
that's why I'm asking for help
Why donβt you just toggle online-mode=true and use mojangβs api auto server
on vanilla server? right?
Yes??
I want to implement some features that are not supported by vanilla servers.
Like what
Minecraft programming is done in Java, not Python
That's why i'm asking for help
I obviously know that
So what features specifically?
Sort of a proxy with packet modification.
Reverse proxy? What packet modification? What is your goal?
I'm trying to allow players without official Minecraft to play it by watching ads.
!offline
We donβt support offline mode
?
Cracked accounts = piracy
Good luck getting help as everyone else here also doesnβt help offline/cracked servers
https://discord.com/channels/348681414260293634/1361062295245029417/1361062295245029417 online mode help not offline mode (that was too easy)
βAllowing players without official Minecraft to playβ
Not my server
βIβm trying toβ
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
...
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
Sorry I didn't know it was illegal, yeah
Can u help with authentication?
No.
Give up trying to let cracked accounts play
π I already told you i didn't wanted to do smth illegal.
So what authentication
For minecraft accounts...
To what, watch ad?
https://discord.com/channels/348681414260293634/1361062295245029417/1361185975203795006
No a normal minecraft authentication
What is your goal? Thatβs still the question
Why are you trying to fix something thatβs not broken
Now it has changed
Yeah so what is it?
It is
How is it broken
Now it's to make a minecraft backrooms server
Because the previous one was illegal.
So why does it need this auth fix
because it's not working
Send logs
!logs
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
No
i'm trying to make own python server
from 0
That I canβt help with
Why??
Why?
Why are you even doing this
because it will be later easier to add new features to my minecraft server
The hell
You know fabric forge and neoforge exists right
I've managed state 1 (status state)


What am I looking at
What I have now
And what does it do
And it stays in Encrypting and then:

@ππππΎππΎπΈ | Ping for reply Can u help?
So you are trying to build your own Minecraft server
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?
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
I already did one
Sort of
Using googleβs api? Yeah thatβs nothing
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
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
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
It is
Nvm found it, but βThis repository was archived by the owner on Aug 27, 2021. It is now read-only.β
Also deprecated
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
Heh, the fact that you don't understand the basics speaks for itself.
Thanks anyways
Solution
Good luck on your journey
Bro left
Although mark my words, this will be in vein
L
If it ainβt broken, fix it anyways
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
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
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
Lol ty for the humor
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 Β―\_(γ)_/Β―
It would have legit just been wasting his time FOR NO FISHING REASON
that is I what I donβt get
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"
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.
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
the code is quite a lot

guy literally cant just expect chatgpt to generate all of those
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
π€£
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
i have
Heβs trying to make the actual server software itself in Python
well, that's not going to happen with chatgpt but it's very doable
Bro was trying to vibe code it
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
only offline