Code Monkey home page Code Monkey logo

Comments (12)

terrarier2111 avatar terrarier2111 commented on August 23, 2024 1

So we have to look at the advantages/disadvantages of each of these options
there is also a third option, which is to let the servers in the middle be able to handle capes better, by letting them know which cape you have (with a plugin message) and let them (with a custom plugin) send this info to the other leafish clients

from leafish.

PureTryOut avatar PureTryOut commented on August 23, 2024

That would indeed be fun to have, I know mods like Optifine have that to show Optifine patreon's.

I own 2 Minecon capes myself so would very much like to have the option to display those as well, so I guess the client-side option would be an override.

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

That would indeed be fun to have, I know mods like Optifine have that to show Optifine patreon's.

I own 2 Minecon capes myself so would very much like to have the option to display those as well, so I guess the client-side option would be an override.

But the best part is - we don't even need an own server to show the local cape to other clients, meaning the cape distribution is decentralized :)

from leafish.

PureTryOut avatar PureTryOut commented on August 23, 2024

Oh we don't? How does it send the info to other Leafish clients then?

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

Oh we don't? How does it send the info to other Leafish clients then?

As i stated it (ab)uses the client settings and can send 1 byte of information per client setting packet, the only down side is that the skin will rapidly change and it could be detected by anticheats as skin derp

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

There is one unset bit in each client setting packet so we can mark our packets by setting this bit to 1

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

But some hacked clients might send clientsettings packets with that bit as well, so we have to send a verification header constant first, i think a size of 2-4 bytes should do

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

another downside is, that we are effectively sending like 10-20 bytes to the server in the middle to transport 1 byte to another client, so theres ALOT of overhead

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

Oh we don't? How does it send the info to other Leafish clients then?

So the most basic explanation is, we are using the server in the middle to transport the information

from leafish.

PureTryOut avatar PureTryOut commented on August 23, 2024

Yeah that doesn't sound too great. Maybe a centralized server would be better after all. Clients would be able to announce themselves their and retrieve the other logged in players. But then that should definitely be made optional.

from leafish.

terrarier2111 avatar terrarier2111 commented on August 23, 2024

Yeah that doesn't sound too great. Maybe a centralized server would be better after all. Clients would be able to announce themselves their and retrieve the other logged in players. But then that should definitely be made optional.

But having a centralized server involves trust, money and other issues like DDOS protection and a monetary model which has to be worked out

from leafish.

PureTryOut avatar PureTryOut commented on August 23, 2024

I know 😢

from leafish.

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.