scripting stuff in the wiki

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

Moderators: Snake Man, Lone Wolf

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

scripting stuff in the wiki

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

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, 10:01:01 PM
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, 11:47:07 PM

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: 8560
Joined: 2000-07-31, 10:01:01 PM
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: scripting stuff in the wiki

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

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 since 1984

Editing knowledge, visit PMC Editing Wiki
Addon manuals, visit PMC addons/mods online manuals
View our videos in PMC Youtube channel.

PMC Tactical forum Advanced Search is power.

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

Re: scripting stuff in the wiki

Post by toonces » 2010-05-22, 01:04:50 PM

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, 07:43:12 PM

Re: scripting stuff in the wiki

Post by toonces » 2010-05-22, 06:54:22 PM

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, 10:01:01 PM
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 AM

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: 8560
Joined: 2000-07-31, 10:01:01 PM
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: scripting stuff in the wiki

Post by Snake Man » 2010-05-24, 03:01:52 PM

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 since 1984

Editing knowledge, visit PMC Editing Wiki
Addon manuals, visit PMC addons/mods online manuals
View our videos in PMC Youtube channel.

PMC Tactical forum Advanced Search is power.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest