DI-Guy is configured by default to give you access to all the characters available.
If you need to ship a smaller configuration, you can create a configuration file that culls out elements you do not need. You can specify that your new configuration file be used with a call to diguy_set_cfg_file() before calling diguy_*_initialize(). We recommend that you put your configuration in ./custom/config.
For a quick start:
-
Copy diguy.cfg from ./config to ./custom/config/myfastdiguy.cfg.
-
If you are not using expressive faces, gestures, or motion textures, comment out the lines that refer to them.
-
Change the reference to diguy_characters.cfg to be myfastdiguy_characters.cfg.
-
Change the reference to diguy_actors.cfg to be myfastdiguy_actors.cfg.
-
Change the reference to diguy_appearances.cfg to be myfastdiguy_appearances.cfg.
-
Copy diguy_characters.cfg from ./config/diguy to ./custom/config/diguy/myfastdiguy_characters.cfg.
-
Delete or comment lines referring to characters that you do not plan to use.
-
Copy diguy_actors.cfg from ./config/diguy to ./custom/config/diguy/myfastdiguy_actors.cfg.
-
Delete or comment lines referring to actors your characters do not need.
-
Copy diguy_appearances.cfg from ./config/diguy to ./custom/config/diguy/myfastdiguy_appearances.cfg.
-
Comment our lines referring to appearances you do not need.
-
Change the reference to appearances_base.cfg to myfastappearances_base.cfg.
-
Copy appearances_base.cfg from ./config/diguy to ./custom/config/diguy/myfastappearances_base.cfg.
-
Comment out any unused appearances.
A.1.1 Using Include Statements in DI-Guy Configuration Files
DI-Guy behaves as if a preprocessor executed all of the include lines before DI-Guy started to read the file. The four include directives work as follows:
-
include file. Replace the line with the contents of file. Report an error if the file cannot be read.
-
include_once file. Replace the line with the contents of file, unless file has already been included. Report an error if file cannot be read.
-
include_optional file. Replace the line with the contents of file. Do not report an error if file cannot be read.
-
include_optional_once file. Replace the line with the contents of file, unless file has already been included. Do not report an error if file cannot be read.
[Home] [Top of Page]