Perl script to make idx files

Terrain / Theater editing

Moderators: Lone Wolf, Snake Man

Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Perl script to make idx files

Post 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. 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).]
Gordo
Snake Man
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

Post by Snake Man »

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.
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.

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."
Widowmaker
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

Post by Widowmaker »

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
Widmak
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

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 Image
Gordo
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

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
Gordo
Schumi
LeadPursuit
Posts: 51
Joined: 2000-09-10 22:01:01

Re: Perl script to make idx files

Post by Schumi »

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
Manfred "Schumi" Nelles
Image
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

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).]
Gordo
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

I'm not asking for a blood donation guys, just alittle advise, please.
Thanks,
G
Gordo
ccc
Chief of Staff
Posts: 4857
Joined: 2000-08-06 22:01:01

Re: Perl script to make idx files

Post by ccc »

Snake Man, help G out there pliz Image

G, post log/lat of your theater!
Snake Man
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

Post by Snake Man »

quote:Originally posted by Gordo:
I'm not asking for a blood donation guys, just alittle advise, please.
What are you trying to do?

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."
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

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).]
Gordo
Snake Man
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

Post by Snake Man »

quote: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.
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 tutorial

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 Image
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.
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.

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."
Gordo
Recruit
Posts: 30
Joined: 2000-12-30 23:01:01
Location: Dallas, Texas, USA

Re: Perl script to make idx files

Post by Gordo »

Thank you SnakeMan, may you bite the next mongoose on your tail. Image
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

Return to “Terrain / Theater”