Automatic text resources

This option is currently disabled in SCI Companion. The hope is to bring it back when scripting with the C++ syntax is supported.

The compiler in SCI Companion can optionally generate text resources for all the strings in a script. Thus, the strings can be removed from the script itself, and this can greatly reduce the size of the compiled version.

The benefit

This saves space, but makes it so your text strings can be embedded right in the scripts just like they are if your don't use text resources.

The down side

Doing so requires a syntax change, which means modifying many files in your game. I have not yet created a template game with these modifications. The modifications are the following:

It is fairly tedious to find them all in the template game.

Turning the feature on

The feature is available in the Game properties dialog. This information is stored in the game.ini, so it is remembered each time you load your game into SCI Companion.

Note

When this feature is on, each time a script is compiled, a text resource of the same number will be generated. If you Rebuild resources, then any text resource you had of the same number, will now be gone. So basically, it overwrites any text resource you might have created manually. You can still manage manually-created text resources, as long as you don't have a script of the same number.

Known issues

You may not have an internal string in your script that has the same name as an object.