Giter Site home page Giter Site logo

loboere / ogar-unlimited Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeidiot737/ogar-unlimited

0.0 1.0 0.0 4.08 MB

A heavily modified version of private agario server software Ogar which has more features such as op, more commands, gamemodes, skins,and more so you can have more control.

License: Other

Batchfile 0.29% JavaScript 99.47% Shell 0.25%

ogar-unlimited's Introduction

Ogar unlimited - The Next Generation Ogar

Build Status Join the chat at https://gitter.im/AJS-development/Ogar-unlimited GitHub issues GitHub forks GitHub stars Plugin MS

A fully functional open source Agar.io server implementation, written in Node.js by the big ajs development team. Ogar Unlimited is designed to be used with the latest Agar.io client. It is basically what it says in the title, Ogar, except its functionality is unlimited!

This Modified copy was created to help those who want to open their server to the public. I will add more features as time goes

(Sorry but all client clones of agar.io are ILLEGAL, thus we are not making those. You must use agar.io/?ip=[ip]) NEVER MIND, MONEYCLIP RUINED THE GAME

NOTE: FOR THOSE WHO CANT USE THE INSTALL DEPENDANCIES SCRIPT, YOU MUST DO NPM INSTALL AFTER YOU CD INTO THE SRC FOLDER

Highlight features in this modified copy

  1. PMSG command, to periodically send a message (no need for admin to be online to explain rules)
  2. OP , to do stuff in game WITHOUT a illegal clone client, see below
  3. MSG, FMSG commands
  4. Max IP Connections
  5. Troll command ;)
  6. More GameModes
  7. Ban, Unban, Ban List (with revolutionary ban technique, no lag, no DDoS attacks)
  8. Autoban option (see config.ini or advconfig.ini)
  9. More control (config.ini and advconfig.ini)
  10. and other features such as merge or nojoin or kick/killrange
  11. Better physics (ejected mass and split and virus)
  12. Colortext command (Changes console output color and style)
  13. Live Console (see gameserver.ini, where a live console appears) NOTE: this is way different that Ogarserv's Console
  14. Restart. Make it restart automatically or restart manually, Only works if use windows start script
  15. skins, to use custom skins, do and then your name. for example <spy> lol will give you spy skin with name of lol use [website] to use a custom skin from a website (you need to use a url shortener though)
  16. customskins (see custom skins)
  17. Minions: you can create minions like agario powerups. press q to enter minion control mode (a b will appear next to your name). w = eject, space = split. press q again to exit
  18. Banlist file
  19. Opbyip
  20. Database free high score keeper
  21. pcmd command to do periodic commands
  22. range command for bulk commands
  23. easy verify system as anti bot mesure (config.ini or advconfig.ini)
  24. mousefilter as a anti bot measure
  25. plugins. Add gamemodes and commands easily! (See example plugin and template plugin)
  26. uniban. A pre-made banlist of already known bad ips
  27. garbage collection. prevent memory leak.

Note:

