Selective GRF Loading

From TTWiki
(Redirected from SelectiveGrfLoading)
Jump to navigationJump to search

Certain grf files should only be loaded in some climates, only if certain switches are on, or some other circumstances.

To do this, the first entries in your .grf file must be action 7s which test that condition, and skip the rest of the file if true. To skip the rest of the file, remember to specify a <num-sprites> parameter of 00.

Immediately *after* your initial action 7 entries, you place the action 8 that defines your GRF ID.

This way, the .grf file is considered active or inactive in the right circumstances.