Giter Club home page Giter Club logo

cigar's Introduction

Protocol

Cigar

An unofficial Agar.io client used to run with Ogar based servers. Allows you to connect to an Ogar based server and have the abilities of the new protocol in a smaller and cleaner client.

Obtaining and Using

Due to parts of Cigar require the use of PHP, you will need to have a web environment with PHP for parts to work. So the project will have to be installed on a webserver or localhost.

You will need a webserver capable of running PHP only, also it cannot be run off file:// due to cross-origin blocks.

Now using Protocol 5

This version of the client is using the new-ish protocol 5. Now supporting larger maps sizes and many different upgrades. As well, you can now use hidden skin setting with the angled brackets, if the server supports it.

Recommended Servers

This client can be used with any server that is built with the same protocol and connect with it properly. However, the recommended server that we are building for and works best with Cigar to get all the features out of it with is MultiOgar-Edited.

Configuring Cigar

Adding More Server Dropdowns

The connection method on Cigar works through the function of

setserver("IP:PORT"); 

To add another server, you can call any element that has the main_out.js called to run the function and the server will change within the canvas. To add another dropdown that will switch to your server, add the following line inside of the existing dropdown box.

<option value="IP:PORT">NAME</option>

Replace IP:PORT with the ones that are corresponding with your server, you can also change the NAME to anything you like.

Changing Skins Folder

The skins folder can be changed to any folder that is located on your web server. If you wish to move the skins folder onto another domain, please do note that the checkdir.php file might stop working and that will break skins from showing up in game. To change the skin folder on the set webserver, you will need to update 2 files. Open /assets/js/main_out.js and edit the following line:

SKIN_URL = "./skins/"; // Skin Directory

Update the ./skins/ to the directory that the skins folder is located in. You can also back out into directories out of where the main_out.js is being called from by using /../ for each directory.

You also need to update one line inside of the checkdir.php file:

$images = glob('./skins/*.{png}', GLOB_BRACE);

Update the part where it says ./skins/, however make sure not remove *.{png} because without that the skins will not load anymore. (Also, make sure all the skin files are .png!)

Support

You can get support from the community and developers by adding issues or suggestions in the issues tab at this repository. However please do note, if you remove the backlink to Cigar on your project, we will NOT provide support for your website.

Contributing

Please see CONTRIBUTING.md for contribution guidelines.

License

Please see LICENSE.md.

cigar's People

Contributors

alexdicy avatar alexistm avatar darwinkel avatar dooglus avatar ephemerality avatar fxia22 avatar itzlevvie avatar kaiboisdumb avatar krzycho1024 avatar luka967 avatar lukkez avatar m-byte avatar m-byte918 avatar mrzack506 avatar mys avatar ryush00 avatar subv3rsion avatar vozhyk- avatar vram4 avatar yrsegal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cigar's Issues

how can i increase speed ?

hi all,
did you know how can i increase the cell (player) speed ?
because at the begining it's slow comparing to agar.io
thanks

Authentication (registered names)

We will need a protocol extension for this.

I think, authentication should go like this:

  1. client connects to the http server and authenticates
  2. if the client has been authenticated by the server, it receives a token
  3. on connection the client sends a third packet with the token when also sending packets 254 and 255
  4. the server checks whether the token has already been used, whether the origin of the websocket matches, age of the token, .... We should probably add some more security checks here...

Setting the nickname should go like this:

  1. the client sends the normal name set packet
  2. server checks whether the client has permission to use the name
  3. if the client has no permission, it either adds something to the name to show it's not authenticated or completely clears the name
  4. the server sends a 'please authenticate' packet to the client

New packets needed:

C2S: auth token (ID 253)

auth version, currently 0 (uint8)
token (2 * uint32)
name (uint16 charcodes)
'/0' (uint16)

S2C: error (ID 4)

error code (uint8)

error codes:

If there is a http 4xx error defined, use httpCode - 400
I.e. not authenticated turns into error 1.

How to make it one user per game.

A user keeps raiding by opening multiple tabs and connecting to the server. Is it possible to make it connect only once per IP? Thanks.