Please note that this is updated very frequently and you should check for updates every week. I added an update system but It needs to be initialized by you (because I don't think it is the right thing to do, updating without your consent). Also you may copy this and modify it just please give some credit to the hard working dev team, that is all I care. Another note is that I am sometimes terrible in my grammar (I still cannot spell potato out loud). If there is an issue, please notify me. If there is something you want in this, just make a pull request.

Purchased Ogar UL?

If you've purchased a copy of Ogar UL, you just got scammed. It is open source which means it is FREE. yes FREE! So if you paid any money, well, too bad

How do I install plugins from the official library?

the official library is here: https://github.com/AJS-development/OgarUL-Plugin-Library

To install any plugins from the library, first do plugin available and remember the name of the plugin you want. then do plugin install [name] and you are set!

How do I use other plugins?

To use a plugin, simply download the folder and drag it into the plugins folder in src or use the plugin add command. To use the plugin add command, the plugin must have a files.txt file. then click on that file, click raw, and then copy the url. Then do plugin add [url] [pluginname] and it will even reload automatically for you. Thats it! example, doing plugin add https://raw.githubusercontent.com/AJS-development/OgarUL-Plugin-Library/master/devtools-plugin/files.txt devtools will add a plugin called devtools to your plugins.

How do I create a plugin? Is there Documentation?

This is the fun part, creating your own plugins. There is an example plugin you should look at and there is a template plugin. Currently, there is no documentation, but will be soon in the wiki

Easy Verify

For those of you who have trouble with minions and such, this feature is for you. Currently, there is no program that can get through all of ogar unlimited's filterrs anddd features, but in some future, someone might be able to crack the other anti bot mesures. So we created easy verify, a currently foolproof system that filters out bots. To turn on, turn verify to 1 in config. Then when a player spawns, he is frozen at a spot and is given a 3 digit code. Then that player presses w to kill himself and types in the code in the nickname box. Afteword, when pressing play again, it shows a success message. Press w again to play.

Minions

You use minions by doing minion [yourid] [amount] [minionname]. Then, they will start following your mouse. You can control those minions by useing the q key. If you press it, a B will appear next to your name. then controls will be normal except now ejecting and splitting will happen on your minions not you. you can reenter normal control mode by pressing q again. You can disable minions by doing minion [id] in console for just you or do minion destroy and it will remove all minions.

OP(2.4.5) - Guide,

You use OP by first setting who has op by doing op [id] in console. Then, that player can use the op features in game by pressing q. Then a c will appear next to your name. If you press w in this state, it gives you 100 more mass. If you press space in this state, you will be able to rejoin instantly. You will find out that if you press q again, two c's will appear next to your name. if you press w in this state, you shoot viruses. If you press space in this state, you shoot tiny things (almost invisible) that if someone eats, their mass is reduced by 100. Then, if you press q again,3 c's will appear.press w with 3c's, you shoot a virus, but whoever who eats it will be trolled :). If you press space with 3 c's the person who eats the virus will explode.If you press q again, 4 cs will appear and if you press w, you will shoot a virus tha kills people and space, it shoots a kick virus. You can then exit op by pressing q again after doing an action or by pressing Q until the three c's will dissappear (so that you can normally split and shoot mass).

  • Note: names (CC's) dont work when player name is blank and it doesnt work on Virus and Leap gamemodes

Custom skins (guide) Wont work, moneyclip

You can use custom skins by putting them in customskins.txt the format is [shortcut] [skin] for the skin field, to use a URL skin, you do :http://url DO NOT FORGET TO GET REID OF THE S IF IT IS HTTPS OR FORGET TO PUT A : BEFORE.To use an agario skin, use %skinnameTo use that skin in game simply do <skinsshortuct> and then your name,

You can see a more detailed guide on the [wiki] (https://github.com/AJS-development/Ogar-unlimited/wiki/Skins-and-skin-shortcuts)

Obtaining and Using

As Ogar Unlimited is written in Node.js, you must have Node.js and its "ws", and "request" module installed to use it (unless you are using the Windows binary). You can usually download Node using your distribution's package manager (for *nix-like systems), or from the Node website. To install the "ws" and "request" module that is required, open up your system command line (cmd for windows, terminal for mac) and type "npm install ws" and do "npm install request". To see a detailed guide go to the [Installation guide] (https://github.com/AJS-development/Ogar-unlimited/wiki/Installation) in the wiki

(You can install and use Ogar unlimited on windows very quickly. First click InstallWebSocket.bat in src. Then wait (it takes a while), then click Start.bat and you're off! The next time you start the server, you only have to click Start.bat)

(Binarys are also available in Releases)

Currently, Ogar listens on the following addresses and ports:

  • *:88 - for the stats server (I would use it to track servers)
  • *:443 - for the game server

Please note that on some systems, you may have to run the process as root or otherwise elevate your privileges to allow the process to listen on the needed ports. If you are getting an EADDRINUSE error, it means that the port required to run Ogar is being used. Usually, Skype is the culprit. To solve this, either close out skype, or change the serverPort value in gameserver.ini to a different port. You will have to change your connection ip to "127.0.0.1:PORT"

Once the game server is running, you can connect (locally) by typing agar.io/?ip=127.0.0.1:443 into your browser's address bar.

Configuring Ogar

Use "gameserver.ini" to modify Ogar's configurations field. Player bots are currently basic and for testing purposes. To use them, change "serverBots" to a value higher than zero in the configuration file. To add/remove bot names, edit the file named "botnames.txt" which is in the same folder as "gameserver.ini". Names should be separated by using the enter key.

Custom Game modes

Ogar has support for custom game modes. To switch between game modes, change the value of "serverGamemode" in the configurations file to the selected game mode id and restart the server. The current supported game modes are:

Id Name
0 Free For All
1 Teams
2 Experimental (As of 6/13/15)
8 Experimental v2
3 Timed FFA
4 Virus Off (no virus's)
7 Shrinking FFA, Shrinks the game as time passes
10 Tournament
11 Hunger Games
12 Zombie Mode
13 Team Z
14 Team X
20 Rainbow FFA - Hint: Use with "setAcid(true)" ( Use this in your Google Console)
5 UnlimitPVP - where you split can split indefinitly and rejoin instantly - 1v1 game (created by me)
6 UnlimitFFA - same as above (unlimited pvp) except in ffa (created by me)
15 NoCollision Teams
16 NoCollision TeamZ
17 NoCollision TeamX
18 Leap - Where you leap instead of split, made by Ogarplus
22 BlackHole

Console Commands

The current available console commands are listed here. Command names are not case sensitive, but player names are.

  • Help
    • Shows List Of Commands
  • Ophelp
    • Shows how to use OP
  • Plugin [command]
    • manage plugins, reload, list, delete, add, available, install, update.
  • Announce
    • Starts the high score announce feature
  • Verify [command] [id]
    • Verifies/reverifies a player .doing verify reverify 1 forces 1 to verify again
  • Minion [id] [amount] [minion names]
    • creates minions. to turn off, for a player do minion [id]. to destroy all minions do minion destroy
  • Update
    • gets current version of ogar unlimited and replaces the old with the new. Do update botnames to only update botnames or update skin to only update skins
  • Reset
    • Destroys everything and starts from scratch.
  • Range [start] [end] [command] [commandattr]
    • Does bulk commands. ex range 1 10 freeze would freeze players between 1 and 10
  • Pcmd [delay] [repeattime] [command] [commandat...]
    • Periodic commands
  • Opbyip [command] [ip]
    • Allows you to use the opbyip feature. the commands are add, remove, list, clear , record . This allows you to be automatically op based on your ip
  • Changelog [page]
    • Gets changelog from the servers
  • Explode [id]
    • explodes player
  • Blind [id]
    • Blinds/unblinds a player
  • Hide [id]
    • Hides/unhides a player
  • Split [ID] [Count]
    • Splits a player
  • Shrink [amount]
    • Shrinks the game (amount is optional)
  • Enlarge [amount]
    • Enlarges the game (amount is optional)
  • Freeze [id]
    • Freezes a player
  • Spawnmass [id] [mass]
    • sets a players spawnmass. set to 0 to return to normal value
  • Speed [id] [mass]
    • sets a players base speed. set to 0 to return to normal value
  • Colortext [color]
    • Changes console Color and Style (blue, green,red,yellow,bold,reset,dim,white, help)
  • Team [id] [team (r,g,b)]
    • Changes a players Team (you might have to split to see the changes though)
  • Resetvirus
    • Turns special viruses (from OP's) into normal ones
  • whitelist [IP]
    • whitelists an IP
  • Unwhitelist [IP]
    • Unwhitelists an IP
  • whitelist
    • Lists whitelist
  • Clearban
    • Clears ban list
  • Ban [IP]
    • Bans an IP and sends a MSG. Do ban record to record ban
  • Unban [IP]
    • Unbans an IP
  • Rainbow [id]
    • gives player rainbow effect
  • Kickbots [number]
    • Kicks a number of bots (leave field blank and it will kick all bots)
  • Killbots [number]
    • Kills a number of bots (leave field blank and it will kick all bots)
  • Restart [minutes]
    • Restarts the server after a number of minutes or if you leave min blank, restarts immediatly
  • Banlist
    • Lists banned IPs
  • Clearban
    • Clears ban list
  • Op [ID]
    • Makes player OP
  • Dop [ID]
    • De-OPs a player
  • Rop
    • Resets op
  • Pfmsg [delay] [duration] [x to repeat] [msg1] [msg2] [etc...]
    • Periodically sends a force message (seconds)
  • Spfmsg []
    • stops pfmsg
  • Pmsg [delay] [duration] [x to repeat] [msg1] [msg2] [etc...]
    • Periodically sends a message (seconds)
  • Spmsg []
    • stops pmsg
  • Troll [id]
    • You figure out this one, Its a suprise!
  • Fmsg [message 1] [message 2] [etc...]
    • Forces players to read a message, This is done by changeing leaderboard to msg, freezing players, and change their name temporarily
  • Msg [message1] [message2] [etc...]
    • Changes the leaderboard to a message for a short time
  • kick/killrange/ban [Start] [End]
    • Kicks/kills/bans in a range (eg: killrange 1 10 will kill players whos ids are between them)
  • Nojoin [id]
    • Makes person unable to join
  • Merge [id]
    • forces user to merge
  • Addbot [Number]
    • Adds [Number] of bots to the server. If an amount is not specified, 1 bot will be added.
  • Board [String 1] [String 2] [String 3] ...
    • Replaces the text on the leaderboard with the string text.
  • Boardreset
    • Resets the leaderboard to display the proper data for the current gamemode
  • Change [Config setting] [Value]
    • Changes a config setting to a value. Ex. "change serverMaxConnections 32" will change the variable serverMaxConnections to 32. Note that some config values (Like serverGamemode) are parsed before the server starts so changing them mid game will have no effect.
  • Clear
    • Clears the console output
  • Color [Player ID] [Red] [Green] [Blue]
    • Replaces the color of the specified player with this color.
  • Exit
    • Closes the server.
  • Food [X position] [Y position] [Mass]
    • Spawns a food cell at those coordinates. If a mass value is not specified, then the server will default to "foodStartMass" in the config.
  • Gamemode [Id]
    • Changes the gamemode of the server. Warning - This can cause problems.
  • Kick [Player ID]
    • Kicks the specified player or bot from the server.
  • Kill [Player ID]
    • Kills all cells belonging to the specified player.
  • Killall
    • Kills all player cells on the map.
  • Mass [Player ID] [Number]
    • Sets the mass of all cells belonging to the specified player to [Number].
  • Name [Player ID] [New Name]
    • Changes the name of the player with the specified id with [New Name].
  • Playerlist
    • Shows a list of connected players, their IP, player ID, the amount of cells they have, total mass, and their position.
  • Pause
    • Pauses/Unpauses the game.
  • Reload
    • Reloads the config file used by the server. However, the following values are not affected: serverPort, serverGamemode, serverBots, serverStatsPort, serverStatsUpdate.
  • Status
    • Shows the amount of players currently connected, time elapsed, memory usage (memory used/memory allocated), and the current gamemode.
  • Tp [Player ID] [X position] [Y position]
    • Teleports the specified player to the specified coordinates.
  • Virus [X position] [Y position] [Mass]
    • Spawns a virus cell at those coordinates. If a mass value is not specified, then the server will default to "virusStartMass" in the config.

Contributing

Just make a pull request or make your own copy

Things that I dont want you to copy (copying it to your own file or fork)

  1. No-Lag antibot measures
  2. OP
  3. minions
  4. smart bot/despawn
  5. easy verify
  6. Periodic things (pmsg, pcmd, etc..)
  7. mousefilter
  8. plugins

#####anything else, if you improved it, you dont have to give us credit, or else if you just copied, you must give us credit

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.