Skip to content

Tool: mc.exe

Robert Jordan edited this page Oct 3, 2020 · 10 revisions

Tool: mc.exe

The command line tool mc is used to compile CST Scene (.cst) scripts. It is available in many of the publicly released CatSystem2 toolsets.

Usage

Requires Japanese Locale and Shift JIS text files when non-ASCII characters are present

CatSystem 2 Message Compiler
usage: mc [filename]

arguments:
  filename  file name to convert (forces ".txt" extension)

Notes

  • mc does not output files based on the input file name, but instead based on the "#" labels present in a given script file. Forgetting to include or change the "#" label is a common mistake.
  • mc outputs files using the input file's label names and .cst extension.
  • mc supports C/C++-like include statements at the top of script files, with no quotes around the filename.
  • mc implicitly includes &macro.txt if found in the same directory. Macros are functions or statements prefixed with %, and behave similar to C/C++. It's untested whether macros can be defined elsewhere, or if &macro.txt is parsed with special behavior. mc expands (compiles away) macros, so they are never encountered in .cst files.
    • In the mc assembly, the name &macro.sts is observed, but its usage is unknown.

Examples

Convert "op.txt" file

mc op

Convert files with ".txt" extension

mc *

See Also

External links


Todo:

  • List full usage
  • List wildcard support
  • List different directory support
  • \ path slashes required?
Clone this wiki locally