Giter Site home page Giter Site logo

rkimber26 / cigar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cigarproject/cigar

0.0 1.0 0.0 19.47 MB

An enhanced open source Agar.io server implementation, written with Node.js.

License: Other

CSS 4.95% JavaScript 84.53% PHP 1.88% HTML 8.64%

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

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

Watchers

James Cloos 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.