View Single Post
Old 06-07-2004, 02:45 PM   #7 (permalink)
DeeZire
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Easier String Editing

Instead of using CSF, you can have the game use an STR file instead. You should place your STR file in the Data directory, not in the Data\Language directory.

The differences between the two are;-

- STR is not language specific - it will be read from the Data directory regardless of the language your mod/the game is using, and will overwrite the resident CSF file(s)

- STR is easier to edit - its form is exactly the same as the STR files found in maps, and can be written/edited in any text editor.

Whatever route you choose, the string file is only read once and assembled into RAM at runtime - if you amend your STR file, as with CSF you will have to restart the game to have new or modified entries show up.

EDIT: file needs to be called Generals.STR (as with Generals.CSF).

One more thing, when you want to force the text onto a new line within an STR file, you use \n.
__________________
DeeZire is offline   Reply With Quote