Produces a bitonal map (white background, black foreground) in the file example.gif using the data in the file example.ft
-b bitonal mode, uses a white background and inverts the game object bitmaps to be black. Any background image or color resource file is ignored. This mode is used for producing maps that can be printed or emailed as the bitonal maps are small
-d debug mode currently draws boxes for the text clash resolution system and various ugly messages
-f followed by name of the resuting gif map file -g add a reference grid to the map axes, this is set at 10 game units
-i followed by name of directory to search for the game object images, this allows several sets of images to be used and managed
-l draw a legend of the game objects, this can take up a lot of room and is not subject to rigorous clash detection with existing text
-r followed by name of the resource file containing color definitions for the main elements of an ftmap, *ignored* if -b specified
-t if object tracks are enabled then plot them as Real Thrust vectors, not as Full Thrust cinematic movement plots
-v verbose mode it tells you whats its doing on
-w if background image is enabled, wallpaper/tile the background image instead of stretching it to fit
The first section defines the map parameters
<1> Title <2> Background gif filename or '-' to use a plain background <3> object tracks flag - 1 on, 0 off <4> min x co-ord (in game units) <5> min y co-ord (in game units) <6> max x co-ord (in game units) <7> max y co-ord (in game units) <8> number of pixels per game unit
<1> FT Example Map <2> - <3> 1 <4> -15.0 <5> 0.0 <6> 85.0 <7> 70.0 <8> 10.0
If using Field <3> object tracks on, their plotting varies according to the -t program flag being supplied or not.
If using the -t option the Real Thrust object tracks is displayed as a vector along the current heading (which must be specified in degrees not clock facing) with a magnitude of the current velocity, it shows where the ship will be next turn, if no thrust is applied.
This is the reverse of the cinematic movement object tracks, which show how the ship moved for the current turn.
<1> The game object CLASS NAME <2> The file name of the gif used for the class (pointing in direction 12) <3> Scale factor for displaying the gif <4> Legend flag ( 1==list class in legend, 0==don't list class in legend)
<1> Hyperion <2> ea_bc.gif <3> 1.0 <4> 1 *
<1> Name (can contain white space) <2> CLASS NAME exact match to <1> in [Game Object Image Section]) <3> x co-ord <4> y co-ord <5> heading (1-12)or(1-360) <6> facing (1-12) <7> velocity <8> change of heading delta (S=+ve, P=-ve e.g. p3 = -3, S2 = 2)
<1> NERGAL <2> Hyperion <3> 14.2 <4> 28.3 <5> 8 <6> 8 <7> 9 <8> 0 *
Field <5> is in clock facing (1-12) for cinematic movement and degrees (1-360) for real thrust movement.
Field <8> applies to cinematic movement only and is ignored if using the Real Thrust -t flag, although a dummy value must be present in the file.
FT Map Example - 1 -15.0 0.0 85.0 70.0 10.0 Omega ea_cv.gif 1.0 1S Hyperion ea_bc.gif 1.0 1 * JASON Omega 15.7 37.3 12 12 5 1 NERGAL Hyperion 14.2 28.3 8 8 9 0 *
The convention is for the image background to be black and the image foreground to be white or color, *breaking the convention will produce the wrong results*.
Color images are supported where the image background is black and the foreground various colors. For producing bitonal maps (white background black foreground) the conventional images are inverted by the program automatically.
The images can be any size but typically not too big (33x33). The images are scaled according to the scaling factor in the data file The images can be of any game object a ship, fighters, missiles, asteroids etc.
ftmap only supports a Color section at this time. The resource file can contain comments beginning with ';' on a separate line or the end of a line. The example shows the current color resources and what they apply to. The -r option colors are currently ignored if you use the -b flag.
;****************************************************************************** ; ftmap color resource file ; ; The section identifier [Color] must be present & spelled correctly ; ; Resource names are case insensitive & must be spelled correctly ; The '=' must follow the resource names. ; ; Color values are given as red blue and green values between 0 - 255 ; separated by white space ; ; History: ; 25-Feb-1997 Tim Jones ; Created ;****************************************************************************** ; [Color] ;------------------------------------------------------------------------------ ; r g b ; 0 - 255 comments ;------------------------------------------------------------------------------ backgroundColor = 0 30 0 ; background MUST always be specified first foregroundColor = 0 255 0 ; replaces white in the image bitmaps titleTextColor = 0 255 0 ; map title axesColor = 0 200 0 ; x & y axes axesgridColor = 0 100 0 ; axes grid axesTextColor = 0 220 100 ; axes text labelTextColor = 0 200 96 ; label text leaderColor = 0 150 96 ; leader line from label courseColor = 0 255 100 ; game object course tracks locusColor = 200 255 100 ; accurate centre of game object legendColor = 0 200 0 ; legend box legendTextColor = 0 200 100 ; legend text ;******************************************************************************
HEADER: FT Map Example HEADER: - HEADER: 1 HEADER: -15.0 HEADER: 0.0 HEADER: 85.0 HEADER: 70.0 HEADER: 10.0 HEADER: Omega HEADER: ea_cv.gif HEADER: 1.0 HEADER: 1 HEADER: Hyperion HEADER: ea_bc.gif HEADER: 1.0 HEADER: 1 HEADER: *There is an example awk program supplied example.awk that parses a game report example.rpt into the ftmap data file format example.ft.
Example:
awk -f example.awk example_header example.rpt > test.ft
ftmap -r ftmap.ini -i image -f example.gif < example.ft
Certain resources in the ftmap init file no longer have default values if they are undefined these are:
foregroundColor
leaderColor
locusColor
They can be commented out in the init file by using the comment character ';' semi-colon or omitted all together.
If a text label has a null value then the label should not be plotted. A null value is a line with nothing on it but a carriage return.
The distribution is in file
ftmap1-8-2_tar.gz - base pack README.txt - documentation README1-8-2.txt - additional release notes for 1.8.2 ftmap.c - source code ftmap.ini - resource file gd1.2.tar - gd image library Makefile - makefile example example.awk - awk program example example.hdr - turn header example example.rpt - example turn report example.ft - ftmap example data file uses example.tar images ex_img.tar - example images
$HOME/ftmap $HOME/ftmap/image
make ftmap
cd $HOME/ftmap ftmap -i image -f example.gif < example.ft
make ftmap
ftmap_1_8_2.zip - base pack README.txt - documentation ftmap.exe - the ftmap program ftmap.ini - resource file example.awk - awk program example example.hdr - turn header example example.rpt - example turn report example.ft - ftmap example data file uses example.tar images ex_img.zip - example images
C:\ftmap C:\ftmap\image
cd C:\ftmap ftmap -i image -f example.gif