Europe mod for AF - UI enhance

Europe theater

Moderators: Lone Wolf, Snake Man

Post Reply
User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Europe mod for AF - UI enhance

Post by Luk » 2010-09-02 23:54:50

I did some new flags for Eu theater:
Image
There is download link - zip file include also NATO flag (all flags flipped 8-bits):
http://leteckaposta.cz/383230752
US 1
NATO 2
NEUTRAL 3 (swizz, austria,sweden)
CIS - CCCP 4
PRC - UN 5 (strongly neutral)
WPACT 6 (emblem on red beckground)

Strange is, that NATO flag, I have found somewhere is 2950 in size (53*31 8bit), but all my flags (53*31 8bit) are just 2455 in size.
I did them using Photoshop...?

I did also updated maps for campaign
Here is download link (ZIP - unflipped jpgs - true colour)
http://leteckaposta.cz/845702446
have them also in flipped 8bit TGA format.
...and I am sorry for that sitting fly in bottom right corner of the AWACS screen - I wanted to beat off it first, but I thought better of it latter (look at the another scrap nearby UK :mrgreen: )

there are small crops/samples (but please check the zip file rather)
normal campaign map crop:
http://i844.photobucket.com/albums/ab4/ ... _partv.jpg

AWACS map crop:
http://i844.photobucket.com/albums/ab4/ ... D_part.jpg

and finally there is an optional funky screen for the red side - it is a postcard I have found about 15 years ago in my old 80 era sewn
:mrgreen: :
http://i844.photobucket.com/albums/ab4/ ... R_1024.jpg
Dont worry , there is no strong commie propaganda. There is written something like (really fancy-free translation) - "protection of the Czech airspace is not just a task for AD(SAMS) and air squadrons/units, but also army AD units" (quite stupid statement heh, but I really loved these girls as a young boy... :P )

Luk
Last edited by Luk on 2010-09-04 20:03:17, edited 4 times in total.

Snake Man
Commander-In-Chief
Posts: 9338
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
Contact:

Re: Europe mod for AF - UI enhance

Post by Snake Man » 2010-09-03 01:06:47

I just downloaded those two files, are these your contribution for the PMC Europe Theater that I should queue them for next release?
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
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-03 08:28:08

I just downloaded those two files, are these your contribution for the PMC Europe Theater that I should queue them for next release?
It is originaly made for updated European terrain - water, forrests, cities, river and road features..., all is extracted directly from new European terrain thr.
As I said in this post:
viewtopic.php?f=20&t=22166&start=40

I guess - I will release whole theater folder structure ( People are downloading gigabytes/terrabytes of movies in contemporary days...)
It will be the first release of newly tiled and textured Europe(prepreAlpha). I can study, howto put new UI files into the sim. Bu there is written in the wiki, that described process is obsolete...!? I dont know, perhaps it is obsolete for FF5, but not for AF. But still - It would be my first try to play with UI. I am getting very busy, so somebody experienced would speed up the process.

I can make secret link for You and Sherlock for example, you would try to implement files + add dogfight module. Then we can show the link.

But of course, you can use it for official/contemporary PMC Europe as well, but the terrain is not the same....
Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-03 11:27:04

There is an update of the big AWACS map. I have added water layer yet (for pilots not very familiarized to Europe geography).
I also outlined Kaliningrad borded (coastline previously missed).
http://leteckaposta.cz/310160157
Dead fly moved to the Norway.

Luk
Last edited by Luk on 2010-09-03 18:51:59, edited 1 time in total.

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

Re: Europe mod for AF - UI enhance

Post by Sherlock » 2010-09-03 16:59:06

Luk wrote:
I just downloaded those two files, are these your contribution for the PMC Europe Theater that I should queue them for next release?
It is originaly made for updated European terrain - water, forrests, cities, river and road features..., all is extracted directly from new European terrain thr.
As I said in this post:
viewtopic.php?f=20&t=22166&start=40

