Code Monkey home page Code Monkey logo

multi-ogar-edited-unlimited's Introduction

CLOSED

Ogar game server with fast and smooth vanilla physics and multi-protocol support.

Closed for now. I have no time to fix it.

Current version: 1.0.3

Project Info

Language License

MultiOgar code based on Ogar code that I heavily modified, and will continue to update. Almost all physics and protocol code were rewritten and optimized. The OgarProject owns Ogar, and I do not claim it as mine! Original Ogar found here

The goal is to make good and smooth physics and cleanup the code.

Ogar Server Tracker

You can found active Ogar servers on http://ogar-tracker.tk It updates server information in realtime with no need to refresh the page.

If you want to include your server in the list. Just install the latest version of MultiOgar server and enable server tracking with serverTracker = 1 in gameserver.ini

If you have other server and want to include it in the list, just insert the code to ping ogar-tracker.tk into your server. You can found example in MultiOgar source code: https://github.com/Megabyte918/MultiOgar-Edited/blob/master/src/GameServer.js#L1350-L1373

Screenshot

MultiOgar console:

Screenshot

Version 1.2.8:

  • 1000 bots, 500 viruses, 1000 foods, map 14142x14142
  • Works very-very smooth (with a little slower speed, but it will not be noticed by user).
  • CPU load: 14% (x4 core)
  • Memory usage: 70 MB

Screenshot

Install

Windows:

Method 1:

  • Run the win-Install_Dep.bat file. (It'll close automatically once it's done)
  • Run run\win-Start.bat

Method 2: You will not be able to use the restart command if you use this method Start command line and execute from MultiOgar folder.

npm install

and run the server:

cd src
node index.js

Linux:

# First update your packages:
sudo apt-get update

# Install git:
sudo apt-get install git

# Install node.js:
sudo apt-get install nodejs-legacy npm

# Clone MultiOgar:
git clone git://github.com/Megabyte918/MultiOgar-Edited.git

# Install dependencies:
cd MultiOgar
npm install

# Run the server:

Method 1:

cd run
sudo bash lin-Start.sh

Method 2: You will not be able to use the restart command if you use this method

cd src
sudo node index.js

Clients

This lists Ogar clients and server trackers that I found on internet.

###Ogar server trackers

URL Description
http://ogar-tracker.tk Ogar tracker
http://ogar.mivabe.nl/master MivaBe, tracks a lot of servers
http://c0nsume.me/tracker.php c0nsume.me server tracker

Now you can allow MultiOgar to be listed on a server tracker. Just set serverTracker = 1 in the gameserver.ini, and your server will appear on these pages: http://ogar.mivabe.nl/master , http://c0nsume.me/tracker.php If you don't want to include your server to tracker list, just set serverTracker = 0 and the server will not ping the server tracker.

###Ogar clients Just replace 127.0.0.1:443 in the url to the server IP and port to play.

URL Protocol Description
http://agar.io/?ip=127.0.0.1:443 8 Vanilla
http://ogar.mivabe.nl/?ip=127.0.0.1:443 early 5 MivaBe, pretty smooth, custom graphics (anime)
http://old.ogarul.io/?ip=127.0.0.1:443 4 OgarUL, old vanilla style
http://c0nsume.me/private4.php?ip=127.0.0.1:443 5 Vanilla style
http://astr.io/?ip=127.0.0.1:443 9 Extension like
http://alis.io/?ip=127.0.0.1:443 5 Extension like

What's new:

  • Popsplit Gamemode with Popsplit Viruses. Gamemode 4
  • Added mobile physics
  • Added support for secure websocket connections (TLS)
  • Fixed mass decay
  • Added ejectSizeLoss
  • Added sub-net ban feature (use ban xx.xx.xx.* or ban xx.xx.*.* to ban entire sub-network)
  • Added performance optimizations, now up to 700 bots with no lags at all
  • Fixed bug when some cell split/eject were shown with delay for some clients
  • Added a lot of protocol optimizations, now server works with no lags at all even with 64 connected players
  • Added server version, now you can check if your MultiOgar code is fresh
  • Significant performance improvement and more smooth physics
  • Added protocol optimizations to reduce lags on cell multi split
  • Fixed pop-split behavior
  • Fixed cell-split order, now split-run works ok
  • A little performance improvement for split/eject
  • Fixed min mass to split/eject
  • Fixed mass-limit behavior
  • Added chat player commands /skin and /kill (to change skin, just type /skin %shark in the chat)
  • Added scramble level 3 (anti-bot/anti-minimap protection), unsupported on some clients (unfortunately include vanilla, ogar.mivabe.nl works ok)
  • Massive perfromance improvement & reduce network traffic
  • Split behavior - fixed;
  • Protocol code - optimized;
  • Massive performance improvement with quad-tree lookup;
  • Split/Eject - physics code rewritten;
  • Player speed - physics code rewritten;
  • Cell remerge - physics code rewritten;
  • Cell collision - physics code rewritten;
  • View area - code rewritten;
  • Spectate - code rewritten;
  • Mouse control and cell movements - physics code rewritten;
  • Border calculations - rewritten;
  • Border bouncy physics - fixed and improved;
  • mainLoop - cleaned;
  • Added support for different protocols (4, early 5, late 5, 6, 7, 8);
  • Added automatic mouse message type recognition;
  • Added chat support;
  • Added anti-spam protection;
  • Added skin support (use name "< shark > Fish", remove space);
  • Color generator replaced with hsv model;
  • Memory leaks - fixed;
  • Performance improved and optimized
  • Added support for server tracker ogar.mivabe.nl/master

Most of the physics code from the original Ogar were rewritten. The physics engine in MultiOgar is pretty close to the old vanilla physics.

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.