Freeciv Web Client Edit
The Freeciv web client is a version of Freeciv which can be played online in a web browser, and can be found on http://play.freeciv.org/
Freeciv-web is an open-source turn-based strategy game. It’s built entirely in HTML5 and features in-depth game-play and a wide variety of game modes and options. Your goal is to build cities, collect resources, organize your government, and build an army, with the ultimate goal of creating the best civilization. You can play online against other players (multiplayer) or play by yourself against the computer.
The source code of Freeciv-web is developed in Github using a git distributed development model. This means that you can easily fork one of the main development repostories on github, and implement your improvement, and send a pull request to get your change accepted. These are the main git repositories for freeciv-web:
- http://github.com/andreasrosdal/freeciv-web (actively developed)
- http://github.com/cazfi/freeciv-web (actively developed)
- add your fork here!
To check out the code, use the following command:
Bug reports Edit
Please submit bugreports on the Freeciv Gna project page , using the "freeciv-web" category for bugs. cazfi posted some notes in May 2012 on the state of the codebase and possibilities of reconciling it with the upstream codebase.
More info about the source code Edit
Freeciv-web consists of five main software modules:
- freeciv - a fork of the main Freeciv C client and server.
- freeciv-proxy - a HTTP proxy which allows web client users to connect to Freeciv civservers. The proxy is a HTTP and WebSocket server, and proxy between web browsers and civservers.
- publite2 - a simple way to launch multiple civservers.
This is also a useful resource for developers interested in Freeciv-web.
Setting up Freeciv-web locallyEdit
** Install freeciv-web on Ubuntu Linux: 1. Install the system requirements. 2. Create mysql database called 'freeciv_web' Import mysql dump into a MySQL database from: /publite2/mysqldump.sql.bz2 cd ~/freeciv-build git clone https://github.com/andreasrosdal/freeciv-web.git cd freeciv-web sudo cp publite2/nginx.conf /usr/local/nginx/conf/ cd freeciv svn co svn://svn.gna.org/svn/freeciv/trunk@22812 freeciv ./apply_patches.sh cd freeciv ./autogen.sh --enable-fcweb make sudo make install cd .. sudo cp data/fcweb/ /usr/local/share/freeciv/ -rf cd .. cd freeciv-img-extract/ sh setup_links.sh sh sync.sh cd .. cd freeciv-proxy sh sync.sh cd .. cd freeciv-web/src/main/webapp/meta/php_code/ cp local.php.dist local.php vim local.php cd ../../WEB-INF/ cp resin-web.xml.dist resin-web.xml vim resin-web.xml cd ../../../../ sh build.sh cd ../scripts/ ./start-freeciv-web.sh start browser, and goto http://localhost
Freeciv-web runs on a server which is hosted based on funding from donations to the Freeciv project . So if you like this project, then please support it by donating!