Page 1 of 1

scripting stuff in the wiki

Posted: 2010-05-21 12:22:13
by toonces
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?

Re: scripting stuff in the wiki

Posted: 2010-05-21 23:47:07
by Sherlock
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

Re: scripting stuff in the wiki

Posted: 2010-05-22 11:18:24
by Snake Man
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.

Re: scripting stuff in the wiki

Posted: 2010-05-22 13:04:50
by toonces
Thank you gentlemen.

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

-Toonces out!

Re: scripting stuff in the wiki

Posted: 2010-05-22 18:54:22
by toonces
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.

Re: scripting stuff in the wiki

Posted: 2010-05-24 02:42:32
by Sherlock
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

Re: scripting stuff in the wiki

Posted: 2010-05-24 15:01:52
by Snake Man
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.