squad.xml
Remark to ArmA 2: Squad logo support isn't confirmed yet.
About
To support the multiplayer community in their effort to play as teams, like many ArmA clans and squads are trying to, it's possible to create a common information file - the "squad.xml" -, which is stored on a personal webspace or on an FTP server and loaded by the ArmA game server, if a member of this team is playing on it.
Beside detailed informations about the single player and its team which can be gained by pressing "P" ingame, the feature supports also a common logo, which will be displayed on vehicles, if such team has boarded it.
Preliminaries
If you feel unfamiliar with the XML file format itself and/or have questions about basic XML markup, you are advised to consult literature, documentation [1] or tutorials [2] as fundamental questions about the XML technology itself will not be covered here. There are multiple resources on in the World Wide Web that can help you learning XML.
How to create a "squad.xml"
The file consist of three main parts:
1. Head: defines the doctype. Just leave it!
<?xml version="1.0"?>
<!DOCTYPE squad SYSTEM "squad.dtd">
<?xml-stylesheet href="squad.xsl" type="text/xsl"?>
2. Squad properties
<squad nick="ESN">
<name>Example Squad Name</name>
<email>email@example.com</email>
<web>www.example.com</web>
<picture>example_logo.paa</picture>
<title>Use this e.g. for your squads name or your squads URL</title>
nick | The clan-tag, is displayed together with players nickname. Attention: Don't use reserved XML tags -> Link |
---|---|
name | Squad name |
Your contact email | |
picture | Your logo (optional), it has to in the same folder as the "squad.xml" file |
title | Squad name, displayed on vehicles manned by squad members |
Important note:
- Do not use any characters beside A-Z, a-z, 0-9 and space in the nick-attribute inside the squad-element of your squad.xml. This may lead to strange behaviour e.g. the information from your member-block is displayed but the information from the squad-block is not. So, if your Tag is like "=[SFS]=", put the value like "SFS" into the nick-attribute of the squad-element.
3. Member list
<member id="123456" nick="=[ESN]=John">
<name>John Doe</name>
<email>john.doe@example.com</email>
<icq>N/A</icq>
<remark>Mostly harmless</remark>
</member>
</squad>
id | your Player-UID, always the same and irrespective of your selected character |
---|---|
nick | your nick, the same as used with your selected character |
name | your "real" name... |
your personal email | |
icq | your personal icq number |
remark | as the name says it... |
Important note:
- The value in the nick-attribute of the member-element must represent the exact name of your players profile name. If your profile is named "=[ESN]=John" then the the correct XML looks like the above code block.
Remarks:
- You can leave any field blank, but it's recommended to fill it with a "N/A" instead.
- Extend the members list by adding another XML-"Member" block
How to get your Player-UID
ArmA
ArmA 2
How to create a logo for the use with "squad.xml"
To create a logo for the use with "squad.xml" you'll need:
- a bitmap manipulating software (aka "Paintprogram") which is able to handle bitmaps in TGA or JPG format.
- Download Texview or the PAA-Plugin for the use with Photoshop
For a logo without transparency you can use an ordinary JPG without further treatment. To get transparency you'll have to convert a TGA to PAA format. Its always recommended to use PAA and to avoid alpha blending.
Create the TGA
In this tutorial we'll use GIMP - a open source tool - to create our sample-logo.
Important note: All logos must a have resolution of 2^x / 2^y (e.g. 16 / 16, 32 / 32, 64 / 64, 256 /256)
As this description only covers 'the Gimp', here is an old tutorial made for Flashpoint, using Photoshop 6 and explaining how to get an alphachannel working within the TGA-Picture (Note: If you're using Photoshop 7, you'll need to download patch from adobe, since it does not save alphachannel in targa files). You can stick with 'Texview I' as long as those new tools need time to get published. The whole thing is working the same way like it did in Flashpoint, till now. The linked tutorial was part of newsreports by ofp.info.
Convert TGA to PAA
- Start TexView
- Open your "logo.tga"
- Save it as "logo.paa" (replace *.tga with *.paa in the "save as"-dialog)
Remark: Your are absolutely free to name your logo as you like. The filename "logo.tga" etc. is just an example!
How to publish it
To use the "squad.xml" you'll have to upload the following files to a webspace:
- squad.xml (mandatory)
- squad.dtd (mandatory)
- squad.xsl (optional), needed to show the "squad.xml" in a webbrowser, but isn't needed by the ArmA gameserver
- mylogo.paa (optional)
All files will have to be in the same directory!
NOTE: .PAA files don't seem to work on IIS; Apache has been tested and seems successful.
How to use it as a team-member
- You have to have your own member-block in the "squad.xml" file
- Additionally you have to put the URL of the "squad.xml" of your team into the "Clanpage" field in the player edit-menu. As reference see the picture "ArmA UID 2" in section How to get your Player-UID.
Here are a few examples of proper URL:s for the "Clanpage" field:
http://www.example.net/squad.xml http://www.example.org/path/to/your/squad.xml
Files
Update:
"squad.xml" and "squad.xls" were modified to get diplayed properly also by Firefox (Gecko-Engine). Additionaly a "squad.css" was added for a more easier way to adopt the display of the Html-output to individual needs.
References
Free Arma XML hosting
- ArMaTeC Free XML hoster
- Smart SquadXML Manager - Smart SquadXML Manager, Hoster and live .PAA Logo coversion by www.armedassault.eu
Contributors
=[SFS]=def+1-TPF- of So Fuckin' Skilled!