Git Product home page Git Product logo

ogarii's Introduction

shield to Agar.io Private Servers guild

OgarII

Your friendly agar.io private server recreation.

  • It supports all current agar.io protocol versions.

  • It supports handling multiple worlds, all within one instance. Be wary that you can still use up the one CPU core node.js is running on.

  • It has a minimal memory footprint, and strictly uses uWebSockets for networking.

  • The code uses JSDoc to specify types. Understanding what the code does is down to your understanding of English.

Notes

  • Ask all your questions over on the Agar.io Private Servers Discord guild.

  • Before connecting from agar.io you will need to do core.disableIntegrityChecks(true) in the console.

Running

  1. Make sure you have node.js version 8 or greater.

  2. Make sure you have a C++11 compliant compiler for building uWebSockets.

    • If you're on Windows, npm install -g windows-build-tools.
    • If you're on GNU/Linux, use your package manager to install a supported C++ compiler such as GCC.
  3. Clone / download the repo.

  4. npm install in /.

  5. cd ./cli/

  6. node index.js

Configuring

  • After your first run, OgarII will drop two files in cli/ / working directory: log-settings.json and settings.json.

  • To change how OgarII runs, modify cli/settings.json.

  • To change what gets logged, modify cli/log-settings.json.

Expanding

  • To create your own commands, check out src/commands/CommandList.js on the command API. To add it to the CLI use ServerHandle.commands.register, and for chat commands use ServerHandle.chatCommands.register.

  • To create your own gamemodes, inherit src/Gamemode.js's Gamemode abstract class, modify event handling to your wish, then add it with ServerHandle.gamemodes.register before the handle starts.

  • The ServerHandle class is standalone, which means that you can completely ditch the cli/ folder, require("./src/ServerHandle.js") and do whatever you want with it. OgarII is also available as an npm package for this exact purpose.

ogarii's People

Contributors

draganstamenkovic avatar luka967 avatar mkgamesdev avatar superop535 avatar

Watchers

 avatar

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.