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§
- Game
Layouts - Record layouts of a game: one per campaign the game has a startpos for, and one merged from all of them.
- Startpos
Sources - What a campaign’s startpos is built from.
Constants§
- STARTPOS_
TABLES - Tables the startpos build reads, without the
_tablessuffix. - 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.