scripting stuff in the wiki

F4Browse, CATE, Tacedit, Terrainview & TheaterMaker etc utility related

Moderators: Lone Wolf, Snake Man

Post Reply
toonces
Brig. General
Posts: 484
Joined: 2008-07-20 19:43:12

scripting stuff in the wiki

Post by toonces » 2010-05-21 12:22:13

SM,
I have never understood this, and it's becoming an issue in my work.

In the wiki, in many places, you have lines like this:

unpack them with ./procidx1.pl campmap.idx and you have BIG_MAP_ID.tga file, replace this korean tga with your own BIG_MAP_ID.tga you created a minute ago. run the next script like:

./irc2res1.pl campmap.irc
note the .IRC end, it should now say:

./irc2res1.pl campmap.irc
Add BIG_MAP_ID.tga as ID BIG_MAP_ID
Converted palette now is 256

I don't understand what you're talking about here. Where do you type "./irc2res1.pl..." etc.? What program am I supposed to be running that reads that line?

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: scripting stuff in the wiki

Post by Sherlock » 2010-05-21 23:47:07

You need to run the perl add-on found at: http://www.perl.org/get.html

Install that, then run the perl scripts you can download here: http://www.pmctactical.org/f4/downloads ... cripts.rar

Search on "perl script" here at PMC to learn more about what the scripts do
Sherlock
Victurous te Saluto

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: scripting stuff in the wiki

Post by Snake Man » 2010-05-22 11:18:24

Good point, there needs to be specific page to teach how to run perl scripts in linux and windows. I just that on my TODO list. Thanks for pointing it out.
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."

toonces
Brig. General
Posts: 484
Joined: 2008-07-20 19:43:12

Re: scripting stuff in the wiki

Post by toonces » 2010-05-22 13:04:50

Thank you gentlemen.

SM, I have a project that might interest you. More later.

-Toonces out!

toonces
Brig. General
Posts: 484
Joined: 2008-07-20 19:43:12

Re: scripting stuff in the wiki

Post by toonces » 2010-05-22 18:54:22

Guys, I can't figure this out at all.

I downloaded Strawberry perl, installed to C:\strawberry

I can run it and get a command prompt to my documents folder.

I downloaded the terrainscripts.

I copied the Tga2res.pl script to strawberry folder, to my docs folder, and to my downloads folder. I can't figure out how to get this thing to work.

I created a new 224x86 16 bit .tga picture for a campaign select picture (CAMP_SELECT_1). I want to try to get this into my Panama UI but I just can't figure out the steps to get this program to do what I want it to do.

Thanks for any help you can provide. This is completely new to me.

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: scripting stuff in the wiki

Post by Sherlock » 2010-05-24 02:42:32

toonces wrote:Guys, I can't figure this out at all.

I downloaded Strawberry perl, installed to C:\strawberry

I can run it and get a command prompt to my documents folder.

I downloaded the terrainscripts.

I copied the Tga2res.pl script to strawberry folder, to my docs folder, and to my downloads folder. I can't figure out how to get this thing to work.

I created a new 224x86 16 bit .tga picture for a campaign select picture (CAMP_SELECT_1). I want to try to get this into my Panama UI but I just can't figure out the steps to get this program to do what I want it to do.

Thanks for any help you can provide. This is completely new to me.
Toonces,
I've never tried the Strawberry version; don't know if it will work or not. I've only done it with Activeperl. They have a free community version here: http://www.activestate.com/activeperl/downloads
Sherlock
Victurous te Saluto

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: scripting stuff in the wiki

Post by Snake Man » 2010-05-24 15:01:52

In windows using active perl I run the perl scripts like this:

Code: Select all

c:\perl\bin\perl.exe <SCRIPT_NAME> <SOURCE_FILE>
I'll write a basic script usage wiki page as soon as I have some time.
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."

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests