Git Product home page Git Product logo

Comments (12)

ThomasOM avatar ThomasOM commented on July 17, 2024

Investigating

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

Seems to be caused by the new pipeline now after 1.20.2

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

Seems to be caused by the new pipeline now after 1.20.2

I was wrong, very stupid mistake... b20ceff

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

Feel free to reopen if issue still persists

from pledge.

SamB440 avatar SamB440 commented on July 17, 2024

I now seem to get a bunch of DecoderException's when using the frame pinger, but the normal clientpinger works fine

        this.pledge = Pledge.getOrCreate(this); // Create or get when already registered to another plugin
        framePinger = pledge.createFramePinger(1, 200);
        this.getServer().getPluginManager().registerEvents(this, this);
        Bukkit.getScheduler().scheduleSyncRepeatingTask(this, () -> {
            for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
                framePinger.getOrCreate(onlinePlayer);
            }
        }, 0L, 1L);

from pledge.

SamB440 avatar SamB440 commented on July 17, 2024

I think it must be something to do with the additional pipeline handlers, but I don't know enough about these for what the issue could be

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

I'm able to reproduce this, seems to be a different issue

from pledge.

SamB440 avatar SamB440 commented on July 17, 2024

@ThomasOM
Reverting the position of the handlers to 2.0 behaviour worked for me: EmpireWar@b4a6cf2

channel.pipeline()
            .addAfter("prepender", "pledge_queue_handler", queueHandler)
            .addAfter("encoder", "pledge_queue_primer", queuePrimer);

from pledge.

SamB440 avatar SamB440 commented on July 17, 2024

Actually just moving the queue handler is sufficient. The primer needs to be last otherwise the filter doesn't work. It also needs to check if there is a login packet to prevent a ping being sent before the join game packet which breaks on proxies.

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

@SamB440
Thanks for the investigation, I'll make sure to test moving the queue handler after the prepender instead

from pledge.

SamB440 avatar SamB440 commented on July 17, 2024

I believe MessageQueueHandler also needs its QueueMode set to ADD_LAST initially as it seems it gets stuck on LAST during login otherwise, skipping some packets that should be wrapped

from pledge.

ThomasOM avatar ThomasOM commented on July 17, 2024

See: 78a3648.
I tested this on 1.20.4 and it seems to work just fine 👍

Also made sure to use ADD_LAST for MessageQueueHandler the moment the login packet is received so you don't miss out on any packets

from pledge.

Related Issues (10)

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.