Game Startup Sequence
Game Startup Sequence
Compiled Lumberyard games start up in the following sequence:
The game reads the
bootstrap.cfgfile, which must contain the following information at a minimum:- Name of the game, and optionally, the name of the game DLL, if it differs from the game name.
- Whether or not to connect to the Asset Processor on startup or listen for an incoming connection instead.
- Whether or not to wait for an established connection before proceeding.
- Whether or not to enable the virtual file system \(VFS\), which allows you to read assets remotely from a connected computer instead of having to deploy them to the game device. This also is required for live reloading to function on non-PC operating systems.
- Which kind of assets to load. For example, you could configure the Android runtime to load
es3assets, orpcassets, ormetalassets. This determines which directory the game looks in for the assets so that the appropriate directory is also used for VFS.
The
lyconfig_default.xmlfile is read.VFS is started and enabled. All file access then goes through the VFS system. Besides the
bootstrap.cfgfile, executable files, DLL files, and associated OS files, nothing else needs to be deployed to the device. Instead, they can all be accessed remotely.The
system_game OS_assets.cfgfile is read, whereassetsare the assets specified in thebootstrap.cfgfile.