I guess - I will release whole theater folder structure ( People are downloading gigabytes/terrabytes of movies in contemporary days...)
It will be the first release of newly tiled and textured Europe(prepreAlpha). I can study, howto put new UI files into the sim. Bu there is written in the wiki, that described process is obsolete...!? I dont know, perhaps it is obsolete for FF5, but not for AF. But still - It would be my first try to play with UI. I am getting very busy, so somebody experienced would speed up the process.

I can make secret link for You and Sherlock for example, you would try to implement files + add dogfight module. Then we can show the link.

But of course, you can use it for official/contemporary PMC Europe as well, but the terrain is not the same....
Luk
Luk,
As I said before...I'd be glad to give you some guidance/help on the AF UI. Once you work with it a little bit you will get the hang of where the files are located, etc.
Sherlock
Victurous te Saluto

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-04 16:51:35

I tried to do mapfiles by myself. I installed Perl and studied wiki.
Ok, I was able to replace main campmap. But I was not able to find the place, awacs map is located(neither for default Balcan and Korea. So I replaced main campmap by AWACSmap for test purpose also...

Here are some pictures:
http://i844.photobucket.com/albums/ab4/Luk77/UI_ok2.jpg
http://i844.photobucket.com/albums/ab4/Luk77/new_UI.jpg
Awacs map tested in "normal" mode (it looks the same when awacs squdron selected of course-just the "icon symbology" is different):
http://i844.photobucket.com/albums/ab4/ ... Iawacs.jpg
here is default AF Balcan (we can see different Balcan campmap for AWACS here)
http://i844.photobucket.com/albums/ab4/ ... _AWACS.jpg

BTW - I also created small camp map, but did not use it. I think the current one is ok for such a small screen/resolution.

I think in real it is a little bit different, then in wiki page, due to the AF diferences (file locations/names). It was quite easy to find main campmaf files. But for the flag files it would be worse. I can prepare idx/rcs flag files quite easily I think. But there are many additional edits needed for flags activation. Without updated tutorial I should not try it.

Here my questions:
1)Where is the awacs map located please? (I guess this was not ever defined for PMC Eu, so I would enlarge my question - how to add working dedicated awacs screen please?

2) how to add flags to AF? We can imagine, I have europeflags.idx and europeflags.rsc files already created.

3) Howto activate/prepare working dogfight module for this theater (AF)? I was able to add about ten additional ACs into default Korean/Balcan AF dogfight module about 3 years ago. It worked and I can refresh this process. But in this Eu theatre, there is not dogfight module activated, it is completly missing.
This third point is the most important I think.

Regards
Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-04 20:49:45

Yep!
no 3) is down :D

It was easier, I expected.

UI screen:
http://i844.photobucket.com/albums/ab4/Luk77/dgfght.jpg
3D:
Image

Luk

User avatar
DoctorX
Recruit
Posts: 38
Joined: 2009-06-04 02:15:18
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.

Re: Europe mod for AF - UI enhance

Post by DoctorX » 2010-09-05 03:23:42