Error "npm ERR!"

root@agario:~# npm start
npm ERR! Linux 2.6.32-042stab108.2
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! path /root/package.json
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/root/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log

Did i miss something?

Where is Banned file?

Excuse me, can somebody show me where is files and config that related to banned system?
I need to implemented it with forairan/Ogar server's..
Because i don't know why i always got error while use this server..
And original Ogar's has deleted the banned system, i need it right now..

Thank you :)

When server running Experimental (No connection established)

I eddited some code to
create: function(masterServer,split) {
if (typeof masterServer.REGIONS[split[1]] == 'undefined') {
console.log(masterServer.getName()+" Invalid region name!");
return;
}

    var mode= parseInt(split[2]);

    // Adds
    masterServer.createServer(split[1],mode);
},

After that i created an server with gamemode 2 (succesfully)
But when i click gamemode Experimental gamemode it doesnt connect

Please look into it

Ty

Skype assistance

Please m-byte provide me your Skype so i cant ask you a couple questions, because a use windows VPs and i guess is harder than linux.

Hope you collaborate your Skype 👯

Error when no arg

Around CommandList.js Line 109

    // Check if int/float
    if (value.indexOf('.') != -1) {
        value = parseFloat(value);
    } else {
        value = parseInt(value);
    }

This code should check is "value" undefined

    if (typeof value != 'undefined') {
        // Check if int/float
        if (value.indexOf('.') != -1) {
            value = parseFloat(value);
        } else {
            value = parseInt(value);
        }
    }

white screen freez issue

hi all
@m-byte hi
i just notice that i got frezz screen like the screenshoot below on safari 5.1.7 (screen shoot 1 from pc)
also the game got white screen with chat pop up and nothing display
sans titre

Bandwidth Requirement

Hi all, Anyone knows the minimum bandwidth requirement for running a agar server and having about 50 users online without feeling laggy? thanks!

server configuration

hello, may i ask where can i edit the server configuration. like food mass, spawn numbers etc. btw im using .exe

Integrate a client

As cigar is a backronym of Completely Integrated oGAR, we should integrate a client into it. The two options are: agar-clone and Ogar-client. Ogar-client is not done yet, so we can either go with agar-clone or wait until we are done with Ogar-client.

mobile scaling problem ?

i have some problem when i lunch the game from a mobile (iphone 5s and iphone 6)
it look very bad and the lines are not drawed good
look to the picture attached
i think the problem is with scaling .... probably somewhere in main_out.js
any knows how to increase the scale on mobile
thanks
img_1757

Master server

Should we make the master server default server for Cigar?

An error with the master and game server

Hello! I am running the master and game server and i have noticed that both only run a master server?
I can run Cigar.exe but then i can't change gamemodes.
Please help.

How to add "Teams" or "Experimental" to work

I keep clicking them however it doesn't seem to work, it just sends me into the same server.
What do i type in the master console to get it working?
I mean can someone explain to me how to do it? This has confused me...

suggestion

@m-byte
is it possible to add index.html method to server and client ?
because i don't find a way to webhost this project
thanks

config file doesn't seem to work in windows (7)

The game server seems to run fine, and most commands work, but the cigar.exe program doesnt seem to want to load the masterserver.ini file. I tried just changing the gamemode as well as different options with no luck at all.

Rename to cigar

There are still lots of files and classes named Ogar. Should we rename them or leave them in their current state?

Updates Following

Is the Download Pack always updated, or we have to download the pack then add the commits updates?

Slow mode for chat?

Is there a way of slowing down the chat? Users are flooding the chat and crashing clients.

mobile lagg

@m-byte
thats work perfect with new update everyone should access here 88.167.14.2
but the game still lag on mobile (i have good internet)
and can you ajust joystick control on mobile and make it like original ? thanks

Message/Chat delay?

Is there any way to implement a message/chat delay so clients can only send messages every x seconds to stop spam?

Chat flood

Players can flood the chat and lag the server.
How can we put a limit of messages per second?
Thx!

Reporting an issue

When you press W in experimental red viruses, it will go through them.

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.