Sillysoft
Lux Delux will rawk you hardcore!
   Lux Delux
The Game Of Universal Domination

 
  Games     Forums     Wiki     Rankings     Sillysoft Lux Online Risk Game RSS feed    

  About     Contact     News     Sitemap     Maps     Downloads     Buy    

Lux Delux Maps: Pictures (All) | Full Descriptions | Short Descriptions || Submit A Plugin | Developer Info

The Lux Map File Format

Lux is capable of loading custom map files. Each map file is just a text document stored in a human readable XML format. To create your own map you create a text file that fits the specified XML format.

This document contains the formal specification of the XML format.

Example .luxb map files can be found in in the Boards/Saved folder inside your Support Folder. It is highly advised that you take a look at one while you read this.


The luxboard XML file format:
The first line in the file should be
  <?xml version="1.0" ?>
This declares that the file is an XML file. The next line should open the base <luxboard> tag. Each <luxboard> tag MUST have the following tags inside of it:
  • <version> the version of the map file. It can be a decimal, like 1.1
  • <width> the width of the board (integer)
  • <height> the height of the board (integer)
  • one <continent> tag per continent in the board (see below)
It MAY have the following:
  • <title> a title for the board (string)
  • <author> the boardfile's creator (string)
  • <email> a contact email for the author (email address)
  • <webpage> a contact website for the author (fully qualified URL: include the http://)
  • <description> a human readable description of the map (string)
  • <theme> the name of the theme to load (string)
  • <playerInfoLocation> the default position of the top-left corner of the player info inside the map window (i.e. <playerInfoLocation>100,250</playerInfoLocation>)
  • <armySet> the design to use for the cards and army indicator graphics (string)
  • <emptyPlayerID> when using scenario starting condition, this player ID must be the Empty AI (integer)
  • one or more <line> tags for extra drawing on the map (see below)
 

The <continent> tag:
Each <continent> tag MUST include:

  • <bonus> the number of bonus armies given for owning this continent (integer)
  • some <country> tags (see below)
A <continent> MAY have:
  • <continentname> the name of the continent (string)
  • <color> the slash-separated RGB values as floats for this continent's border (i.e. <color>1.0/0.0/0.0</color>). If you specify for one continent then you should specify for them all to ensure that the continent colors all contrast each other.
  • <labellocation> the center point of where the continent's name box should go when viewing continents (i.e. <labellocation>100,250</labellocation>)
 

The <country> tag:
Each <country> tag MUST include:

  • <id> a numerical id for the country, with the count starting at 0 and going up sequentially (integer)
  • <polygon> a list of the co-ordinates that make up the shape of this country (i.e. <polygon>861,376 862,363 831,334 858,360</polygon>)
  • <adjoining> a comma seperated list of the country codes of all adjoining countries (i.e. <adjoining>2,4</adjoining>)
A <country> MAY have:
  • <name> the country's name (string)
  • <armylocation> the center point of where the country's number of armies goes (i.e. <armylocation>100,250</armylocation>)
  • multiple <polygon> tags may be included in a single <country>
  • <initialOwner> can be used to specify the owner of this country in the starting scenario. If you set this for one country then you must set it for all of them. Start with <initialOwner>0</initialOwner> and count up from there to give the desired number of players
  • <initialArmies> can be used to specify the number of armies this country has in the starting scenario. Defaults to 1
 

The <line> tag:
Each <line> tag MUST have:

  • <position> the co-ordinates of the line (i.e. <position>10,10 20,20</position>). You can specify multi-segment lines by giving more then 2 points (i.e. <position>10,10 10,20 20,20</position>)
It MAY have:
  • <color> the color of the line (i.e. <color>1.0/0.0/0.0</color>). If no color is specified then it will be white or black to best contrast against the background image.
  • <width> the thickness of the line in pixels (integer)
  • <above> if given the value of true then this line will be drawn on top of the country shapes. The default is to draw lines below them.
 

Notes:

  • Every tag must have a corresponding end tag.
  • Every Lux map file must have the file extension of .luxb
  • Map files can be double clicked or dragged onto Lux's icon to be automatically added to the in-game list of saved maps. The map file will be moved to ~/Library/Application Support/Lux/Boards/Saved/ in the process.
  • Capitalization matters. All the tags must be in lowercase. (i.e. it MUST be <id> and not <ID>).

  • Lux Delux Maps: Pictures (All) | Full Descriptions | Short Descriptions || Submit A Plugin | Developer Info

    Sillysoft Games is pleased to offer our flagship product Lux Delux. It's an advanced Risk game to fulfill all your world domination needs, including online play and full map support. We also offer the variations of American History Lux and our newest game Ancient Empires Lux. Have some fun and Lux through your history lessons. Check out the free game download page for all the files.

    We have a further selection of fun Strategy Games, which you can run on Mac OS X, Windows XP/98/ME/2000/NT and Linux. A similar style of strategy game that is executed in real-time is Pax Galaxia. If you like logic puzzles we recommend DROD: Journey to Rooted Hold. Macintosh users may be intested to see our favorite Mac OS X games. For fun here's a Vancouver blogger list. For the full Sillysoft empire check out the sitemap.

    Because taking over the world is fun.
                                     - Lux