Skip to main content

Module split

Module split 

Source
Expand description

Splitting of the start_pos_* tables by campaign, as the Assembly Kit’s BOB does before building a startpos.

The game builds a campaign’s startpos from every row of the tables it gets, so tables holding the rows of several campaigns make the build fail. BOB only exports the rows of the campaign it builds:

  • Rows of tables with a campaign column belong to their campaign.
  • Other rows belong to the campaign if at least one of their references to a start_pos_* table points to a row of the campaign (a character of one of its factions, a link from one of its characters to a settlement of another campaign…). This runs until no more rows join.
  • Rows of tables without such references belong to the campaign if one of its rows references them (deal actions of its diplomatic deals). Not seen in vanilla data, where the tables they’re in are empty.

Verified on Attila’s main campaign: from the Assembly Kit’s tables, the rows kept are exactly the ones BOB exports.

Structs§

CampaignRows
The rows of the start_pos_* tables that belong to a campaign.