Giter Club home page Giter Club logo

netrex's People

Contributors

john-bv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

krip9gamer

netrex's Issues

RakNet - Add rakenet packets, and releated

You can't really have a server without a socket or packet manager, which is what raknet provides us with.

Overview:

  • Raknet should handle socket messages and connections, and the server should only ADD a player if a connection is verified from raknet
  • Raknet should handle unknown packets without calling any server events
  • Raknet should properly handle login queue's
  • Raknet should be able to properly time out connections based on their last packet sent.

API - Commands

A basic command api for Netrex

Overview

While I have implemented a "skeleton" api for this, it needs to be matured and must include:

  • A CommandSender class, to identify who sent the command
  • Ability to prepare commands before they are loaded to the CommandManager
  • Ability to handle permissions upon request in Command#prepare() without needing to check in onRun or onExecute
  • Ability to disable a command via Command#disable() or CommandManager#disableCommand()
  • Ability to toggle certain default commands in Netrex.yml
  • Ability to alias certain default commands in Netrex.yml

API - Plugins

Considered writing an API for plugins?

It could enable a port of Mavoric and would expand the possibilities of this even further.

RakNet - Fix zLib decompression

There is currently an issue with decompressing binary streams. I have a few solutions but heres the issue. zlib.unzip() is expecting a chunk that isn't incomplete or shorter than what was provided.
The first hack fix:

zlib.unzip(Buffer, { finishFlush: zlib.constants.Z_SYNC_FLUSH }, callback);

This creates our first issue where only the first few chunks are decompressed, causing lots of errors in the future

Another hack fix I plan do to is pipe the buffer directly and chunk the stream, then pass it through callback.

RakNet - Basic BinaryStream handling

Needs to have something that redirects a message to a handler which builds packets on ID. (not sure how i wanna do this lol)

Overview

  • Have a handler that handles incoming messages
  • Packet identity, identify packet and handle it based on what packet it is. (Maybe a packet map)
  • Handle packets as necessary

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.