#!/usr/bin/perl # abw's basic custom data encoder package abcde; use strict; use warnings; my $usage = < [-cm []] In its most basic form, this program reads data from STDIN, translates it according to the provided table files and other general options, and writes it to STDOUT. This form is useful for integration into other programs (e.g. hex editors, (dis)assemblers, etc.) and for examining the translation process in detail, but is unlikely to be of much interest to the average user as its scope is limited to the translation of data that should be translated and makes no attempt to e.g. update pointers or exclude portions of the input data from translation. The average user is more likely to be interested in the command modules. Currently, varying levels of support for Atlas and Cartographer command files have been implemented; see those modules' documentation for more details. Available required options: -m / --mode : select operation mode; value can be either 'bin2text', in which case binary data on STDIN is translated to text on STDOUT, or 'text2bin', in which case text data on STDIN is translated to binary data on STDOUT. -t / --table
: specify the file name of a table file to use in translation. Include this option once for each table file to be used in translation. Note that when provided on the command line, relative paths are assumed to be anchored at the current directory. Available optional options: -g / --group: instead of normal output, print the output grouped by token (primarily used for debug, but also available for interest's sake). -h / --help: print this help text and exit; if used in conjunction with -cm , instead print help text for the specified command module and exit. -brp / --base-relative-path : sets the base relative path used by command modules to instead of the current directory; see command module documentation for details including any special values. -s / --stats: after normal output, print some statistics to STDERR. --artificial-end-token