prevnext   » SZS: Wiimms SZS Toolset » wlect: Wiimms LE-CODE Tool » wlect create

wlect create

Create a file and print it to standard output. The kind of file is defined by KEYWORD. Use command without keywords to get a list of possible keywords.

The following keywords are possible: LEX for a LEX text file with all known sections except TEST. LEX+ for a LEX text file with all known sections including TEST. SET1, CANN, HIPT and TEST (section names) for a LEX text file with 1 section only. LPAR for an example LE-CODE parameter file.

Contents

1.   Syntax

wlect CREATE [keyword]

2.   Options

Options
Option Param Description
-i --ignore Ignore non existing source files without warning.
-H --no-header Suppress the syntax information section in LE text files.
-B --brief Suppress cross reference comments.
-X --export Enable the export mode and create small and machine readable text files for easy post processing.
--no-echo Suppress output of @ECHO commands while scanning text files.
-d --dest path Define a destination path (directory/file). The destination - means: write to standard output.

The path may contain escape sequences: %Q is replaced by the fully qualified source name. %P and %F are replaced by the source path or by the filename. %N and %E are replaced by source filename without extension or by the source extension. Finally, %T is replaced by the default extension of the destination format.

A '?' direct behind '%' in %E and %T conversions avoid that the same extension is used twice in row.

-D --DEST path Like --dest, but create the directory path automatically.
-E --esc char Define an alternative escape character for destination files. The default is '%'. For Windows batch files it is a good choice to set '-E$'.
-o --overwrite Overwrite already existing files without warning and ignore option --number.
--number If a file already exist, append a number directly before the file extension to make the filename unique. If other numbered files already exist (ignoring case), use the maximum existing index+1. --num is a short cut.
-r --remove-dest Remove already existing files before creating it. If set, --overwrite is ignored. --rm-dest is a short cut.
-u --update Update only existing files and don't create new files. If set, --overwrite and --remove-dest are ignored.
-p --preserve Preserve file times (atime+mtime) while converting or copying files.
--lpar file Read a LPAR file to overwrite settings of LE-CODE section LPAR.
--lt-clear Clear LEX section TEST and remove the section if empty. This option is executed before all other --lt-* options.
--lt-online value Set LEX/TEST parameter OFFLINE-ONLINE to this MODE. MODE is one of AUTO (default), NEVER or ALWAYS. If needed, LEX section TEST is created or removed if empty.
--lt-n-players offline,online Set LEX/TEST parameters N-OFFLINE and N-ONLINE to these integer values. If needed, LEX section TEST is created or removed if empty.
--lt-cond-bit bitnum Set LEX/TEST parameter COND-BIT to this integer value. Use -1 to deactivate this COND-BIT. If needed, LEX section TEST are created or removed if empty.
--lt-game-mode mode Set LEX/TEST parameter GAME-MODE to this MODE. MODE is one of AUTO (default), Balloon, COIN, VERSUS or ITEMRAIN. If needed, LEX section TEST is created or removed if empty.
--lt-engine mode Set LEX/TEST parameter ENGINE to this MODE. MODE is one of AUTO (default), BATTLE, 50CC, 100CC, 150CC, 200CC, 150M or 200M. Only track.szs files are modified. If needed, LEX section TEST is created or removed if empty.
--lt-random index Force a random scenario, if between 1 and 8. Value 0 enables auto selection and -1 disables this option. If needed, LEX section TEST is created or removed if empty.
--lex-purge Delete LEX sections without any impact. This option is executed after all --lt-* options.