Giter Site home page Giter Site logo

iconquer's Introduction

== What is iConquer ==

iConquer is an attempt at creating an online C&C. While this is more a proof of concept and a field of experimentation than an actual, functional, clone, it is usable and I encourage any enthousiast to participate to this project.

It is based on Django and Twisted

== Installation notes ==

Sprites/Images: Because the sprites are taken from C&C, you need to extract them by yourself, or contact me directly to get them. The scripts to generate them is in scripts/ but it is not really user friendly.. Free sprites are welcome :)

You'll need django (1.1, best with 1.2) and twisted

For django, the only requirement is the registration plugin. 

To start the game, Setup your database, change the appropriate config in settings.py and run ./start_server

== Apache configuration ==

The game require special tricks, here is my working Virtual Host from which you can start:

<VirtualHost *:80>
        ServerName iconquer.lunasys.fr
        UseCanonicalName Off
        DocumentRoot /data/hosting/iconquer
        WSGIScriptAlias /game /data/hosting/iconquer/wsgi_handler.py

        RewriteEngine on
        RewriteRule   ^/$  /game/  [R]

	# All PUSH request
        ProxyPass /push/ http://localhost:8080/ keepalive=Off
        <Location /push/>
        SetEnv force-proxy-request-1.0 1
        SetEnv proxy-nokeepalive 1
        </Location>

	# All direct access to the running server
        ProxyPass /srv/ http://localhost:8081/ keepalive=Off timeout=2 retry=0
        <Location /srv/>
        SetEnv force-proxy-request-1.0 1
        SetEnv proxy-nokeepalive 1
        </Location>

        ProxyRequests Off
        <Proxy *>
        Order deny,allow
        Allow from all
        </Proxy>

        Alias /static/ /data/hosting/iconquer/static/
        <Location "/static">
                SetHandler None
        </Location>
        Alias /media/ /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/media/
        <Location "/media-admin">
                SetHandler None
        </Location>
        <LocationMatch "http*">
                SetHandler None
                Order Deny,Allow
                Deny from all
        </LocationMatch>
        ErrorLog /var/log/apache2/iconquer-error.log
        CustomLog /var/log/apache2/iconquer-access.log combined
</VirtualHost>

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.