Engine:CVAR startup

Revision as of 16:25, 17 October 2023 by Bear (talk | contribs) (Created page with "{{dev/uicvar}} Path for the startup script file. <kua>set startup 'startup.cfg' </kua> == Arguments == * name - 'startup' * value - Relative asset path for the startup script file. Default value is unset. == Associations == * Is by default placed in the 'global' context. == Details == Set a script file to be run just after basic engine systems are started. If no value is set, no startup script will be run. The similar config script, 'config.cfg', file is run after ba...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Console commands

Path for the startup script file.

set startup 'startup.cfg' 

Arguments

  • name - 'startup'
  • value - Relative asset path for the startup script file. Default value is unset.

Associations

  • Is by default placed in the 'global' context.

Details

Set a script file to be run just after basic engine systems are started. If no value is set, no startup script will be run.

The similar config script, 'config.cfg', file is run after basic module initialization, where variable commands and certain basic commands are available, but before module start. The startup script is run after module start.

This two-tier module initialization and start, allows all of the configuration to occur at once, either through script or between modules. Changes made during start

Startup stages:

  • Process load
  • Module initialization
    • Commands and variables with default values are created
  • Config script is run
  • Module start
    • Use of default or config set variables or other changes
  • * Startup script is run
  • Server module load
  • Engine runs

Examples

Default values

In a config file named 'config.cfg'

...
startup startup.cfg

Notes

See also