Lines beginning with a '$' (and followed by a name) are grouping markers or special commands.Lines beginning with a are preprocessor directives.Lines beginning with a '[' signal the beginning of a new section.Empty lines (= lines containing only blanks) and lines beginning with a '#' are ignored.Blanks (single or multiple) are used to separate columns. Spaces and tabs (=blanks) at beginning or end of line are ignored.A byte order mark (BOM) is detected and skipped. The first 8 characters of a KMP text file must be '#KMP-TXT'.
#Szs modifier meaning windows#
If scanning a text file, windows and Unix format is allowed. The tools generate always windows compatible text files with CR+LF as line termination.It support variables, C like arithmetic expressions and nested IF-THEN-ELSE structures.Īll of the following documentation is also available in the header of each decoded KMP file, if not disabled by the options -no-header or -brief. The KMP encoder of Wiimms SZS Tools works like a compiler with preprocessor. t -test Don't create the szs archive, but print out what to do. v -verbose Be verbose and log the encoding of files. c= -const=terms Define constants for the KMP compiler. fast Compress the SZS file very fast: it becomes larger. encode-all (or -eall) Encode all files and ignore the time stamps. o -overwrite Overwrite already existing destination files. d= -dest=file Define an alternative destination file. There are a lot of options to override the standard settings. For KMP this means: If you have edited and stored it, it will be encoded automatically, if not, the original binary file is used. It compares the time stamps of the binary and decoded files and encode files, if they are younger or if the binary file is missed. The tools knows (because of reading the file wszst-setup.txt) all about the extraction process. MY.d is the previous created directory containing all sub files. If you have extracted a complete SZS file, you can pack it again and encoding is done automatically: Page » Wiimms SZS Tools/KMP/Tutorial« shows the power of a KMP compiler with concrete examples. If using the option -const=terms, you can define constanst for the parser to create different KMP files with the same text source. This make the encoding process very powerful. The text parser is designed as compiler and allow conditional parsing and supports variables and expressions. It is also possible to use scripts, batch files or other tools to modify it.Įncoding means to create a new KMP file using the text source.
You can edit it with a text editor of your choice and can use all powerful commands of the editor. If you have already an extracted KMP file, you decode it with:Īfter decoding, you have a text file, typical named course.txt or. P -no-param Suppress the parameter template in decoded KMP text files. If set twice, the output of unneeded sections is also suppressed. This includes syntax information (-no-header). B -brief Suppress information lines in decoded KMP text files. H -no-header Suppress syntax info in the head of the decoded files. All directories in the path are created automatically. D= -DEST=dir Define a new destination directory. d= -dest=dir Define a new destination directory in an existing parent directory. Therefor a redirection with '>' is necessary. The kmp command writes to stdout (standard output). The following command line shows a way to extract and decode the KMP of a SZS file without extracting the whole archive. There are also some short cuts for the same command:
![szs modifier meaning szs modifier meaning](https://i.ytimg.com/vi/_6ZHYgOsBKg/maxresdefault.jpg)
BMG and KMP are decoded into text files and images into PNG files:
![szs modifier meaning szs modifier meaning](https://www.solvusoft.com/file-extensions/images/software/200x200/4829_szs-modifier.png)
If adding option -decode, all supported file types are decoded. If you have a SZS file you can extract it's content with: → KMP (File Format) Extracting track files They contain information about how the course is played, such as start positions and check points. KMP files are stored as sub files in SZS files of tracks.