Perl script to make idx files
Moderators: Lone Wolf, Snake Man
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Perl script to make idx files
I completed the maps and made the maps for the mission planning. I have a question about running the perl script to convert it to idx. What program do I use and where can I download it to run the script. I'm using Windows ME and apparently it doesn't come with Winperl.exe, or at least it doesn't come up when I run a search for it.
Thanks in advance for your help.
For a screen shot of my Big_Map, www.geocities.com/gordo613/CMap.jpg
G
[This message has been edited by Gordo (edited January 24, 2001).]
Thanks in advance for your help.
For a screen shot of my Big_Map, www.geocities.com/gordo613/CMap.jpg
G
[This message has been edited by Gordo (edited January 24, 2001).]
Gordo
-
- Commander-In-Chief
- Posts: 9811
- 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: Perl script to make idx files
I'm not sure what you're asking here... you want to make .idx files... but if you mean you want to me TE/InstantA/Campaign maps, then you should check out our tutorial for it.quote:Originally posted by Gordo:
I completed the maps and made the maps for the mission planning. I have a question about running the perl script to convert it to idx.
If you want to do something else, be more specific.
PMC TFW
Snake Man
Important 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."
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."
-
- Lt. General
- Posts: 1002
- Joined: 2000-10-30 23:01:01
- Gaming Interests: Falcon 4.0
- Editing Interests: Terrains
- Location: The Netherlands
Re: Perl script to make idx files
http://www.pmctactical.org/f4/downloads ... cripts.zip
In here you can find the scripts to use
tga2res.pl is the one you need
http://www.activestate.com/Products/Act ... nload.html
here you can find perl for windows
put the scripts and the files that you wanna
alter into the bin directory the perlinstaller creates
most of the scripts need to be run under MS-DOS prompt
In here you can find the scripts to use
tga2res.pl is the one you need
http://www.activestate.com/Products/Act ... nload.html
here you can find perl for windows
put the scripts and the files that you wanna
alter into the bin directory the perlinstaller creates
most of the scripts need to be run under MS-DOS prompt
Widmak
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
Thanks Widowmaker, and Snakeman. I was hoping someone could follow what I was asking, cause I wasn't real sure if I could rephrase it 

