Theater Label help needed

Terrain / Theater editing

Moderators: Lone Wolf, Snake Man

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Theater Label help needed

Post by Sherlock » 2007-02-28 19:09:34

I am trying to create a new theater label for the Iran theater but I have hit a snag with the file format (this is for Allied Force). It shows up in the UI as garbled and colors are all screwed up.

I unpacked the existing Balkans file (using the perl scripts) and found it had the following specs:

99x35 pixels
72 pixels per inch
1 layer
24 bit/ 16 million colors
tga file

When I go to save the original it says it is uncompressed 24 bit.

Are these the correct file formats for the theater label file in the theaterlabel.rsc file? (the actual file name inside the theaterlabel.rsc resource file is "VICTORY_LABEL_BLU.tga").

Do I have to add a transparency layer to get it to show up correctly in the UI?

Or am I doing something wrong? The ultimate tutorial doesn't address remaking this label and I did a search and found nothing specific to this topic.

thanks.
Sherlock
Victurous te Saluto

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Post by T_Rex » 2007-02-28 19:15:43

What program are you using to make/convert the tga?

For F4, it also needs to be "indexed" as opposed to RGB. That's in PhotoShop terminology - other apps may call it something else.

What I had to do for the F4 UI, also, is to index it once (using a color table, or color profile, depending on the app), then change the last color (or first, depending on the app) ;) to some color that isn't actually in the pic. Otherwise, it'll show as transparent.

But, not all of the graphics use transparency, so that second issue might not be a problem for you.

In my experience though, the strange corruption you see is from having the tga in RGB mode instead of indexed. :)

I think.

Edit - in the re-reading, I'm not sure that makes sense, so if you have questions, let me know. :)
Sic Semper tyrannosauro.

Snake Man
Commander-In-Chief
Posts: 9371
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: Theater Label help needed

Post by Snake Man » 2007-02-28 19:40:03

I moved this topic to Terrain theater creation since this is not general F4 topic.
Sherlock wrote:I unpacked the existing Balkans file (using the perl scripts)
Thats strange, I took I think ODSAF theaterlabel.rsc and just edited the tga in there, works fine.
The ultimate tutorial doesn't address remaking this label
Heh there is a good reason for this, ultimate theater tutorial was written when F4AF wasn't even born yet ;)
Important PMC Tactical Web Hosting Update, PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-02-28 20:46:27

T_Rex wrote:What program are you using to make/convert the tga?

For F4, it also needs to be "indexed" as opposed to RGB. That's in PhotoShop terminology - other apps may call it something else.

What I had to do for the F4 UI, also, is to index it once (using a color table, or color profile, depending on the app), then change the last color (or first, depending on the app) ;) to some color that isn't actually in the pic. Otherwise, it'll show as transparent.

But, not all of the graphics use transparency, so that second issue might not be a problem for you.

In my experience though, the strange corruption you see is from having the tga in RGB mode instead of indexed. :)

I think.

Edit - in the re-reading, I'm not sure that makes sense, so if you have questions, let me know. :)
I am using Paint Shop Pro 7 to do my graphics work (Never could figure out Photoshop--too complex ! ;) )

The only difference between the original and the one I made that I can see is something called "bits per plane". In the original it is 15 bits and in the one I made it is 24 bits per plane. I don't know what that means.

I tried changing the image back to an indexed image (i.e., have to add transparency in PSP7 in order to do this) but when I go to save it it converts it back to the other kind (non-indexed image), whatever that is called. ;) I don't know why. I can create indexed images at 8bit/256 colors no problem. Maybe it's a limitation of PSP7.

I'm going to load up Photoshop CS and see if I can have any luck with that.
Sherlock
Victurous te Saluto

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Post by T_Rex » 2007-02-28 20:57:52

I have an older version of PS, but I think the same idea would work in PSP.

Also, I think I had to drop down to 256 colors, using a filter (selective or perceptual or something like that) which really retained most of the colors anyway. Then save that as indexed.
Sic Semper tyrannosauro.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-02-28 21:12:39

Well, interesting...I did what you suggested and it worked:

Image

it's now a 8 bit/ 256 color image but I think it looks fine. Comments?
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9371
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Post by Snake Man » 2007-02-28 21:22:50

Looks okay, can you please send me the idx/rsc so it will be included in the next release?
Important PMC Tactical Web Hosting Update, PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-02-28 21:26:03

Snake Man wrote:Looks okay, can you please send me the idx/rsc so it will be included in the next release?
Sure. Here's the download link:

http://www.mediafire.com/?9aynmmhzcjd
Sherlock
Victurous te Saluto

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Post by T_Rex » 2007-03-01 02:27:55

Looks pretty cool (for AF). ;) :)
Sic Semper tyrannosauro.

Return to “Terrain / Theater”

Who is online

Users browsing this forum: ClaudeBot [Bot] and 0 guests