FSMInit is an automation tool designed to simplify the creation of directories and tables needed for FreeSpace mods. This process is usually tedious, but FSMInit makes it quick and easy by accepting command-line arguments.
-
<command>
The operation to perform. Allowed values:-stdm: Standard Mod (no tables)-stdmc: Standard Mod Complex (with tables)-help: Display usage information
-
<path>
The directory path where the tool will create directories and tables.
Maximum length:PATH_MAXcharacters. -
<-tbl/-tbm>
Specifies the type of files to create (only for-stdmc):-tbl: Create standard.tblfiles-tbm: Create modular.tbmfiles
-
[prefix]
Prefix for.tbmfiles. Required if-tbmis specified. Ignored when-tblis used.
Maximum length: 32 characters. -
[-debug]
Optional flag. Enables debug output, written tolog.txtin the program's current directory. -
[-dry-run]
Optional flag. Previews what would be created without actually creating anything. Output is printed to the console.
- The target path must exist and be writable before any operation is performed.
- If a mod structure already exists at the target path, the tool will refuse to overwrite it.
- Path and prefix inputs are checked for length before any operation is performed.
Standard mod with .tbl files:
FSMInit -stdmc "path" -tbl
Standard mod with modular .tbm files:
FSMInit -stdmc "path" -tbm MOD_
Preview without creating anything:
FSMInit -stdmc "path" -tbl -dry-run
With debug logging:
FSMInit -stdmc "path" -tbm MOD_ -debug
Combined dry-run and debug:
FSMInit -stdmc "path" -tbm MOD_ -dry-run -debug