RCTRLE by Dave Torok


Rctrle is a tiny Java program to decompress Roller Coaster Tycoon saved track files (.TD4 files) into "Raw" track files which are 8058 bytes in length. Rctrle can then re-compress (RLE compression and RCT-checksum) an edited raw file back into RCT-compatible .TD4 format. It is released under the GNU Public License.

This application has NOT been tested with either of the add-on packs (Corkscrew Follies / Loopy Landscapes)!!!!

VERSION

Version 0.02 (July 5 1999). Now supports Compressing and Uncompressing Track Files.

INSTALLATION

You must install a Java Runtime Engine or Java Development Kit. You can download one from Sun's site

USAGE

From the command line (assuming you have installed java correctly):
java Rctrle -d "my track file.TD4" [optional output filename]
java Rctrle -c "my raw filename" [optional output .TD4-format filename]

Note: If the output filename is missing, then ".OUT" will be appended for decompression, and ".RLE" will be appended for compression.
Note: Don't forget the capital "R" in "Rctrle". Although you may hate it, class names in Java are conventionally capitalized. You can always modify and compile the source if you'd like to change this.

OUTPUT

Decompression:
a new file "my track file.TD4.OUT" which is the decompresed track file. Use a binary editor (such as HEDIT) to view/modify.
Compression:
A new file "my track file.RLE" which is in RCT-format. Rename to end with .TD4 and you can use in Roller Coaster Tycoon!
 

Download...

A small (4K) zip file containing Rctrle.class and Rctrle.java

Source...

Here is Rctrle.java