Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ATE is a test of an online adventure game engine. It is based on a internal language editable with colored boxes and arrows.
JavaScript Lua Shell
branch: old-PHP

This branch is 904 commits ahead, 101 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
database
private
public
qad @ f25d1eb
wiki @ f6b7043
.box
.gitignore
.gitmodules
LICENCE
README.md
database.sh

README.md

ATE is a test of an online adventure game engine. It is based on a internal language editable with colored boxes and arrows.

Requirements

ATE needs:

  • a WEB server (tested with [NGINX][nginx] and [Apache2][apache])
  • PHP5.3+,
  • the PHP CURL extension,
  • a KyotoTycoon noSQL server.

Developers needs:

  • the PHP XDEBUG extension,
  • PHP5.3+ CLI.

Development Environment

Checkout the code:

git clone git@github.com:ATEpeople/ATE.git
git submodule init && git submodule update
cd qad
git submodule init && git submodule update

Compile KyotoTycoon and KyotoCabinet:

Download and extract last source package from KyotoCabinet sources and KyotoTycoon sources.

sudo aptitude install build-essential zlib1g-dev
cd kyotocabinet
./configure --prefix=$HOME
make && make install

sudo aptitude install liblua5.1-0 liblua5.1-0-dev lua5.1
cd kyototycoon
./configure --prefix=$HOME --with-kc=$HOME --enable-lua
make && make install

Update your ~/.bashrc to access the KyotoTycoon binary:

export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
export PATH=$HOME/bin:$PATH

Install PHP CLI, CURL and XDEBUG extensions.

sudo aptitude install php5-curl php5-xdebug php5-cli

Launch the Development Kyoto Tycoon server:

./database.sh &
tail -f database/ktserver.log

Run environment tests:

./private/setup -c

Run all units tests:

./private/setup -u

Compile gettext translation messages:

./private/setup -l

WEB Server Configuration

List of ENV needs to be setted from the WEB server side:

  • locale : Should be a valide locale accepted by the application (listed in the config file).
  • kyoto_dsn : The DSN for the KyotoTycoon server.

To use nice URL, some rewrite rules must be created on the web server side and some configuration entries must be update in the application side.

When using Nging:

location /ATE/public {
    rewrite ^(/ATE/public/)tpl/(\w+-\w+/\w+/\w+)$ $1index.php?$2 last;
    rewrite ^(/ATE/public/)api/(\w+/\w+)$ $1api.php?$2 last;
    rewrite ^(/ATE/public/)(\w+-\w+)/(\w+)$ $1index.php?$2/root/$3 last;
    index index.php;
}

define('dynamic_url', root_url);
define('full_url', 'http://'.getenv('HTTP_HOST').root_url);
define('api_url', root_url.'api/');
define('tpl_url', root_url.'tpl/');
Something went wrong with that request. Please try again.