Luk wrote:1)Where is the awacs map located please? (I guess this was not ever defined for PMC Eu, so I would enlarge my question - how to add working dedicated awacs screen please?
Art\Resource\CampMap.rsc

Add your AWACS map to that, the same one that has the main campaign map (so there will be 2 files merged into the .rsc file). Name them as follows:

BIG_MAP_ID = Normal campaign map
BIG_AWACS_MAP_ID = AWACS background map

That's how it is for Korea. Should work the same for Europe.

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 10:05:02

Thanks for answer DoctorX.

Yes, you are true.
I did not realized 64 segment is 4 times smaller :lol: .
I looked at the file "Art\Resource\CampMap.rsc" (about 8MB) (Europe without AWACS is about 16MB) and started to looking for another 8MB file inside folder structure. But 64 theater is 4 times smaller, so the file is about 4MB + another 4MB Awacs file = 8MB both! Thanks.

Ok, but I dont know howto merge both map files.

I have two fliped tga files prepared in c:\Perl\bin:
BIG_MAP_ID.tga
BIG_AWACS_MAP_ID.tga

If I run these scripts:
./tga2res.pl BIG_MAP_ID.tga BIG_MAP_ID
./tga2res.pl BIG_AWACS_MAP_ID.tga BIG_AWACS_MAP_ID

it creates 4 files:
BIG_MAP_ID.idx
BIG_MAP_ID.rcs
BIG_AWACS_MAP_ID.idx
BIG_AWACS_MAP_ID.rcs

I dont know, howto merge them into single file (then rename to "campmap.*")
I tried this script:
./tga2res.pl BIG_AWACS_MAP_ID.tga BIG_MAP_ID
I hoped it merges "BIG_AWACS_MAP_ID.tga" into already created "BIG_MAP_ID.*" files.(about 16MB => enlarge to about 32MB)
But it does not work this way.
"BIG_MAP_ID.*" files stay still the same 16MB in size. (is it totally wrong way??? perhaps there is some dedicated script for mergeing 2 files??)

I tried "./tga2res.pl BIG_MAP_ID.tga BIG_AWACS_MAP_ID.tga BIG_MAP_ID" also. But it does not work too.

I think my new normal/AWACS campmapfile should be about 32MB.
Please help.

Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 11:58:04

I was thinking of it more and I guess I should use different script when adding multiple images.
So I need "irc2res.pl" + config file (just like in case of flags!)

The only problem is, I dont have irc2res.pl script. There is "irc2res1.pl" file in terrainscripts package/zip.
I googled "irc2res.pl", but downloaded corupted file in all cases... :cry:

Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 12:16:57

Ok, no 1) downed as well!

I have found irc2res.pl over the web and downloaded it sucefully (it really produces different result then "irc2res1.pl" file).
I did simple config file and I have merged campmap(33MB). I tested it, it works fine, campmap is auto-changed according to squadron choosed (AWACs or normal).
-----------------------------------------------------------------------------------------------------------------------------------

I was thinking about flags as well (2).
The process described in wiki is quite complicated.
I tried just a simple test. Installed Izrael MK2 and copied flag.* files into Eu folder.
I saw Izrael,Syria,Egypt etc images in my OOB window. I did not update anything else (but perhaps something was updated during Izrael installation already..?). I also tried default Balcan flags and it works as well.

But if I copy my Eu flag.* files, it does not work. I can see just solid colour filled rectangles, also OOB info is missing.

Luk
Last edited by Luk on 2010-09-05 15:04:22, edited 1 time in total.

Snake Man
Commander-In-Chief
Posts: 9338
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
Contact:

Re: Europe mod for AF - UI enhance

Post by Snake Man » 2010-09-05 13:19:00

No, you need to write the image names into the .irc file.
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
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 13:28:41

No, you need to write the image names into the .irc file.
Of course I wrote it.
This is my irc file, I used for flag.* creation.

Code: Select all

[LOADIMAGE] SMALLUS "SMALLUS.tga" 0 0
[LOADIMAGE] OOB_FLAGS_US "OOB_FLAGS_US.tga" 0 0
[LOADIMAGE] OOB_FLAGS_US_DRK "OOB_FLAGS_US_DRK.tga" 0 0
[LOADIMAGE] OOB_FLAGS_US_HRZ "OOB_FLAGS_US_HRZ.tga" 0 0
[LOADIMAGE] SMALLNATO "SMALLNATO.tga"
[LOADIMAGE] OOB_FLAGS_NATO "OOB_FLAGS_NATO.tga"
[LOADIMAGE] OOB_FLAGS_NATO_DRK "OOB_FLAGS_NATO_DRK.tga" 0 0
[LOADIMAGE] OOB_FLAGS_NATO_HRZ "OOB_FLAGS_NATO_HRZ.tga"
[LOADIMAGE] SMALLNEUTRAL "SMALLNEUTRAL.tga" 0 0
[LOADIMAGE] OOB_FLAGS_NEUTRAL "OOB_FLAGS_NEUTRAL.tga" 0 0
[LOADIMAGE] OOB_FLAGS_NEUTRAL_DRK "OOB_FLAGS_NEUTRAL_DRK.tga" 0 0
[LOADIMAGE] OOB_FLAGS_NEUTRAL_HRZ "OOB_FLAGS_NEUTRAL_HRZ.tga" 0 0
[LOADIMAGE] SMALLCCCP "SMALLCCCP.tga" 0 0
[LOADIMAGE] OOB_FLAGS_CCCP "OOB_FLAGS_CCCP.tga" 0 0
[LOADIMAGE] OOB_FLAGS_CCCP_DRK "OOB_FLAGS_CCCP_DRK.tga" 0 0
[LOADIMAGE] OOB_FLAGS_CCCP_HRZ "OOB_FLAGS_CCCP_HRZ.tga" 0 0
[LOADIMAGE] SMALLUN "SMALLUN.tga"
[LOADIMAGE] OOB_FLAGS_UN "OOB_FLAGS_UN.tga"
[LOADIMAGE] OOB_FLAGS_UN_DRK "OOB_FLAGS_UN_DRK.tga"
[LOADIMAGE] OOB_FLAGS_UN_HRZ "OOB_FLAGS_UN_HRZ.tga"
[LOADIMAGE] SMALLWPACT "SMALLWPACT.tga"
[LOADIMAGE] OOB_FLAGS_WPACT "OOB_FLAGS_WPACT.tga"
[LOADIMAGE] OOB_FLAGS_WPACT_DRK "OOB_FLAGS_WPACT_DRK.tga"
[LOADIMAGE] OOB_FLAGS_WPACT_HRZ "OOB_FLAGS_WPACT_HRZ.tga"
I have flag.rsc/idx already done now.
I guess the names I have used are new for F4. It is my problem I think.

But I guess - if I can avoid complicated task (putting it into whole F4 structure), I should try to decode used names in for example Balcan flag.* files. Then rename my images to match those names already hnown for F4 system. I did not try to reverse-engeneer flag.* files yet. But the names are prehaps still the same like in Flag tutorial (Balkan too)...?
It is just a wild thought.

Luk

EDIT: OK, I guess you are talking about "another" irc file (not config file) Snakeman.

Snake Man
Commander-In-Chief
Posts: 9338
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
Contact:

Re: Europe mod for AF - UI enhance

Post by Snake Man » 2010-09-05 13:49:15

When you unpack campmap.idx you get the .irc file, in this file the awacs map should be listed so it will show up in-game.
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
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 15:03:35

When you unpack campmap.idx you get the .irc file, in this file the awacs map should be listed so it will show up in-game.
But campmap problem is aready solved.

Only flag problem (no 2)) is not solved yet.

Luk

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

Re: Europe mod for AF - UI enhance

Post by Sherlock » 2010-09-05 17:59:03

Luk wrote:
When you unpack campmap.idx you get the .irc file, in this file the awacs map should be listed so it will show up in-game.
But campmap problem is aready solved.

Only flag problem (no 2)) is not solved yet.

Luk
Flags are still done the same as in the Wiki. You CANNOT use any other names than the Korea default; use the same name given in the .irc file for each flag. Just keep your europe teams correlated to the Korea team Names and the flags will work out correct:

Code: Select all

Team#        Korea Name       Europe Name
1                 US                   ?          
2                ROK                  ?
3                Japan                ?
4                Russia               ?
5                 PRC                 ?
6                 DPRK                ?
Sherlock
Victurous te Saluto

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 18:29:20

