Synopsis
gamecomp --type=type [--apply] < infile > outfile
Description
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.)
Options
--type=algorithm,-talgorithmspecify the algorithm to use, from the list shown by
--list.--list,-llist all the algorithms on stdout instead.
Examples
- gamearch bash1.dat -u -x mb1_h1.txt
gamecomp -t lzw-bash < mb1_h1.txt > decompressed.txt extract
mb1_h1.txtfrom the Monster Bash archive file (-x), without decompressing it (-u). Then usegamecompto decompress it instead, saving the data intodecompressed.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 inmb1_h1.txt.
Notes
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.
Bugs and Questions
Report bugs at https://github.com/Malvineous/libgamearchive/issues
Ask questions about Camoto or modding in general at the RGB Classic Games modding forum
Copyright
Copyright (c) 2010-2017 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.