Gordo
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
Ok, I got the Perl program and loaded the images into the bin folder and then clicked on the tga2res.pl, (little yellow button in the bin folder. A Dos box popped open and I typed in tga2res.pl cuba-big.tga BIG_MAP_ID and the dos box closed when I hit the enter key. Nothing happened. I never used Perl before, so, this is new to me. LOL, obviously. Any pointers appreciated.
G
G
Gordo
-
- LeadPursuit
- Posts: 51
- Joined: 2000-09-10 22:01:01
Re: Perl script to make idx files
Perl is a script interpreter. You don't run the script, but run perl to parse the perl script.
When you are in the bin folder, use
perl tga2res.pl cuba-big.tga CUBABIG_ID
I'd not use BIG_MAP_ID, as this is exactly the same ID the korean big map uses. It could confuse F4.
If you want to put more than one picture into a file, use irc2res.pl.
Later,
Manfred "Schumi" Nelles
F4Terrain Team
When you are in the bin folder, use
perl tga2res.pl cuba-big.tga CUBABIG_ID
I'd not use BIG_MAP_ID, as this is exactly the same ID the korean big map uses. It could confuse F4.
If you want to put more than one picture into a file, use irc2res.pl.
Later,
Manfred "Schumi" Nelles
F4Terrain Team
Manfred "Schumi" Nelles


-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
Sorry, I won't try to run the Perl script anymore, but ah, could you elaborate in English alittle on how I get "parse" to happen when I'm in the bin. I assume it has something to do with the little yellow button?
Thanks for your advise.
G
[This message has been edited by Gordo (edited January 26, 2001).]
Thanks for your advise.
G
[This message has been edited by Gordo (edited January 26, 2001).]
Gordo
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
I'm not asking for a blood donation guys, just alittle advise, please.
Thanks,
G
Thanks,
G
Gordo
-
- Chief of Staff
- Posts: 4857
- Joined: 2000-08-06 22:01:01
Re: Perl script to make idx files
Snake Man, help G out there pliz 
G, post log/lat of your theater!

G, post log/lat of your theater!
-
- Commander-In-Chief
- Posts: 9811
- 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: Perl script to make idx files
What are you trying to do?quote:Originally posted by Gordo:
I'm not asking for a blood donation guys, just alittle advise, please.
Lets start from the BASICS and not get into intrigue details of perls etc.
PMC TFW
Snake Man
Important 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."
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."
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
Long -77.700 to -87.00
Lat 24.00 to 34.00
Ok I installed active state. I and trying to make the BIG_MAP and SMALL MAP. I moved the maps into the bin. There is a yellow button in the bin labeled, Tga2RS. I click it and a dos box opens which says Auto, I typed in the line just like in the tutorial and hit enter, and the box closes, then I look in the bin, and there is no BIG_MAP, just the same Big.tga I put in there.
[This message has been edited by Gordo (edited January 27, 2001).]
[This message has been edited by Gordo (edited January 27, 2001).]
Lat 24.00 to 34.00
Ok I installed active state. I and trying to make the BIG_MAP and SMALL MAP. I moved the maps into the bin. There is a yellow button in the bin labeled, Tga2RS. I click it and a dos box opens which says Auto, I typed in the line just like in the tutorial and hit enter, and the box closes, then I look in the bin, and there is no BIG_MAP, just the same Big.tga I put in there.
[This message has been edited by Gordo (edited January 27, 2001).]
[This message has been edited by Gordo (edited January 27, 2001).]
Gordo
-
- Commander-In-Chief
- Posts: 9811
- 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: Perl script to make idx files
Ok dont run that. open dos box, change to the bin dir where you copied the tga's and type there like we have in the tutorialquote:Originally posted by Gordo:
I and trying to make the BIG_MAP and SMALL MAP. I moved the maps into the bin. There is a yellow button in the bin labeled, Tga2RS.
perl tga2res.pl vietnam-big.tga BIG_MAP_ID
Which could be:
perl tga2res.pl cuba-big.tga CUBA_MAP_ID
And it will create the .idx .rsc files for you.
However I never had any problems using BIG_MAP_ID on ANY of the multiple maps I've made, but if it makes you feel better, then by all means use different name

Ok if you follow my example, you see the possible errors it displays, there is probably some because it wont create the .idx .rsc files for you.quote:I click it and a dos box opens which says Auto, I typed in the line just like in the tutorial and hit enter, and the box closes, then I look in the bin, and there is no BIG_MAP, just the same Big.tga I put in there.
If everything else fails, you can send me the map image .bmp file of which you want the maps to be made, but first try my example of the dos screen perl typing. And remember the "./" string right the beginning of that "./tga2res.pl" is meant of LINUX systems, it WONT work on DOS/win perl!
PMC TFW
Snake Man
Important 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."
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."
-
- Recruit
- Posts: 30
- Joined: 2000-12-30 23:01:01
- Location: Dallas, Texas, USA
Re: Perl script to make idx files
Thank you SnakeMan, may you bite the next mongoose on your tail. 
G
p.s. I did not realize you had to type "perl"
before the script. Worked just fine after I saw your example. Bless you, and you CCC for soliciting the help for me. Oh yeah, I named them BIG_MAP_ID and it works just fine.
G
[This message has been edited by Gordo (edited January 27, 2001).]
[This message has been edited by Gordo (edited January 27, 2001).]

G
p.s. I did not realize you had to type "perl"
before the script. Worked just fine after I saw your example. Bless you, and you CCC for soliciting the help for me. Oh yeah, I named them BIG_MAP_ID and it works just fine.
G
[This message has been edited by Gordo (edited January 27, 2001).]
[This message has been edited by Gordo (edited January 27, 2001).]
Gordo