Flags are still done the same as in the Wiki. You CANNOT use any other names than the Korea default; use the same name given in the .irc file for each flag. Just keep your europe teams correlated to the Korea team Names and the flags will work out correct:
Yes Sherlock, I try to do it this way right now.
Instead of putting new names into the system - use already linked names and just change the raw data/bitmaps.
When it is done in separated file, it should not affect original theaters. That is why Izrael flag.* files work perfectly in Eu theater. They use old names for textures I guess.

But it is different according to wiki tutor. In wiki, we are putting new bitmap names into the system.
http://pmc.editing.wiki/doku.php?id=falcon4:mapflag

Here just for record (What I tried to do before- wiki):
1 - prepared flags.idx and flags.rsc files

2 - tried to make art\resource\flags.irc file inside EU folder structure
according to wiki - it should contain similar row [LOADRES] BALKANFLAGS_RESOURCE "art\resource\balkanflags"

I tried to add [LOADRES] FLAGS_RESOURCE "art\resource\flags"

I was not sure about this second step, so I searched default AF folders. There are only idx/rcs files for flags.
I did not find any "irc" file for flags. It is the first difference.

3 - I tried to update art\Main_res.lst file (adding path to new "irc" file)
4- I edited art\campaign\intel\int_win.scf file according to wiki
5- I tried to edit art\campaign\select\ChalLvl.scf file. But there is no "BITMAP" string in this file (so I did not).
second difference
6 - I edited art\planner\oob.scf file. I changed desired "BUTTONIMAGES".
7 - I skiped to edit tac_pua.scf file. I guess it is related to the TE (tactical engagement)
8 - I edited art\main\imageids.id file to match my bitmap names.

The result was "partial sucess".
Image

But partial means I can not to do it this way.
So the wiki tutorial is obsolete for AF I think.

I must rename all flag files now(OOB_FLAGS_WPACT_DRK to OOB_FLAGS_NKOREA_DRK for example). I must make new config file and build new flags.* pair. Ufff

Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 19:04:37

Is it possible to find a script for "idx/rcs" back to "tga" conversion please?

Luk

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

Re: Europe mod for AF - UI enhance

Post by Sherlock » 2010-09-05 19:17:01

Luk,
when working on AF it is very, very handy to have the old Falcon 4.0 loaded with the SuperPAK 4.2 patch applied. This is because AF is very closely based off of the SP4.2 patch code base.

From the SP4.2 you can get teh .irc files you need to work on AF. Can you load the old Falcon 4.0 with the SP4.2 patch? If not I can upload the .irc files if you can't.
Luk wrote:Is it possible to find a script for "idx/rcs" back to "tga" conversion please?

Luk
The perl file "ProcIDX.pl" does this I think?
Last edited by Sherlock on 2010-09-05 19:45:57, edited 1 time in total.
Sherlock
Victurous te Saluto

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-09-05 19:40:25

Luk,
when working on AF it is very, very handy to have the old Falcon 4.0 loaded with the SuperPAK 4.2 patch applied. This is because AF is very closely based off of the SP4.2 patch code base.

From the SP4.2 you can get teh .irc files you need to work on AF. Can you load the old Falcon 4.0 with the SP4.2 patch? If not I can upload the .irc files if you can't.
I have problem to instal SP4 for some reason. I have still F4 vanilla install in C: root protected. I guess for sucessfull install I should clean up the regiser or something.
Your uppload is very wellcome Sherlock, Thanks.

But for now - to be clear - I guess i will not bother with "irc" files. I will just create new idx/rcs pair. I will let Eu folder structure rather "minimalistic". As I said - in Israel everything works fine and there are only few(almost no) additional files. I guess they took original flags.* pair and changed just about 5 flags/bitmaps.

Original AF korean flags.* files:
flags.idx 3 068 in size
flags.rsc 83 908 in size

