Jump to content
Sign in to follow this  
Bellum

Squad XML help

Recommended Posts

Nice, I'm still not sure what causes it, went through a couple of old squad.xml's I had that were having this problem and I just couldn't make it happen.

Just wondering, can you see anyone else's logos? I remember not being able to see any when I had the problem.

Share this post


Link to post
Share on other sites
Nice, I'm still not sure what causes it, went through a couple of old squad.xml's I had that were having this problem and I just couldn't make it happen.

Just wondering, can you see anyone else's logos? I remember not being able to see any when I had the problem.

Yeah I can see others' logos just fine.

Share this post


Link to post
Share on other sites

Bah, as was pointed out in another thread others cant see it. I dragged the file out to see if the new file would download again and it did but corrupted like before

Share this post


Link to post
Share on other sites

Yo Darkman and anfiach what operating systems do you use?

Share this post


Link to post
Share on other sites

vista 32

---------- Post added at 06:10 PM ---------- Previous post was at 06:08 PM ----------

You know, I'm wondering if it is just an issue with where we are hosting the files, obviously the game can read it so it is either something to do with how it is hosted or how it is downloaded.

Share this post


Link to post
Share on other sites
Bah, as was pointed out in another thread others cant see it. I dragged the file out to see if the new file would download again and it did but corrupted like before
You know, I'm wondering if it is just an issue with where we are hosting the files, obviously the game can read it so it is either something to do with how it is hosted or how it is downloaded.

Could be, I went through 3 or 4 hosts before mine started working. If you want you can PM me the files and try 'em out on mine? (temporary of course)

Share this post


Link to post
Share on other sites

thanks I put it up on Armatech's site and it seems to be working, I'll have to verify with someone on a public server but I had no issues this time on my whisper server

Share this post


Link to post
Share on other sites

Isnt working the logo in 1.03? i got my xml squad with logo working fine in 1.02, but now on 1.03 servers, logo dont appear.

Share this post


Link to post
Share on other sites

I've got problem with squad.xml. Informations about players doesn't appear on P window (also in lobby as tag after player's nick).

squad.xml

<?xml version="1.0"?>
<!DOCTYPE squad SYSTEM "squad.dtd">
<?xml-stylesheet href="squad.xsl?" type="text/xsl"?>

<squad nick="TAG">
<name>Clanname</name>
<email>email</email>
<web>website</web>
<picture></picture>
<title>Clannme</title>

	<member id="123456" nick="Nick">
		<name>Name</name>
		<email>email</email>
		<icq>N/A</icq>
		<remark>Remar</remark>
	</member> 

</squad>

squad.dtd

<!ELEMENT squad (name, email, web?, picture?, title?, member+)>
<!ATTLIST squad nick CDATA #REQUIRED>
<!ELEMENT member (name, email, icq?, remark?)>
<!ATTLIST member id CDATA #REQUIRED nick CDATA #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT icq (#PCDATA)>
<!ELEMENT web (#PCDATA)>
<!ELEMENT picture (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT remark (#PCDATA)>

What's wrong with it?

Share this post


Link to post
Share on other sites

Hi,

I need some help with my squad logo. It's shown accurately on the player info, but on vehicles or infantry u can only see it from certain angles, otherwise u only see a borderline where the logo should be..

this is the .gif i created this .paa from http://freenet-homepage.de/siebte/siebte.paa

Edited by jurgass

Share this post


Link to post
Share on other sites

For some extrange reason the logo dont appear in the player info now, but works fine in the vehicles.Happens since 1.03.

Share this post


Link to post
Share on other sites

Same no logo, although team mates could see

Share this post


Link to post
Share on other sites

I've managed to replicate one of the ways to break squad logos. It seems that any use of the '-profiles' tag has a chance to mess with your client's downloaded .paa files. Almost seems as though it's not looking in the correct position, because all downloaded logos correctly end up at the -profiles\squads folder.

Share this post


Link to post
Share on other sites

Hey ho together,

SORRY FOR THE LONG POST, AND BUMPING THIS THREAD!

I am having problems with my XML.. I followed this thread just to try if I could get it to work..

The problem is, that everythings shows up but the picture ingame.

- Picture is shown on the weblink though!

- Picture is a .paa file (256x256)

- XML is correctly set up

- Webhoster is a payable hosting ftp

I tried nearly everything...even the manual saving in the squad folder.

I am using Windows XP and set the picture up with fireworks-->GIMP2.0--->TexView 2!

Still wondering if someone of you could correct this for me?

greetings

Hammer

squad.xml:

<?xml version="1.0"?>

<?DOCTYPE squad SYSTEM "squad.dtd"?>

<?xml-stylesheet href="squad.xsl" type="text/xsl"?>

<squad nick="R.G.M.C.">

<name>RunGunMC</name>

<email>nothing@notavailable.com</email>

<web>www.arma-rpg.com</web>

<picture>logo.paa</picture>

<title>R.G.M.C.</title>

<member id="xxxxxxx" nick="Hammer">

<name>The Boss</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>What the hell do ya want?</remark>

</member>

<member id="xxxxxxx" nick="Deadfast">

<name>Psycho</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>Mostly nuts...</remark>

</member>

<member id="xxxxxxx" nick="Unforgiven">

<name>Knucklehead</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>Bend over!</remark>

</member>

<member id="xxxxxxx" nick="Stuntman">

<name>Crashtestdummy</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>The Crazy Cameraman</remark>

</member>

<member id="xxxxxxx" nick="Razza">

<name>Jelly Belly</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>Hua toooooooo!</remark>

</member>

<member id="xxxxxxx" nick="Rectum">

<name>Rectum</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>How wide is your rectum?</remark>

</member>

<member id="xxxxxxx" nick="Hannibal">

<name>Hot Rod Hanni</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>come an the rinn, can you raus kicken</remark>

</member>

<member id="xxxxxxx" nick="Nils1994">

<name>Ironpants</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>Blaaargh!</remark>

</member>

<member id="xxxxxxx" nick="whosyadaddy">

<name>Daddy</name>

<email>nothing@notavailable.com</email>

<icq>666</icq>

<remark>Whats going on?</remark>

</member>

</squad>

squad.xsl:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet

version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="text()">

<xsl:value-of select="."/>

</xsl:template>

<xsl:template match="*">

<xsl:apply-templates/>

</xsl:template>

<xsl:template match="/">

<HTML>

<HEAD>

<TITLE><xsl:value-of select="/squad/name"/></TITLE>

<LINK REL="stylesheet" TYPE="text/css" HREF="squad.css"></LINK>

</HEAD>

<!--

XSL template for "squad.xml", used in "Armed Assault" (Ref: "http://www.armedassault.com")

See also the Arma-Wiki page: "http://community.bistudio.com/wiki/squad.xml"

Created by TomNedry, 26.Jan07

Lisence: Creative Common (http://creativecommons.org/licenses/by-nc-sa/2.5/deed.de)

To have a squad logo in the HTML output, just put a "sqd_logo.png" in the same folder...

-->

<BODY>

<!--Main TABLE -->

<TABLE class="main">

<TR>

<TD class="left_row" valign="top">

<!-- Squad Info Table -->

<TABLE class="sqd_info">

<TR height="30">

<TD class="one">

<DIV class="sqd_name">

<xsl:value-of select="/squad/name"/>

</DIV>

</TD>

</TR>

<TR height="30">

<TD class="two">

<DIV class="sqd_title">

<xsl:value-of select="/squad/title"/>

</DIV>

</TD>

</TR>

<TR height="100%">

<TD width="100%" height="100%" valign="top">

<DIV class="sqd_logo">

<img src="sqd_logo.png" alt="Picture: Squad Logo"/>

</DIV>

</TD>

</TR>

<TR height="10">

<TD class="sqd_website">

Web site:

<A>

<xsl:attribute name="href">

http://<xsl:value-of select="/squad/web"/>

</xsl:attribute>

<xsl:value-of select="/squad/web"/>

</A>

</TD>

</TR>

<TR>

<TD class="sqd_email">

e-mail:

<A>

<xsl:attribute name="href">

mailto:<xsl:value-of select="/squad/email"/>

</xsl:attribute>

<xsl:value-of select="/squad/email"/>

</A>

</TD>

</TR>

</TABLE>

<!-- Squad Info Table -->

</TD>

<TD class="right_row" valign="top">

<!-- Member-Info Table -->

<TABLE class="member_info">

<Tr>

<Th>Members</Th>

<Th>e-mail</Th>

<Th>ICQ</Th>

</Tr>

<xsl:for-each select="/squad/member">

<TR>

<xsl:attribute name="class">

<xsl:choose>

<xsl:when test="position() mod 2 = 0">one</xsl:when>

<xsl:otherwise>two</xsl:otherwise>

</xsl:choose>

</xsl:attribute>

<TD class="member_name" rowspan="2">

<xsl:value-of select="name"/>

</TD>

<TD class="member_email">

<A>

<xsl:attribute name="href">

mailto:<xsl:value-of select="email"/>

</xsl:attribute>

<xsl:value-of select="email"/>

</A>

</TD>

<TD class="member_icq">

<xsl:value-of select="icq"/>

</TD>

</TR>

<TR>

<xsl:attribute name="class">

<xsl:choose>

<xsl:when test="position() mod 2 = 0">one</xsl:when>

<xsl:otherwise>two</xsl:otherwise>

</xsl:choose>

</xsl:attribute>

<TD class="member_remark" colspan="2" valign="top">

<xsl:value-of select="remark"/>

</TD>

</TR>

</xsl:for-each>

</TABLE>

<!-- Member Info Table -->

<!--Main TABLE -->

</TD>

</TR>

</TABLE>

<p style="font-family:verdana;font-size:7pt;color:darkgrey;text-align:center;padding:10px;">

"squad.xsl" by TomNedry, last change: 21.Jan07

</p>

</BODY>

</HTML>

</xsl:template>

</xsl:stylesheet>

squad.css:

/*

CSS template for "squad.xml", used in "Armed Assault" (Ref: "http://www.armedassault.com")

See also the Arma-Wiki page: "http://community.bistudio.com/wiki/squad.xml"

Created by TomNedry, 26.Jan07

Lisence: Creative Common (http://creativecommons.org/licenses/by-nc-sa/2.5/deed.de)

*/

body

{

font-family:Arial;

background-color:#eaece5;

margin:0px;

}

a:link

{

text-decoration:none;

color:#800000;

}

a:visited

{

text-decoration:none;

color:#800000;

}

a:hover

{

text-decoration:none;

color:#ffffff;

}

a:active

{

text-decoration:none;

}

a:focus {

text-decoration:none;

}

th

{

background-color:#aeb399;

font-family:Arial;

font-size:10pt;

font-weight:bold;

padding:4px;

}

tr.one

{

background-color:#dde4c3;

width:100%;

padding:4px;

}

tr.two

{

background-color:#d2d9b8;

width:100%;

padding:4px;

}

td.one

{

background-color:#aeb399;

width:100%;

}

td.two

{

background-color:#e2e9c7;

width:100%;

}

.main

{

text-align:center;

width:100%;

border:0px solid #333333;

}

div.sqd_name

{

text-align:center;

font-family:Arial;

font-size:12pt;

font-weight:bold;

}

div.sqd_title

{

text-align:center;

font-family:Arial;

font-size:10pt;

}

div.sqd_logo

{

text-align:center;

font-size:8pt;

padding:5px;

}

.sqd_info

{

border:1px dotted darkgrey;

width:100%;

padding:0px;

border-spacing:0px;

}

.sqd_website

{

font-family:Arial;

font-size:10pt;

text-align:center;

background-color:#aeb399;

width:100%;

padding:4px;

border-spacing:0px;

}

.sqd_email

{

font-family:Arial;

font-size:10pt;

text-align:center;

background-color:#aeb399;

width:100%;

padding:4px;

border-spacing:0px;

}

.left-row

{

vertical-align:top;

height:100%;

}

.right-row

{

vertical-align:top;

height:100%;

}

.member_info

{

border:1px dotted darkgrey;

width:100%;

padding:0px;

border-spacing:0px;

}

.member_name

{

font-family:Arial;

color:black;

font-size:10pt;

padding:4px;

}

.member_email

{

font-family:Arial;

color:black;

font-size:8pt;

padding:4px;

}

.member_icq

{

font-family:Arial;

color:black;

font-size:8pt;

padding:4px;

}

.member_remark

{

font-family:Arial;

color:black;

font-size:8pt;

text-align:center;

}

the weblink:

http://scriptingbay.com/rgmc/rgmcxml/squad.xml

I can pm you the sqd_logo.png file if you want!

thx for any help!

Share this post


Link to post
Share on other sites

Same problem for me

Tryied different hostings

Tryied different formats. With JPG or PAA manually copied to squad folder, I see the logo but others player dont see it.

With "normal" PAA I receive the message "could not load......" and any other player that clicks on my name, receive the same error.

The strange thing is that if the PAA file is 4kb, I see in the squad folder that ArmaII download always just 2kb....

Anyone knows a solution for this?

Share this post


Link to post
Share on other sites
check my sig

I already subscribed some hours ago but never received email for activation...:confused:

Share this post


Link to post
Share on other sites

@ ZA Sgt.Hammer

Do not use any characters beside A-Z, a-z, 0-9 and space in the nick-attribute inside the squad-element (see Wiki page, Section 3, lit. 2 ). 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.

@RomanLord

A possible reason might be that your webhoster only allows "known" MIME types, such html, zip, etc. and paa just isn't on that list... As long as TexView can show it, the paa itself is correct...

Share this post


Link to post
Share on other sites

Okay, I have tried everything I can.

Photoshop w/ current paa plug.

GIMP to Texview

Nothing is getting the logo to show up ingame. The rest of the info does, but not the logo. I can see other clan's logo's, so I know it's not my firewall.

Using a png, I can view the squad.xml pasge in my web browser.

I just can't get the paa to function correctly lol!

Can some good-hearted soul take the following file and convert it to a 256x256 paa file for me?

http://ripteam.org/misc/crest2.png

Dunno what I doing wrong, but I have a directory full of failed attempts LOL!

Thanks in advance!

Edited by -Total-

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×