FXTPATCH version 1.2 by Darren Latham
--------------------------------------

This program is provided as is.  I make no guarantees that the program
will always function as intended, but that's software for you.  You use
this program entirely at your own risk.  IF you don't backup your FXT files
then you can always restore them from the CD.  This patch has been tested
with all of the language files including the rather pathetic special.fxt.

All feedback to : Darren@briarlea.softnet.co.uk

Version	New feature
-------	------------------------------------------------------------------
1.1 Ability to add messages with IDs < 1001 after the message 1001
1.1	Automatic detection of encrypted or decrpyted files when loading.
	Should prevent multiple encrypt/decrypt errors.
1.1	Ability to create patch files based on the differences between two
	complete FXT files.
1.2 Ability to work with any language files, and, you can now add any
    message numbers you like.  Also fixed a bug which prevented the file
    from ever being loaded (Duh).
--------------------------------------------------------------------------

Here are the command line paramters.  I'll discuss how to use them in
a monent.

-patch		This should be followed by the patch file filename
-out		This should be followed by the output filename.  If
            this command line parameter is not specified, the
            input file will be used as the output file.
-undo		This should be followed by the filename of the 'UNDO' file
-encrypt	This means that you just wish to encrypt a text file
-decrypt	This means that you just wish to decrypt an FXT file
-v || -q	This is verbose mode or quiet mode.  Quiet mode is default.
-generate	This command is used to generate patch files from two complete
            FXT files.
--------------------------------------------------------------------------

When decrpyting files, use the following

fxtpatch english.fxt -decrypt   OR
fxtpatch english.fxt -out english.txt -decrypt

In the first example, english.fxt will be decrypted and the output written
back to english.fxt.  In the second example, the decrypted text from
english.fxt will be written to the file english.txt

--------------------------------------------------------------------------

When encrpyting files, use the following

fxtpatch english.fxt -encrypt  OR
fxtpatch english.txt -out english.fxt -encrypt

In the first example, english.fxt will be encrypted and the output written
back to english.fxt.  In the second example, the encrypted text from
english.txt will be written to the file english.fxt

--------------------------------------------------------------------------

To use a patch file, and create an undo patch file use the following
command line.

fxtpatch english.fxt -patch patch.txt -undo undo.txt

This will change english.fxt using the patch specified, and then write the
changes back to english.fxt (in encrypted format).  An undo file which will
reverse all of the changes made to english.fxt will be written to undo.txt.
If an output file is specfied using the -out parameter then the output will
be written to that file.

When applying patches to the fxt file, you do not have to create an undo
patch.

--------------------------------------------------------------------------

An example patch file is given below, which will (in order) change a message,
add a new message, and, remove a message.

[1001]Answer the phones some place and you can get some work.
[1999]This message will be added to the file.
[1003]

Lines in the patch file which have both an ID and some message text will
do one of three things:
The message will be added to the file
	This happens when a message with an ID not already in the file is found.

The message will be changed to the new text specified
	This happens when a message with the same ID but a different message is
	found in the main file.

The message will remain unchanged
	This happens when a message with the same ID and same message is found
	in the main file.

The final line in the exmaple patch above will remove message 1003 from
the main file.

You may only change message 1001 if the First two letters are An.  This is
because the values are hard coded within the fxtpatch program.

You should be able to add messages with IDs less than 1001, but this is currently
untested.  They should appear AFTER the message with the ID of 1001 in the
resulting patch file.

--------------------------------------------------------------------------

To generate a patch file from two complete FXT files user the following :

fxtpatch english.fxt -patch changed.fxt -out patch.txt	OR
fxtpatch english.fxt -patch changed.fxt -out patch.txt -undo undo.txt

The first command will produce a patch file which when applied to english.fxt
will turn it into changed.fxt.  The second command does the same, but also
generates a patch file which will turn changed.fxt into english.fxt