Israel files are exactly same in size. So beyond the used flags, they have the same amount of balast - I guess.
But I dont have all unpacked flags here. Just the flags I created + NATO flag. I can not find "reverse" translation script for converting default flags.* 2 tga.

Luk
Last edited by Luk on 2010-09-05 20:09:02, edited 3 times in total.

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

Re: Europe mod for AF - UI enhance

Post by Sherlock » 2010-09-05 19:47:41

Luk wrote:
But I dont have all unpacked flags here. Just the flags I created + NATO flag. I can not find "reverse" translation script for converting default flags.* 2 tga.
Luk
You already have that file. It's the "ProcIDX" file that unpacks the rsc file to the TGA files.
Sherlock
Victurous te Saluto

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-11-24 00:13:43

I have found some unused ground unit/objectives icons in F4. So I created 4 new icons for the fake NAVAL units.

I did it very carefully, let the palette colors at the same place/slots. But unfortunaly I have lost the transparency as a result.
(unmodified airborne icons are ok in the picture)
Image
I also tried to convert unmodified ground icons (fresh reverse-converted TGA images/icons - got them via reverse script) back to rcs/idx pair, but the result was opaque too. It means my new icons are probably innocent. There is probably something bad with "irc2res.pl" or "*.irc" file. (I guess the script is ok, I just do something wrong during the conversion I think)
irc file:

Code: Select all

