The Tombs of Asciiroth

Build Instructions

Here are some instructions that hopefully, will get you to the point where you can change something, build, and run the application to see your change without having to create an entire distribution (which can be slow).

Working with the projects from within Eclipse:

Make sure you have the following software unzipped and available (earlier versions of some of these might work, if you've got them installed, but you'll need the specific versions of GWT and Adobe AIR):

GWT 1.7 (doesn't actually have to be executable from the command line...)

Adobe AIR SDK 1.5.1 (add bin/ directory to your PATH)

Import the projects:

Use File > Import > Checkout Projects from SVN

Create a new repository location: svn://svn.icculus.org/asciiroth

Select "trunk/game" and then finish the wizard (project name should be "game" exactly).

Repeat and select "trunk/editor" to work on the editor (project name should be "editor" exactly)

The projects won't build until you fix the GWT_HOME variable to point to the root directory of your GWT distribution.

Open the build.properties file in the game directory, and edit the location of the following two variables:

GWT_HOME

AIR_HOME

So at this point you've added Ant and Adobe AIR to your path so you can execute "ant" and "adl", you've added a GWT_HOME variable within Eclipse to point to your GWT distribution, and you've edited the build.properties file to point to GWT and AIR. You should have two projects (Asciiroth and Asciiroth Editor) in your workspace that will compile. However, I have never tried to run the build from within Eclipse... you're right, there's an error where Eclipse doesn't get the way the editor build file includes/references the game build file.

Here are the commands I commonly use from the command line:

For the game (from the game/ directory):

ant compile-air; adl src/adl.xml .

This compiles the AIR version of the game (into dist/air), then runs it as an Adobe AIR application. Very fast turnaround in order to see your changes in the game, however typically, it's the *editor* that provides an easy way to add pieces to a board and preview how they work, so see below.

ant compile

This compiles the game using GWT's full set of permutations (into dist/web), so the result is the game that can be opened in any web browser. But this is slow... during development this is not very practical.

ant hosted

Runs the game in GWT's hosted mode browser. On windows, this uses IE under the hood and I swear that upgrading to IE8 made the hosted mode browser faster, fast enough to be useful.

ant debug

Starts the hosted mode browser but blocks so you can connect to it from Eclipse (or any other debugger) as a remote Java application.

For the editor (similar but not the same, but from the editor/ directory):

ant compile pre-dist; adl src/adl.xml .

Compiles the editor, then copies over the game into the editor, which it needs for the preview feature, then opens up the editor in Adobe AIR. You have to have built the game first. Here's a command that'll do it all, then start the editor: