Wikia

Freeciv

FreecivWebClient

Talk0
589pages on
this wiki

Contents

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-screenshot-2013
AndreasrosdalAdded by Andreasrosdal

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. 

Development Edit

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:

To check out the code, use the following command:

git clone https://github.com/andreasrosdal/freeciv-web.git

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.
  • freeciv-web - a Java web application for the Freeciv web client. This application is a AJAX application which consists of HTML,  Javascript, images and JSP files which make up the application  viewed in each user's web browser.
  • freeciv-img-extract - extracts the images of the Freeciv tileset,  and generates a version for the web. This produces a tileset PNG  and Javascript. Run this to sync with the upstream Freeciv SVN  repository.
  • publite2 - a simple way to launch multiple civservers. 


This is also a useful resource for developers interested in Freeciv-web.

Freeciv-web overview page on github

Freeciv-web on github

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


Donations

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!

Advertisement | Your ad here

Photos

Add a Photo
585photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki