Code Monkey home page Code Monkey logo

Comments (3)

caojohnny avatar caojohnny commented on August 20, 2024

2017-07-16_18 01 41

Notch's client says that he's on the ground but this client says that he is below the ground :/

from trident.

caojohnny avatar caojohnny commented on August 20, 2024

I can't seem to replicate this issue anymore, although I will leave it open because player's head rotation is not correctly set by PlayOutSpawnPlayer...

from trident.

caojohnny avatar caojohnny commented on August 20, 2024

Was able to get the bug to reproduce. I'm thinking that since the client is notified of relative movement after the position is set, the player may be spawned with lower coordinates than the client would otherwise have know about:

player1.position = 0,64,0
player1.position = 0,63,0
player1.position = 0,62,0
player2.sendPacket(PlayOutSpawnPlayer(player1) @ 0,62,0)
player2.sendPacket(PlayOutPos(player1)) delta = 0,-1,0
player2.sendPacket(PlayOutPos(player1)) delta = 0,-1,0
player2.sendPacket(PlayOutPos(player1)) delta = 0,-1,0

So although player1 thinks that he's at 0,62,0, player2 thinks that he's at 0,59,0 because the player spawned before the delta packets were sent by Entity#setPosition(Position)

from trident.

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.