Skip to main content

Module generator

Module generator 

Source
Expand description

Generation of a campaign’s startpos from a pack and the game’s files, without launching the game.

load_tables loads the tables (the game’s, its Assembly Kit’s and the pack’s, merged as the game loads them), which validation checks. StartposSources adds what else the build reads: the campaign map’s files, the victory objectives, the characters with legacy override texts, the start season’s name and the values the campaign’s scripts save. GameLayouts gets the record layouts from the game’s startposes, cached in a layouts folder. generate_startpos writes the startpos.

Structs§

GameLayouts
Record layouts of a game: one per campaign the game has a startpos for, and one merged from all of them.
StartposSources
What a campaign’s startpos is built from.

Constants§

STARTPOS_TABLES
Tables the startpos build reads, without the _tables suffix.
SUPPORTED_GAMES
Games whose startposes can be generated.

Functions§

generate_startpos
Generates the startpos of a campaign.
load_startpos
Loads the startpos of a campaign (campaigns/<campaign>/startpos.esf), from the pack if it has it, otherwise from the game’s files.
load_tables
Loads the tables of a startpos build: the ones the build reads, every start_pos_* table of the schema with the tables it references, for validation, and the ones the extraction of tables from a startpos reads.