Skip to main content

Module writer

Module writer 

Source
Expand description

Writer of whole startposes (CAMPAIGN_STARTPOS): the world, and the records around it.

Records without a generator yet keep the values of their layouts.

The AI’s history (CAMPAIGN_MODEL/CAI_HISTORY) is left out. CA’s startposes (Attila, Thrones, Rome 2) have one, a log of the AI’s first decisions, but no retail game writes or reads it: their empire.retail.dll don’t even have its record names, and startposes built with the retail game, like The Dawnless Days’, don’t have it.

Structs§

StartposInputs
What a startpos is built from.

Constants§

ENV_PATH
Path of the campaign environment.
MODEL_PATH
Path of the campaign model.
ROOT_PATH
Path of the root record.

Functions§

write_startpos
Writes the startpos of a campaign.