Jump to: navigation, search



gamecomp — apply or reverse compression and encryption algorithms used by games


gamecomp --type=type [--apply] < infile > outfile


Filter data from standard input and send it to standard output, using the given algorithm. The default is to reverse the algorithm (which will decompress or decrypt the input data) however --apply will apply the algorithm instead (resulting in the input data being compressed or encrypted.)


--type=algorithm, -talgorithm

specify the algorithm to use, from the list shown by --list.

--list, -l

list all the algorithms on stdout instead.


gamearch bash1.dat -u -x mb1_h1.txt
gamecomp -t lzw-bash < mb1_h1.txt > decompressed.txt

extract mb1_h1.txt from the Monster Bash archive file (-x), without decompressing it (-u). Then use gamecomp to decompress it instead, saving the data into decompressed.txt.

gamecomp -a -t lzw-bash < input.txt > mb1_h1.txt

take the plain text in input.txt, compress it using the Monster Bash compression algorithm and store the compressed data in mb1_h1.txt.


Exit status is 0 on success, 1 on bad parameters and 2 on an I/O error.

All the algorithms supported by this utility are fully documented on the Game Modding Wiki.

Known Issues

Not all algorithms support compression.

Bugs and Questions

Report bugs at

Ask questions about Camoto or modding in general at the RGB Classic Games modding forum


Copyright (c) 2010-2012 Adam Nielsen.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.