Testing Resources
So you have written a new resource and would like to test it? Then you have come to the right place :)
Save it
Resource directory
Resources that should be available to a specific user are stored in
- Linux - <home>/.armagetronad/resource
- Example: /home/Joe/.armagetronad/resource
- Windows - <appdata>\Armagetron\resource
- Example: C:\Documents and Settings\Joe\Application Data\Armagetron\resource
- Mac OS X - <home>/Library/Application Support/Armagetron Advanced/resource
- Example: /Users/Joe/Library/Application Support/Armagetron Advanced/resource
Resources that should be available to all users of a computer are stored in
- Linux - /usr/share/games/armagetronad/resource
- Windows - C:\Program Files\Armagetron Advanced\resource
- Mac OS X - Armagetron Advanced.app/Contents/Resources/resource
respectively
- Linux — ~/.armagetronad/resource
- Windows — C:\Program Files\Armagetron Advanced\resource
- Mac OS X — ~/Library/Application Support/Armagetron Advanced/resource
Filename
Inside the resource directory, resources are located at
author/category/name-version.type.xml
where type, name, version, author and category must match those stated in the resource:
<Resource type="..." name="..." version="..." author="..." category="...">
In windows, the subdirectories must be seperated by '\', not '/'.
Tell Armagetron to use it
by setting the configuration item
- MAP_FILE (for maps)
to
author/category/name-version.type.xml
(note that you have to use '/' regardless of whether you use windows)
You may want to set the configuration item permanently by editing
- Linux — ~/.armagetronad/config/settings_custom.cfg
- Windows — C:\Program Files\Armagetron Advanced\config\settings_custom.cfg
- Mac OS X — ~/Library/Application Support/Armagetron Advanced/config/settings_custom.cfg
Run Armagetron
Now its time to play Armagetron Advanced locally.
If you have saved it wrong or the path you put is incorrect it will tell you.
If your settings or code is wrong it will also tell you a line number.