squad.xml: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created and added main content)
 
(added arma uid, logo creation, publish, files, references)
Line 29: Line 29:
</code>
</code>


{| {{Prettytable}}
{|
!style="background:#FEDBCA;"|nick
!style="background:#FEDBCA;"|nick
|The clan-tag, is displayed together with players nickname. Attention: Don't use reserved XML tags -> Link
|The clan-tag, is displayed together with players nickname. Attention: Don't use reserved XML tags -> Link
Line 40: Line 40:
|-
|-
!style="background:#FEDBCA;"|picture
!style="background:#FEDBCA;"|picture
|Your logo, it has to in the same folder as the "squad.xml" file
|Your logo (optional), it has to in the same folder as the "squad.xml" file
|-
|-
!style="background:#FEDBCA;"|title
!style="background:#FEDBCA;"|title
Line 55: Line 55:
<span style="color:#1874CD;"><remark></span>Mostly harmless<span style="color:#1874CD;"></remark></span>
<span style="color:#1874CD;"><remark></span>Mostly harmless<span style="color:#1874CD;"></remark></span>
<span style="color:#1874CD;"></member></span>
<span style="color:#1874CD;"></member></span>
<span style="color:#1874CD;"></squad></span>
</code>
</code>


{| {{Prettytable}}
{|
!style="background:#FEDBCA;"|id  
!style="background:#FEDBCA;"|id  
|your ArmA-UID, always the same and irrespective of your selected character
|your ArmA-UID, always the same and irrespective of your selected character
Line 81: Line 82:
* You can leave any field blank, but it's recommended to fill it with a "N/A" instead.
* 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
* Extend the members list by adding another XML-"Member" block
== How to get your ArmA UID ==
{|
|[[Image:Squadxml uid 1.jpg|thumb|ArmA UID 1: Start ArmA and select the player edit-menu]]
|[[Image:Squadxml uid 2.jpg|thumb|ArmA UID 2: In the bottom-right corner there your 6-digit UID]]
|}
== 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.
* [ftp://www.flashpoint1985.com/flashpoint/breathe/doc/TexView_11.zip Download Texview] or the [http://www.kegetys.net/arma/ 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 [http://www.gimp.org 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)
{|
|[[Image:Squadxml gimp new 1.jpg|thumb|Step1: Create a new file]]
|[[Image:Squadxml gimp new 2.jpg|thumb|Step2: Select the appropriate size of image and
set background color to transparency]]
|-
|[[Image:Squadxml gimp new 3.jpg|thumb|Step3: Draw your logo and save as TGA...]]
|[[Image:Squadxml gimp new 4.jpg|thumb|Step4: after selecting TGA this window appears...]]
|}
=== Convert TGA to PAA ===
[[Image:Mylogo.jpg|frame|Your logo should be something like this]]
# 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!
== Files ==
* [http://www.airpressuretendency.net/gfx/arma_xml_squad.zip ArmA_XML_Squad.zip]
<dd class="notedate">Posted on January 24, 2007 - 00:42</dd>
<dt class="note">'''[[User:TomNedry|TomNedry]]'''</dt><dd class="note">Would be nice to get this files hosted by the Biki maintainer ;-)</dd>
== References ==
* [http://www.theavonlady.org www.theavonlady.org]
* [http://www.flashpoint1985.com/docs/textview.html TexView Docu]
[[Category:Armed Assault]][[Category:ArmA: Multiplayer| ]][[Category:ArmA: Community| ]]

Revision as of 02:42, 24 January 2007

About

Example of a logo, provided by "squad.xml"

To support the Multiplayer-Community in their effort to play as teams, like many ArmA-clans and squads are trying, its possible to create a common information file - the "squad.xml" -, which is stored on a personal webspace and loaded by the ArmA-Gameserver, if a member of this team will there.

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.


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="[cHoe]"> <name>Chaos-Hoernchen</name> <email>admin@chaos-hoernchen.de</email> <web>www.chaos-hoernchen.de</web> <picture>choe_logo.paa</picture> <title>Chaos-Hoernchen</title>

nick The clan-tag, is displayed together with players nickname. Attention: Don't use reserved XML tags -> Link
name Squad name
email 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


3. Member list

<member id="123456" nick="John"> <name>John Doe</name> <email>john.doe@anymail.com</email> <icq>N/A</icq> <remark>Mostly harmless</remark> </member> </squad>

id your ArmA-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...
email your personal email
icq your personal icq number
remark as the name says it...


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 ArmA UID

ArmA UID 1: Start ArmA and select the player edit-menu
ArmA UID 2: In the bottom-right corner there your 6-digit UID

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)

Step1: Create a new file
Step2: Select the appropriate size of image and set background color to transparency
Step3: Draw your logo and save as TGA...
Step4: after selecting TGA this window appears...

Convert TGA to PAA

Your logo should be something like this
  1. Start TexView
  2. Open your "logo.tga"
  3. 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!

Files

Posted on January 24, 2007 - 00:42
TomNedry
Would be nice to get this files hosted by the Biki maintainer ;-)

References