Git Product home page Git Product logo

Comments (9)

mechoriet avatar mechoriet commented on September 20, 2024

I don't see where this project provides a "view distance api" your talking about.

So i don't see how this project can fix something that is not even provided?

from pandaspigot.

andreasdc avatar andreasdc commented on September 20, 2024

I don't see where this project provides a "view distance api" your talking about.

So i don't see how this project can fix something that is not even provided?

Don't you have viewDistance in EntityPlayer?
public int viewDistance; // PaperSpigot - Player view distance API

from pandaspigot.

mechoriet avatar mechoriet commented on September 20, 2024

with this simple plugin,

public final class Testplugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("test").setExecutor(this);
        // Plugin startup logic
    }
    
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if(sender instanceof Player) {
            Player player = (Player) sender;
            player.spigot().setViewDistance(Integer.parseInt(args[0]));
        }
        return false;
    }
}

after trying server/client to view-distance to 10 and tried 3 to 6 to 10 to 4

also random to 32 chunks then client to 32 and then back to 10 view-distance server
it kind of unloaded slow client side server was fast

but haven't found any "ghost" chunks

even with a second client breaking block outside the other 3 viewdistance client I haven't observed your behavior

from pandaspigot.

andreasdc avatar andreasdc commented on September 20, 2024

with this simple plugin,

public final class Testplugin extends JavaPlugin {

    @Override
    public void onEnable() {
        getCommand("test").setExecutor(this);
        // Plugin startup logic
    }
    
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if(sender instanceof Player) {
            Player player = (Player) sender;
            player.spigot().setViewDistance(Integer.parseInt(args[0]));
        }
        return false;
    }
}

after trying server/client to view-distance to 10 and tried 3 to 6 to 10 to 4

also random to 32 chunks then client to 32 and then back to 10 view-distance server it kind of unloaded slow client side server was fast

but haven't found any "ghost" chunks

even with a second client breaking block outside the other 3 viewdistance client I haven't observed your behavior

Try sending block change packet outside of view distance.

  1. Have client-side render of 10.
  2. Have server-side view distance to 6.
  3. Have player's view distance to 4.
  4. When you receive block change packet from outside of player's view distance and run away this chunk, when you go back to it it will have ghost blocks. You can repeat that to have even more ghost blocks.

from pandaspigot.

mechoriet avatar mechoriet commented on September 20, 2024

Or I do something wrong with your steps.
Or I don't get the same result then you.

video of the steps I did: https://www.youtube.com/watch?v=ice5FMWJ7Ug

also tried it by flying away even further same as video above with the changing chunks just outside the player view distance but not outside the client distance

from pandaspigot.

andreasdc avatar andreasdc commented on September 20, 2024

You are placing blocks normally not sending block change packets manually, also it has to be done pretty much at the same time. That's how I was bugging it.

from pandaspigot.

mechoriet avatar mechoriet commented on September 20, 2024

You are placing blocks normally not sending block change packets manually, also it has to be done pretty much at the same time. That's how I was bugging it.

If it was a floating block with a empty chunk and the block was the block that was touched by the packet then I found it and I also believe I found a solution for it that got patched in paper 1.12

~~ https://github.com/mechoriet/PandaSpigot/tree/pr/PacketPlayOutBlockChange-void-chunks ~~

Looks like this fixes that no floating block or empty void chunks on the edges of the view-distance

from pandaspigot.

andreasdc avatar andreasdc commented on September 20, 2024

I don't understand, but if this is the fix that's not it. https://github.com/mechoriet/PandaSpigot/blob/pr/PacketPlayOutBlockChange-void-chunks/patches/server/0064-Fix-block-break-desync.patch

from pandaspigot.

andreasdc avatar andreasdc commented on September 20, 2024

Bump

from pandaspigot.

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.