Title: bi2cf
Author: Florian Dietrich <n8flo@yahoo.de>
Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
Date: Jan 30 2003
Manual: [FIXME: manual]
Source: [FIXME: source]
Language: English

"BI2CF" "6" "Jan 30 2003" "[FIXME: source]" "[FIXME: manual]"
-----------------------------------------------------------------
* (re)Define some macros
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
toupper - uppercase a string (locale-aware)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ \\$* .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz .. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SH-xref - format a cross-reference to an SH section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\} .toupper \\$* \\$* .\} .. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SH - level-one heading that works better for non-TTY output
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
put an extra blank line of space above the head in non-TTY output
.\} .nr an-level 1 .set-an-margin .nr an-prevailing-indent \\n[IN] .HTML-TAG ".NH \\n[an-level]" .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 \." make the size of the head bigger if n (TTY output), use uppercase
.toupper \\$* .\} .nr an-break-flag 0 if not n (not TTY), use normal case (not uppercase)
\\$1 if not n (not TTY), put a border/line under subheading
\l'\n(.lu' .\} .. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SS - level-two heading that works better for non-TTY output
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.nr an-level 1 .set-an-margin .nr an-prevailing-indent \\n[IN] .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 \." make the size of the head bigger .. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BB/BE - put background/screen (filled box) around block of text
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.gcolor red .di BX .\} .. .\}

.di .gcolor .nr BW \\n(.lu-\\n(.i .nr BH \\n(dn+.5v \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] .\} \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] .\}

 
.\} .. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BM/EM - put colored marker in margin next to block of text
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.gcolor red .di BX .\} ..

.di .gcolor .nr BH \\n(dn \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]

 
.\} .. -----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
"Name"
bi2cf - a map conversion tool for Crimson Fields
"Synopsis"
.fam C

\w'bi2cf 'u bi2cf mapname [-p 1|2] [-f b|1|2|h] [-l] [-t mapname] [-i mapinfo] [-o outfile] [-d mapdir] [-O destdir] [-q] .fam .fam C

\w'bi2cf 'u bi2cf {-h | -v} .fam

"Description"

bi2cf is a map conversion tool for Crimson Fields. It takes the data files of maps from Battle Isle, Battle Isle Data Disk 1 or 2, or History Line 1914-1918 and converts them into map sources usable with the cfed(6) map compiler for Crimson Fields. bi2cf can handle both uncompressed maps and levels crunched with TPWM.

For some units and tiles there are no corresponding counterparts in Crimson Fields. These cases are mapped to similar ones if available. As a result some maps will not be as balanced as the originals, others may be unwinnable, and still others may even fail to compile. If this happens the map in question needs to be adjusted manually.

"Options"

-d mapdir

Set the location of the Battle Isle map files.

-f b|1|2|h

Force map type to Battle Isle / BI Data Disk 1 / BI Data Disk 2 / History Line, respectively. Use this option when map format autodetection does not work correctly. Maps from BI Data Disk 1 will always be detected as standard Battle Isle maps, so you have to use -f 1 in that case.

-h

Print a usage message on standard output and exit.

-i mapinfo

Set map info message.

-l

Skip last row and column of the map. This is necessary for maps from the PC version of Battle Isle.

-o outfile

Write map to file outfile. Default file name is \FCmapname.src\F[].

-O destdir

Set target directory for the converted map. This setting is ignored if a map name was given using the -t option.

-p 1|2

Set default number of players for this map.

-q

Run quietly. Don\'t print processing information on standard output.

-t mapname

Set title and file name for the converted map. Default is \FCmaptype-mapname\F[].

-v

Print version information on standard output and exit.

"See Also"

cfed(6), crimson(6)

"Copyright"

Copyright \(co 2002 Florian Dietrich

This software is distributed under the terms of the \m[blue]GNU General Public License\m[]\s-2\u[1]\d\s+2 (GPL).

"Author"

Florian Dietrich <n8flo@yahoo.de>

Author.

"Notes"
" 1." 4
GNU General Public License