Git Product home page Git Product logo

Comments (5)

gekigek99 avatar gekigek99 commented on September 21, 2024 1

ok i think i solved it:

they updated the way they are communicating to the client...

the example I studied is: \x4A\x00\x48{"translate":"multiplayer.disconnect.outdated_client","with":["1.16.2"]}

this is the new updated way:

message := "hello" 
message = "{\"text\":\"" + message + "\"}"
message = bytes([len(message) + 2]) + bytes([0]) + bytes([len(message)]) + message.encode()

soon I will update both the scripts

from minecraft-server-hibernation.

najtin avatar najtin commented on September 21, 2024 1

ok i think i solved it:

they updated the way they are communicating to the client...

the example I studied is: \x4A\x00\x48{"translate":"multiplayer.disconnect.outdated_client","with":["1.16.2"]}

this is the new updated way:

message := "hello" 
message = "{\"text\":\"" + message + "\"}"
message = hex(len(message) + 2) + "\x00"+ hex(len(message)) + message
message = message.encode()

soon I will update both the scripts

This looks really nice. This is probably close to the way it worked in earlier versions, too. What i did is i saw that messages of a certain length work with the prefix and i went with that. Your solutions is much more sophisticated. 👍

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on September 21, 2024

updated the python script
updated the golang script

see release 5.6

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on September 21, 2024

Yes now that I checked carefully it always worked in that way...

still I don't understand why in the version 1.16.2 it was not working

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on September 21, 2024

see f821dad commit

from minecraft-server-hibernation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.