Open String File

Reads string files and save to other formats.

Two dialogs will show to select the files to open and save as. Then the window above will show. Click the Continue button and once done, a MsgBox will inform of how many labels were processed.

Text encodings:

File operations:

Games like Tiberium Wars may only read plain text files correctly as ANSI encoded. So plain text files are unsuitable to be of use in a unicode UTF-8 format in these older games. UTF-8 support for .str or .ini files means that files can be edited in a text editor or read by scripts easily and saved back to .csf to be read by the game.

For most compatiblity, it is recommended to use only this tool for the 2 way conversion of .csf to .str and then back to .csf.

The text files use backslash escapes such as \t for a tab and \n for a newline.

Example:

NAME:Label "line 1\nLine 2\nThis is a \"double quoted string\"." END

Also use backslashes to escape double quotes inserted within the surrounding double quotes.

Close the label and string with an END keyword and follow with a end of line sequence.

The .ini files are probably good for script processing as each label and string is contained in 1 line. Manual editing would be differcult as the data is compact in the .ini file format so recommend .str for manual editing.