User Tools

Site Tools


falcon4:tools:perlscripts

Falcon 4 Perl Scripts

Falcon 4.0 Forum, Falcon 4 Home, Falcon 4 Campaign, Falcon 4 Cockpits, Falcon 4 Database, Falcon 4 File Formats, Falcon 4 SRTM Terrain, Falcon 4 Terrain, Falcon 4 Textures, Falcon 4 Tools

Falcon 4 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. PMCTODO download missing!?

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: 2024/07/31 10:27 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.