[LOADIMAGE] ICON_ASTRIP_HORZ "ICON_ASTRIP_HORZ.tga" 9 5
[LOADIMAGE] ICON_ASTRIP_VERT "ICON_ASTRIP_VERT.tga" 5 9
[LOADIMAGE] ICON_ASTRIP_135 "ICON_ASTRIP_135.tga" 8 8
[LOADIMAGE] ICON_ASTRIP_45 "ICON_ASTRIP_45.tga" 8 8
[LOADIMAGE] ICON_ASTRIP_LNG_HORZ "ICON_ASTRIP_LNG_HORZ.tga" 14 5
[LOADIMAGE] ICON_ASTRIP_LNG_VERT "ICON_ASTRIP_LNG_VERT.tga" 5 14
[LOADIMAGE] ICON_ASTRIP_LNG_45 "ICON_ASTRIP_LNG_45.tga" 11 10
[LOADIMAGE] ICON_ASTRIP_LNG_135 "ICON_ASTRIP_LNG_135.tga" 11 10
[LOADIMAGE] ICON_INFANTRY "ICON_INFANTRY.tga" 11 8
[LOADIMAGE] ICON_MECINFANTRY "ICON_MECINFANTRY.tga" 11 8
[LOADIMAGE] ICON_ARMOR "ICON_ARMOR.tga" 11 8
[LOADIMAGE] ICON_SPARTIL "ICON_SPARTIL.tga" 11 8
[LOADIMAGE] ICON_ARMAVIATION "ICON_ARMAVIATION.tga" 11 8
[LOADIMAGE] ICON_AIRINFANT "ICON_AIRINFANT.tga" 11 8
[LOADIMAGE] ICON_ARMCAV "ICON_ARMCAV.tga" 11 8
[LOADIMAGE] ICON_ENGINEER "ICON_ENGINEER.tga" 11 8
[LOADIMAGE] ICON_HQ "ICON_HQ.tga" 11 8
[LOADIMAGE] ICON_AIRMOBINFANT "ICON_AIRMOBINFANT.tga" 11 8
[LOADIMAGE] ICON_TOWEDART "ICON_TOWEDART.tga" 11 8
[LOADIMAGE] ICON_AIRDEFENSE "ICON_AIRDEFENSE.tga" 11 8
[LOADIMAGE] ICON_RADAR "ICON_RADAR.tga" 10 8
[LOADIMAGE] ICON_BRIDGE_HORZ "ICON_BRIDGE_HORZ.tga" 9 5
[LOADIMAGE] ICON_GEOPOINT "ICON_GEOPOINT.tga" 6 6
[LOADIMAGE] ICON_NAVBEACON "ICON_NAVBEACON.tga" 9 7
[LOADIMAGE] ICON_INDUSTRY "ICON_INDUSTRY.tga" 7 10
[LOADIMAGE] ICON_COM_CONTRL "ICON_COM_CONTRL.tga" 8 9
[LOADIMAGE] ICON_TOWN "ICON_TOWN.tga" 3 3
[LOADIMAGE] ICON_CITY "ICON_CITY.tga" 4 4
[LOADIMAGE] ICON_VILLAGE "ICON_VILLAGE.tga" 3 3
[LOADIMAGE] ICON_BIGCITY "ICON_BIGCITY.tga" 4 4
[LOADIMAGE] ICON_NUCLEAR "ICON_NUCLEAR.tga" 6 6
[LOADIMAGE] ICON_BRIDGE_VERT "ICON_BRIDGE_VERT.tga" 5 9
[LOADIMAGE] ICON_DEPO "ICON_DEPO.tga" 7 8
[LOADIMAGE] ICON_FIXARTIL "ICON_FIXARTIL.tga" 6 9
[LOADIMAGE] ICON_PORT "ICON_PORT.tga" 7 12
[LOADIMAGE] ICON_SAM "ICON_SAM.tga" 6 9
[LOADIMAGE] ICON_ARMYBASE "ICON_ARMYBASE.tga" 8 10
[LOADIMAGE] ICON_MULTIROCKET "ICON_MULTIROCKET.tga" 11 8
[LOADIMAGE] ICON_SURFACEMISS "ICON_SURFACEMISS.tga" 11 8
[LOADIMAGE] ICON_SUPPLY "ICON_SUPPLY.tga" 11 8
[LOADIMAGE] ICON_SHIP_SOUTH "ICON_SHIP_SOUTH.tga" 7 7
[LOADIMAGE] ICON_AIR_SOUTH "ICON_AIR_SOUTH.tga" 7 5
[LOADIMAGE] ICON_HELI_SOUTH "ICON_HELI_SOUTH.tga" 11 7
[LOADIMAGE] ICON_SUB_SOUTH "ICON_SUB_SOUTH.tga" 7 5
[LOADIMAGE] ICON_MISS_SOUTH "ICON_MISS_SOUTH.tga" 8 6
[LOADIMAGE] ICON_SHIP_NORTH "ICON_SHIP_NORTH.tga" 7 7
[LOADIMAGE] ICON_AIR_NORTH "ICON_AIR_NORTH.tga" 7 5
[LOADIMAGE] ICON_HELI_NORTH "ICON_HELI_NORTH.tga" 11 7
[LOADIMAGE] ICON_SUB_NORTH "ICON_SUB_NORTH.tga" 7 5
[LOADIMAGE] ICON_MISS_NORTH "ICON_MISS_NORTH.tga" 8 5
[LOADIMAGE] ICON_SHIP_UNKNOWN "ICON_SHIP_UNKNOWN.tga" 9 10
[LOADIMAGE] ICON_AIR_UNKNOWN "ICON_AIR_UNKNOWN.tga" 9 5
[LOADIMAGE] ICON_HELI_UNKNOWN "ICON_HELI_UNKNOWN.tga" 9 6
[LOADIMAGE] ICON_SUB_UNKNOWN "ICON_SUB_UNKNOWN.tga" 9 5
[LOADIMAGE] ICON_MISS_UNKNOWN "ICON_MISS_UNKNOWN.tga" 9 10
[LOADIMAGE] ICON_ASTRIP_SEOUL "ICON_ASTRIP_SEOUL.tga" 10 17
[LOADIMAGE] ICON_ASTRIP_VERT_DOUBLE "ICON_ASTRIP_VERT_DOUBLE.tga" 7 15
[LOADIMAGE] ICON_ASTRIP_SUNCHON "ICON_ASTRIP_SUNCHON.tga" 11 11
[LOADIMAGE] ICON_ASTRIP_PANGHYON "ICON_ASTRIP_PANGHYON.tga" 14 12
[LOADIMAGE] ICON_ASTRIP_KUNSAN "ICON_ASTRIP_KUNSAN.tga" 13 15
[LOADIMAGE] ICON_ASTRIP_KIMPOINT "ICON_ASTRIP_KIMPOINT.tga" 12 11
[LOADIMAGE] ICON_ASTRIP_ONCHON "ICON_ASTRIP_ONCHON.tga" 11 23
[LOADIMAGE] ICON_ASTRIP_TOKSAN "ICON_ASTRIP_TOKSAN.tga" 12 11
[LOADIMAGE] ICON_ASTRIP_WANSAN "ICON_ASTRIP_WANSAN.tga" 13 13
[LOADIMAGE] ICON_FIXED_WING "ICON_FIXED_WING.tga" 11 8
[LOADIMAGE] ICON_PACKAGE "ICON_PACKAGE.tga" 11 11
[LOADIMAGE] ICON_VICTORY_CONDITION "ICON_VICTORY_CONDITION.tga" 11 12
[LOADIMAGE] ICON_CARRIER "ICON_CARRIER.tga" 19 6
[LOADIMAGE] ICON_CRUISER "ICON_CRUISER.tga" 19 7
[LOADIMAGE] ICON_DESTROYER "ICON_DESTROYER.tga" 19 8
[LOADIMAGE] ICON_FRIGATE "ICON_FRIGATE.tga" 19 7
[LOADIMAGE] ICON_PTBOAT "ICON_PTBOAT.tga" 10 6
[LOADIMAGE] ICON_TANKER "ICON_TANKER.tga" 17 5
[LOADIMAGE] ICON_SUPPLYSHIP "ICON_SUPPLYSHIP.tga" 18 6
[LOADIMAGE] ICON_SUBMARINE "ICON_SUBMARINE.tga" 17 6

