Local development server and SDK

For easy development of apps on Gamooga, we provide a local development server that you can run on your own machines.

Installation on Linux

NOTE: The following instructions are for Ubuntu Lucid Lynx (Ubuntu 10.04).

  1. Install the following packages:

    sudo apt-get install liblua5.1-0 liblua5.1-0-dev python python-dev
  2. Download the SDK from the link: http://www.gamooga.com/static/download/gamooga-sdk-linux-2.0.6.zip

  3. Unzip the downloaded zip package.

  4. In the ‘gamooga-sdk/dev-server’ directory, execute ‘setup.sh’:

    bash ./setup.sh
  5. Your developement environment is ready.

The ‘gamooga-sdk’ directory contains a directory called “dev-server”. Run “gamooga.py” in “dev-server” directory to start the development server as follows:

python gamooga.py /path/to/Gamlet/Package/dir/

“gamooga.py” starts 3 servers: the gamlet server (port 1094), flashpolicy server (port 8430) and api server (port 8000). You can change these ports with options to “gamooga.py”.

If you also want a static file server add one more argument as follows:

python gamooga.py /path/to/Gamlet/Package/dir/ /path/to/dir/to/be/served/

This starts an additional static file server (port 10000).

You can try running some demos now. Instructions in README file in the ‘demos’ directory of the SDK.

NOTE: The installation on other distros of Linux should be similar. Basic pre-requisite is that the following packages are already installed:
  • the Lua library (liblua5.1),
  • Lua dev or devel package (liblua5.1-dev), the header files,
  • Python (python2.6), and
  • Python dev or devel package (python2.6-dev)

Once you have installed these packages in your distro, you can download the ‘gamooga-sdk-<version>.zip’ and run ‘setup.sh’ for setting up local installation.

Installation on Windows

  1. Install Python 2.6 from here: http://www.python.org/download/releases/2.6.6/.
  2. Download the SDK based on if your Windows is 32-bit or 64-bit.
  3. Unzip the downloaded zip package.
  4. Install either “lunatic-python-1.0.win32-py2.6.exe” or “lunatic-python-1.0.win-amd64-py2.6.exe” (depending on the zip package you downloaded) from ‘gamooga-sdk\dev-server\’ directory of SDK.
  5. Your development environment is ready.

The ‘gamooga-sdk’ directory contains a directory called “dev-server”. Run “gamooga.py” in “dev-server” directory to start the development server as follows from command line(cmd):

path\to\python\installation\python.exe gamooga.py path\to\Gamlet\Package\dir\

“gamooga.py” starts 3 servers: the gamlet server (port 1094), flashpolicy server (port 8430) and api server (port 8000). You can change these ports with options to “gamooga.py”.

If you also want a static file server add one more argument as follows:

path\to\python\installation\python.exe gamooga.py path\to\Gamlet\Package\dir\ path\to\dir\to\be\served\

This starts an additional static file server (port 10000).

You can try running some demos now. Instructions in README file in the ‘demos’ directory of the SDK.

Installation on Mac OS X

  1. Download the SDK at: http://www.gamooga.com/static/download/gamooga-sdk-macosx10.6-2.0.6.zip.
  2. Unzip the downloaded zip package.
  3. Install the package after unzipping “lunatic_python-1.0-py2.6-macosx10.6.mpkg.zip” from ‘gamooga-sdk/dev-server/’ directory of SDK.
  4. Your development environment is ready.

The ‘gamooga-sdk’ directory contains a directory called “dev-server”. Run “gamooga.py” in “dev-server” directory to start the development server as follows:

python gamooga.py /path/to/Gamlet/Package/dir/ #(Snow Leapord)
python2.6 gamooga.py /path/to/Gamlet/Package/dir/ #(Lion)

“gamooga.py” starts 3 servers: the gamlet server (port 1094), flashpolicy server (port 8430) and api server (port 8000). You can change these ports with options to “gamooga.py”.

NOTE: Please use python2.6 to run gamooga.py in OS X Lion instead of python.

If you also want a static file server add one more argument as follows:

python gamooga.py /path/to/Gamlet/Package/dir/ /path/to/dir/to/be/served/ #(Snow Leapord)
python2.6 gamooga.py /path/to/Gamlet/Package/dir/ /path/to/dir/to/be/served/ #(Lion)

This starts an additional static file server (port 10000).

You can try running some demos now. Instructions in README file in the ‘demos’ directory of the SDK.

Table Of Contents

Previous topic

Gamlet execution environment

Next topic

Administration panel