Jump to content
Sign in to follow this  
MeNeZ

Squad arm badge in multi?

Recommended Posts

www.clearmysix.com/arma/squad.xml

Thanks for taking a look. I can send you the png/paa files if needed. The PNG shows on the link, but the paa is not showing on vehicles in game.

My TexView crashes when trying to open the logo. First of all resize the logo to 128x128 and save it as TGA. Use TexView to open it and save it as .paa (just change the end). You can also use normal jpg because the logo isn't transparent.

Share this post


Link to post
Share on other sites

Thanks guys, I'll take your advise and try again. I'll let you know what I screwed when I get it fixed to help others to avoid my mistakes. I was using a PAA plugin for photoshop, so maybe it does something different to the file than TexView.

Share this post


Link to post
Share on other sites

I have a procedure that works in Photoshop CS2 for making transparent logo.paas.

I make the transparent image in PS CS2, save as .tga, open with texview, then save as .paa. Works a charm.

Share this post


Link to post
Share on other sites

Does anyone know where to get TexView at? The only place I can find it is here:

TexView

But the download link is a dead link. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites

goto arma wiki, search for "squad.xml" - its linked from there.

Share this post


Link to post
Share on other sites

The PhotoShop PAA Plugin worked fine for me. The thing is that you still need to first save it as a TGA file. Then open it with Photshop again and re save it using the PAA Plugin.

TLC-Smokey and everyone else,

If you plan on using a Logo with Transparency, you'll need to save the image as a <span style='color:red'>.paa</span>, however you will also need to Modify both your XML and XSL File for it. Unfortunately, this isn't mentioned in any forum or Wiki. The XML modification will report the <span style='color:red'>.paa</span> File to the in game logo while the XSL Modification will allow you to use a TGA, JPEG, or PNG to show the Image on the Website. The reason for using two different formats of the same Logo is that a <span style='color:red'>.paa</span> file will not show up on any Web Browser. This is why you'll use the PNG for.

I will make it really easy for all of you, below I will paste the code for both. Remember, this is only needed if you plan on using a <span style='color:red'>.paa</span> Logo. To make this as easy as possible please save your logo with the following names.

In game Logo: sqd_logo.paa

Webpage Logo: sqd_wp_logo.png

<span style='color:blue'>Squad XML Document</span>

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

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

<!DOCTYPE squad SYSTEM "squad.dtd">

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

<squad nick="LOL">

<name>Laughing Out Loud</name>

<email>blahblahblah@whatever.com</email>

<web>www.LOL.com</web>

<picture>sqd_logo.paa</picture>

<title>Laughing Out Loud</title>

<member id="123456" nick="[LOL] AtYou">

<name>[LOL] AtYou</name>

<email>Classified</email>

<icq>If you use it</icq>

<remark>Get your XML On!</remark>

</member>

</squad>

<span style='color:blue'>Squad XSL StyleSheet</span>

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

<?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_wp_logo">

<img src="sqd_wp_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>

The Original <span style='color:blue'>XML</span> & <span style='color:blue'>XSL</span> was modifed to work with <span style='color:red'>PAA</span> & <span style='color:red'>PNG</span> Files by <span style='color:green'>[MDS] The)3rit</span>.

Hope this helps... wink_o.gif

Share this post


Link to post
Share on other sites

Awesome, thanks for the info Drako and to the others that have provided info as well. Spider and I have been trying to get it working but still haven't gotten the image to show up in game on any vehicles. We will go over this info and see if we can get it working. I knew some info had to be missing because our image showed up on the webpage, but not in game and we never saw a reference to the PNG. We couldn't figure out how the web page was pulling it, but the paa wasn't showing up in game. This should fix our problems. We will try this out and report back once we have it working.

Thanks again.

Share this post


Link to post
Share on other sites

My problem is I don't know where to put all these files. In my profile folder or on my own webspace or upload them to the gameserver or other ways?

Share this post


Link to post
Share on other sites

You put them on webspace and link to it in your profile.

Share this post


Link to post
Share on other sites

We're still not getting it right, but I believe we are getting closer. The paa is no longer crashing the TexView Software, but when we open it, it's showing up as a gray box, when we uncheck the alpha channel, it shows the image. When we save it to PAA and upload the image it does not show on the vehicles in game. We're thinking that we are choosing the wrong options when we are trying to save the file.