What are those two numbers in the end of each row?
Why did my new icons lost transparency please?

Thanks
Luk

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-11-24 14:46:35

I am starting to anticipate slowly, where the problem could be hidden.
There are various flags/fields, the IDX/RSC pair contains.
So I guess these values can be setted during the conversion (via irc file- I guess via these mystery numbers)

what I have extracted from this wiki:
http://www.pmctactical.org/wiki/doku.ph ... ansparency

Code: Select all

UseColorKey = 0x40000000 The image uses the first color in the palette (or magenta, for non-paletted images) as the color key (transparency color) – any pixels using that color should be rendered as transparent
But as I said before - even decompile/compile process destroyed the transparency in my case...?

Luk

monster
2nd Lt
Posts: 78
Joined: 2005-03-20 23:01:01
Location: Greece

Re: Europe mod for AF - UI enhance

Post by monster » 2010-11-24 19:17:35

I think the error is in your irc file. Instead of [LOADIMAGE] it should read [LOADTRANSIMAGE].
East Mediterranean Front (EMF) Developer
http://forum.eastmedfront.net

User avatar
Luk
Brig. General
Posts: 455
Joined: 2007-04-23 09:59:36

Re: Europe mod for AF - UI enhance

Post by Luk » 2010-11-24 23:28:57

I think the error is in your irc file. Instead of [LOADIMAGE] it should read [LOADTRANSIMAGE].
Thank you very much again Monster!
I checked my irc2res.pl script, but there was no "LOADTRANSIMAGE" text string inside script. But I tried it anyway - the result were just 8 bit small useless files. So i searched for another perl script and have found "irc2res1.pl" file. This one contains "LOADTRANSIMAGE" string and can also read "LOADTRANSIMAGE" parameter irc file. The new icons are transparent now. :D

Thank you Monster.
Luk

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests