Skip to content

DemandLoadBuildup

Changed in 0.2.0

Defers loading the structure's construction artwork until a structure of the type is first created.

Specification
Applies to
BuildingType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
boolean
When omitted
no

With DemandLoadBuildup=yes, the file Buildup= names is not loaded with the rules. The game loads it the first time a structure of the type is created. Unless FreeBuildup=yes releases it sooner, the type keeps that copy until its rules are read again, the type is destroyed, or a theater is set up for a Theater=yes or NewTheater=yes type. Without the flag, the file is loaded with the rules and loaded again on those theater setups.

The deferred load always looks for the name rewritten for the theater by the structure-art convention, with a .SHP extension, whatever the type’s theater settings say. A Theater=yes structure that sets this flag therefore does not look for a file with the theater’s own extension. The deferred load also times the animation the ordinary way Buildup= describes, spreading BuildupTime over the steps. The five-second timing of a Theater=yes type does not apply.

FreeBuildup=yes releases only construction artwork loaded this way. Without DemandLoadBuildup=yes, FreeBuildup=yes has no effect.

History

  1. Changed0.2.0In development

    Keep demand-loaded artwork under its owner's lifetime