Tool: mc.exe - trigger-segfault/TriggersTools.CatSystem2 GitHub Wiki

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 (scene script) compiler
usage: mc [/u] [/x] [/l] [/d](/trigger-segfault/TriggersTools.CatSystem2/wiki//x]-[/l]-[/d) [file] [file] ...

arguments:
  file      file name(s) to convert (forces ".txt" extension)
  /u        update only (don't rewrite unchanged scene files)

debug arguments:
  /x        no compression
  /l        add source filename and line numbers
  /d        unused?

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

or

mc op.txt

Convert files with ".txt" extension

mc *

or

mc *.txt

See Also

External links


Todo:

  • List different directory support
  • \ path slashes required?