BPVR Compatibility Patch - Hotfix (E&C Classic, missing variables, StellarAI stubs)
Stellaris 4.4 | compatibility patch | requires BPVR - Compatibility Patch and Ethics and Civics Classic
What this patch does
BPVR - Compatibility Patch carries copies of the district, building and zone definitions of Ethics and Civics Classic (and Gigastructural Engineering) so that BPVR's extra slots apply to them. Three things go wrong in the current version:
- The copies use @variables that are only defined in the original files (Stellaris @variables are file-local). In the Compat Patch's copies they are undefined - error.log reports dozens of 'Malformed token: @city_cost / @ecotopia_city_cost / @tier_x_capital_defense_armies / @primitive_upkeep / @hab_* / @rw_*' - and the affected lines are dropped: E&C city/hive/nexus/prison districts lose their mineral cost, habitat and imperial capitals lose their defense armies, primitive capitals lose their upkeep, habitat/ringworld districts lose cost, upkeep and build time.
- Its shared zone inline scripts were written for the mod StellarAI and reference StellarAI variables, triggers and inline scripts. Without StellarAI these are undefined (about 250 error.log records) and the AI zone priorities/weights for energy, food, minerals, research, unity and strategic-resource zones are discarded.
- Its Fortress zone drops E&C's Duelist jobs.
This hotfix provides the missing pieces:
- global scripted-variable defaults with the upstream values (@city_cost = 500, @ecotopia_city_cost = 400, capital defense armies 4/8/16, @primitive_upkeep = 1, habitat/ringworld cost/upkeep/time, Giga Elysium capital counts),
- StellarAI stubs: AI zone priorities/coefficients with the values of BPVR - More Building Slots' own zone scripts (close to vanilla behaviour; the Compat Patch uses one variable for the generic industrial and the foundry zone, so both get the foundry values 10 / 1.2), the five stellarai_* triggers as 'never true', and the two inline scripts as empty files,
- the Compat Patch's Fortress zone plus E&C's Duelist jobs (same-name override).
When you need it
If you run BPVR - Compatibility Patch together with Ethics and Civics Classic (the variable fix also repairs the same missing variables in BPVR - More Building Slots' own district/capital files and in the Compat Patch's Gigastructural copies).
Not for setups that run StellarAI: the Compat Patch was written for StellarAI, and this hotfix's stub triggers and empty inline scripts would replace StellarAI's real ones - if you use StellarAI, do not install this hotfix (or remove it).
How it is resolved / what is kept
Nothing from BPVR or E&C is replaced except the Fortress zone inline script (BPVR's version + E&C's Duelists). A file that defines one of these @variables locally keeps its own value; the hotfix only fills the gaps.
Load order
- Ethics and Civics Classic
- BPVR - More Building Slots ... BPVR - Compatibility Patch
- this hotfix - must be below BPVR - Compatibility Patch (the Fortress zone file is a same-name override; the stubs work anywhere).
Required mods
BPVR - Compatibility Patch |
Ethics and Civics Classic (Primitive Nomad Update)
Notes
- No new content, no text of its own. Safe to add mid-game.
- Will be retired once the Compat Patch ships the variables itself.
Credits
All content belongs to the authors of BPVR and Ethics and Civics Classic; this hotfix only supplies missing definitions.
One of a set of small, single-purpose compatibility patches. Found a problem? Please comment with your mod list and the relevant error.log lines.