Giter Site home page Giter Site logo

bzflag-networking.php's Introduction

hello, I'm a senior frontend engineer currently working in Higher Ed at UC Merced

previously, i was a Stack Overflow engineer leading accessibility and frontend refactoring efforts, both of which were not a financial priority for the company since my efforts died with my being laid off

i try to maintain a number of open sources but my time is limited nowadays,

bzflag-networking.php's People

Contributors

adwitiya-singh avatar allejo avatar

Watchers

 avatar  avatar  avatar

Forkers

adwitiya-singh

bzflag-networking.php's Issues

Inconsistency in method name to get player ID

If we have a packet of type MsgAddPlayer, the method to get the player ID is called getPlayerIndex(). While the same method is called getPlayerId() if the packet is of type MsgRemovePlayer or MsgPlayerUpdate

Add support for yielding replay packets

Right now, this library reads all of the packets and stores them in memory. For larger replay files, this can become problematic since we'll run into out-of-memory issues.

We need a way to be able to yield packets one at a time since we don't really need the full replay as an object.

MsgPlayerUpdate player state incorrect with original rrlog

With rrlog, we extract the following packet information.

2019/01/01 00:00:00 (408 ms): MsgPlayerUpdateSmall
  player: allejo [0]
    state: 0x0001  order: 1583
      pos:    ( -78.840,  -22.800,   30.000)
      vel:    ( -14.990,    0.020,    0.000)
      angle:  -0.005   =   -0.264 deg
      angvel: -0.785   =  -44.977 deg/sec

However, with our unpacking the same packet is expanded to the following JSON:

{
  "playerId": 0,
  "state": {
      "position": [
          -517.44,
          -588.9000000000001,
          -184.22000000000003
      ],
      "velocity": [
          97.22,
          5.12,
          0
      ],
      "azimuth": -1.1537198437601777,
      "angularVelocity": -4.1000000000000005,
      "physicsDriver": null,
      "userSpeed": null,
      "userAng_Vel": null,
      "jumpJetsScale": null,
      "sounds": null
  },
  "packetType": "MsgPlayerUpdate",
  "timestamp": "2019-01-01T00:00:00+00:00"
},

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.