				  ROTTCMP 1.0
			Copyright 1995 Martin H. Smith
			      All Rights Reserved
		      Non profit redistribution permitted

What's It For
-------------

ROTT level files shipped with the game are stored with a run length encoding
compression scheme which, whilst simple, achieves rather good results on the
data in question.

The ROTT editors around seem to save levels without using the compression and
this makes them very large. A 20 level file probably occupies 2MB without
compression and 400K with it.

And I'm short of disk space so I wrote this program to take level files and
compress them. It will also uncompress files in case people ever write
utilitities that can't handle the compression.

System Requirements
-------------------

Minimal, if you can run ROTT you far exceed them.

Usage
-----

	ROTTCMP [options] [files]

Options are described below, the input files should be .RTC, .RTL or .RTR
files, wildcards are supported.


Options
-------

	-c	Compress input files
	-d	Decompress input files (exclusive with -c)
	-i	Print info on input files (default)

	-q	Quiet mode, report errors only
	-v	Verbose mode, produce debug output (exclusive with -q)

	-x	Fill in the CRC fields in level headers

	ROTT editors seem to leave this set to 0 in levels, this may only be
	significant for multiplayer levels but can be added if you specify
	this option.

	-a	Don't copy any extra data after end of levels

	Programs such as RANDROTT add comments to the end of the file, which
	will be displayed by this program. With -a it doesn't get copied as
	I've found some files have a couple of K of zeroes tacked on the end.

	-j	Junk levels which fail sanity checks

	With this option any duff levels (e.g 0 length or odd data start pos)
	are ignored in the compression and removed from the output. Without
	this option an error occurs if the file contains any such errors and
	compression is abandoned.

Example
-------

Compress all game files in current directory

ROTTCMP -c *.RTL

Leaves old files renamed to .BAK if compression succeeds.

Authors Note
------------

This is the first version of the program and I hope I've accounted for all the
weird things that can appear in the level files. If you find a level which
can't be compressed (and it is actually playable) then please let me know at
msmith@lssec.bt.co.uk
