User Tools

Site Tools


falcon4:tools:perlscripts

Table of Contents

Perl Scripts

Perl Scripts by Julian “Codec” Onions

Perl is a script interpreter. You don't run the script, but run perl to parse the perl script.

Download the TerrainScripts.rar.

There are these following scripts:

Name Function
cred2res.pl credits?
dem2lf.pl convert dem data to L2
generate.pl ?
irc2res1.pl converts .irc to .rsc
mkpal.pl creates fartiles (.pal) palette
procae.pl feature airport?
procidx.pl ?
procidx1.pl converts .idx to .tga
procppp.pl feature?
proctbin.pl ?
tbin2txt.pl converts texture.bin to text
tga2res.pl ?
txt2tbin.pal converts text to texture.bin

Usage

PERL is a DOS-based program.

  1. Go to your DOS prompt. (You should get a black screen w/ white letters)
  2. Type in CD\, that should bring you to your root directory (For example C
  3. Type CD\perl\bin and that should bring up something like this,,, C:\perl\bin
  4. You are in PERL now.
  5. To use PERL you have to type perl to run the PERL scripts (For example C:\perl\bin perl tga2res.pl syria_small.jpg SMALL_MAP_ID) then hit the enter key. That will run the script for you.

Not perfect but it should get you moving in the right direction.

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.

More usage information can be found in our various tutorial parts.

Active Perl

For windows you need to download Active Perl.

falcon4/tools/perlscripts.txt · Last modified: 2017-10-13 20:22 by snakeman