What options are you all selecting when saving the paa file?

Share this post


Link to post
Share on other sites
We're still not getting it right, but I believe we are getting closer. The paa is no longer crashing the TexView Software, but when we open it, it's showing up as a gray box, when we uncheck the alpha channel, it shows the image. When we save it to PAA and upload the image it does not show on the vehicles in game. We're thinking that we are choosing the wrong options when we are trying to save the file.

What options are you all selecting when saving the paa file?

Are you using Photoshop? If so, don't bother making any alpha channels, it's enough that the background is transparent when you save the logo as 32 bit TGA. I get it working when I just open the TGA file in TexView and save as .paa.

Share this post


Link to post
Share on other sites
We're still not getting it right, but I believe we are getting closer. The paa is no longer crashing the TexView Software, but when we open it, it's showing up as a gray box, when we uncheck the alpha channel, it shows the image. When we save it to PAA and upload the image it does not show on the vehicles in game. We're thinking that we are choosing the wrong options when we are trying to save the file.

What options are you all selecting when saving the paa file?

Do you have it saved in Photoshop format. If so PM me with a link so I can download it and fix it for you. wink_o.gif

Share this post


Link to post
Share on other sites

Still not getting it, but narrowing the possibilities of what it can be. Drako took a look at our files, he made some edits, and uploaded them on his webpage and all worked well. But when I take the files he sent us and uploaded them on three different hosting accounts, the picture never showed. So I'm guessing that something is not setup right on the hosting accounts we've tried. We created a folder in the public html directory and placed the files in that directory. Does anyone know what we could be doing wrong? We know the graphic files and XML work, because Drako had it working on his account. We just can't seem to figure what the difference is between the hosting accounts. I saw a post where someone said that they had to edit the XML directory, could this have anything to do with the problem?

Thanks for any help in advance.

Share this post


Link to post
Share on other sites

Could it be that the other host servers arent public FTP? That's what happened to mine.

Share this post


Link to post
Share on other sites

Just in case you forgot it: Did you enter the path of your xml into your player profile?

As you know I also had problems but now everything is working correctly. I use www.funpic.de as webhoster.

Share this post


Link to post
Share on other sites

Is it possible to have working specular and normal maps for the squad logo? Could make it look nicer.

Share this post


Link to post
Share on other sites

Brok3n -Not sure what you mean by not public FTP? This all should pull pull through http. Not sure what FTP has anything to do with it. But we did create the Arma folder under our public HTML directory if that's what you were talking about.

Sgt Major - yep we have the right path under our player profiles to each site we tried to host the files.

Not sure what could be our problem, I've even had our web guy comb the script files and he can't figure out why it's not working, now he's more frustrated than me LOL.

Share this post


Link to post
Share on other sites

Hi

First of all, apologies if I'm hijacking this thread or the problem someone else described here (the logo not showing up), but I have a related problem:

In game, our logo seems to show up fine on all the vehicles but its not showing up as an armbadge.

Any ideas on what could be wrong and/or suggestions on possible fix would be greatly appreciated.

Thanks in advance

Cheers

P

Share this post


Link to post
Share on other sites

Hi, i guess that's imposible for users that aren't part of a clan or

that don't have a URL where upload they're custom arm patch,

to store and use a image in they're HD, right?. The file must be a

.paa or it could also be a .jpg, a .gif, or a .png ?. Let's C ya

Share this post


Link to post
Share on other sites
Hi

First of all, apologies if I'm hijacking this thread or the problem someone else described here (the logo not showing up), but I have a related problem:

In game, our logo seems to show up fine on all the vehicles but its not showing up as an armbadge.

Any ideas on what could be wrong and/or suggestions on possible fix would be greatly appreciated.

Thanks in advance

Cheers

P

Armbadge feature is only since ArmA version 1.07.

Also, nobody know if you can apply normal/specular maps to the xml logo?

Share this post


Link to post
Share on other sites
Quote[/b] ]

Armbadge feature is only since ArmA version 1.07.

Also, nobody know if you can apply normal/specular maps to the xml logo?

Hehe, ok that explains why its not showing. tounge2.gif

Thanks for letting me know. smile_o.gif

Sorry, don't know about the normal/specular maps.

P

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  

×