Sillysoft
Lux Alliance: Capture The Flag!

Lux Delux
The Game Of Universal Domination 
Lux Delux
Maps - Forum
Rankings - Buy
Lux Alliance
Maps - Forum
Rankings - Buy
Sillysoft
About - Docs - FAQ
News - Forums - Search
 
RSS feeds  

Lux Delux Maps: Pictures | 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 | Submit A Plugin | Developer Info

    Lux Alliance diplomacy game is a simultaneous-turns team strategy boardgame. Diplomacy meets Axis & Allies game.

    Lux Delux advanced Risk game with over 800 maps, hard AI, and online multi-player.

    American History Lux takes you through the wars of USA history. — Ancient Empires Lux spans Babylon to the Roman Empire.

    Lux Touch iOS risk game, and Lux DLX let you conquer the world on your iPhone, iPod, and iPad. Lux DLX android risk game

    Meowzers Action Cats is a feline fun mobile game. Romp with cute cats on your phone and tablet.

    Sillysoft makes games for Mac OS X, Windows XP/Vista/7 and Linux. Also mobile games for iPhones, iPads, and iPod Touch.

    SitemapDownload GamesMac OS X gamesMapsNewsTerms of UseFAQ

    Because taking over the world is fun.
                                     - Lux