New Script Commands
.TXT file that sets up a scenario: its sections (such as [COMPETITORS]) hold lines of the form Key=Value. Version 13.0 adds six new keys so that a scenario can preset the new features of this update. It also changes how regional map scripts work. Scripts written for 12.0 still load: every new key is optional, and when a key is left out the game behaves as it did before.At a glance
| Section | Key | Values | Needs |
|---|---|---|---|
[COMPETITORS] |
Max Product Classes per AI Company |
1–30 | Nothing (base game) |
[DIGITAL AGE DLC] |
Max Digital Firms per AI Company |
0–20, and optionally a second number 1–30 | Digital Age DLC |
[BANKING AND FINANCE DLC] |
Export Cash Flow Statement Scope |
Player Company, Player Company and Subsidiaries, All Companies |
Banking & Finance DLC |
[BANKING AND FINANCE DLC] |
Export Cash Flow Statement Frequency |
Every Year, Every Quarter, Every Month |
Banking & Finance DLC |
[BANKING AND FINANCE DLC] |
Export Bank and Insurance Statement Scope |
Player Company, Player Company and Subsidiaries, All Companies |
Banking & Finance DLC |
[BANKING AND FINANCE DLC] |
Export Bank and Insurance Statement Frequency |
Every Year, Every Quarter, Every Month |
Banking & Finance DLC |
DLC sections are skipped without the DLC. The game reads the lines of a DLC section ([DIGITAL AGE DLC], [BANKING AND FINANCE DLC]) only when that DLC is turned on for the game. Without it, the whole section is ignored, new keys included. Keys in [COMPETITORS] are always read.
AI expansion limits
Version 13.0 adds three new-game options that stop AI companies from spreading too far (see the AI Expansion Limits guide). Two script keys set them. When a key is left out, its limit is Unlimited.
The limits only stop new expansion. An AI company never closes or sells a firm because it is over a limit. Every company run by the AI is limited, including subsidiaries the player owns but leaves to their own management. The player’s own decisions are never limited.
Max Product Classes per AI Company
| Section | Line | Values |
|---|---|---|
[COMPETITORS] |
Max Product Classes per AI Company=<n> |
n = 1–30 |
The number of consumer-goods product classes each AI company may make. Only consumer goods count: the supply chain behind them (raw materials and semi-finished goods) is not limited. A company may always keep making the classes it already has. It also cannot buy a factory, farm or service firm that would take it over the limit.
On the setup screen this is the third row of the Subsidiary DLC’s Game Rule Modifiers page, but the script key works without that DLC.
Max Digital Firms per AI Company
| Section | Line | Values |
|---|---|---|
[DIGITAL AGE DLC] |
Max Digital Firms per AI Company=<n>[,<m>] |
n = 0–20 for diversified AI companiesm = 1–30 for digital-focused AI companies (optional) |
The number of digital firms (software, Internet and telecom firms, and packaged-software factories) each AI company may own.
- The first number is for diversified AI companies and every other AI company that is not digital-focused.
0keeps them out of the digital sector altogether. - The second number is for the digital-focused AI companies: those built around an operating system, software, the Internet or telecom. If you leave it out, these companies are not limited.
For example, Max Digital Firms per AI Company=0,5 keeps diversified AI companies out of the digital sector and lets each digital-focused company own up to five digital firms. Max Digital Firms per AI Company=3 limits diversified companies to three digital firms and leaves the digital-focused ones free.
Things to know about both limits
- There is no “Unlimited” value. To leave a limit off, leave the line out. Writing a word instead of a number counts as 0, which is then raised to the lowest allowed value.
- Numbers out of range are moved into range.
Max Product Classes per AI Company=50counts as 30. - A scenario starts from Unlimited. The limits the player chose for their last custom game are not carried into a scenario: the scenario uses only its own lines.
- They lower the difficulty rating. Tighter limits make the game easier, so they reduce the scenario’s difficulty rating and score multiplier. In Survival Mode they change nothing, because AI companies do not count towards the rating there.
Automatic export of cash flow and bank statements
Needs the Banking & Finance DLC.
12.0 scripts could already make the game export income statements and balance sheets to CSV files on a schedule. Version 13.0 adds two more reports with the same pair of keys: a Scope (whose reports) and a Frequency (how often).
| Report | Keys (in [BANKING AND FINANCE DLC]) |
What is written |
|---|---|---|
| Cash Flow Statement New | Export Cash Flow Statement Scope=Export Cash Flow Statement Frequency= |
The company’s Cash Flow Statement, one file per company |
| Bank and insurance statements New | Export Bank and Insurance Statement Scope=Export Bank and Insurance Statement Frequency= |
The income statement and balance sheet of the company’s Bank HQ and Insurance HQ. A company that owns neither is skipped. |
| Income Statement | Export Income Statement Scope= / Frequency= |
Already in 12.0 |
| Balance Sheet | Export Balance Sheet Scope= / Frequency= |
Already in 12.0 |
| Corporation list | Export Corporation List Frequency= |
Already in 12.0 |
The values
| Key | Value | Meaning |
|---|---|---|
| Scope | Player Company |
Only the player’s company. This is the default. |
Player Company and Subsidiaries |
Every company the player controls directly | |
All Companies |
Every company except the government. For bank and insurance statements, companies whose figures the player may not see (when competitors’ trade secrets are hidden) are left out. | |
| Frequency | Every Year |
Once a year |
Every Quarter |
Once a quarter | |
Every Month |
Once a month |
- Nothing is exported until you set a Frequency. Without a Frequency line the report is off. The Scope line alone does nothing.
- The Scope line may be left out. It then defaults to
Player Company. - Write the values exactly as shown. A value the game does not recognise counts as the first value in the list (
Player CompanyorEvery Year), so a typing mistake does not switch the export off. - Where the files go. The game writes them to a sub-folder named after the game inside the Export folder under
My Games\Capitalism Lab, at the start of each period, without showing a message. - Players can change them. The same settings are in the game’s Data Export Options, where the player can change or turn off what the script set.
Changes for regional map scripts
A regional map script is the .TXT file that places the cities on a custom .MAP file (City Economic Simulation DLC). Version 13.0 loads a map and its script in one step (see Regional Maps: Easier Loading). This changes a few things for map makers. No new key is needed, but older map scripts may need a small update.
| What | 12.0 | 13.0 |
|---|---|---|
| File name | Any name: the player loaded the script with its own button | The script must have the same name as the map, in the same folder (Bavaria.MAP + Bavaria.TXT). The separate script button is gone. |
Title= in [HEADER] |
Not used by map scripts | Names the map in the map list. For Pre-defined Maps, it replaces the file name. For User-created Maps, it appears beside the file name with the number of cities. The script must list at least one city. |
Regional Map= in [HEADER] |
Named the map the script belongs to | Ignored when the map is loaded from the map window: the map the player picked is always used |
Consumer Goods Seaports= and Industrial Goods Seaports= under a city in [CITIES] |
Set that one city’s seaports | Ignored in a map script. The cities of a regional map always get the seaport count set on the setup screen. The lines still work in a scenario script (see below). |
Map scripts lost the per-city seaport lines because they overrode the player’s choice: on maps of real countries, inland cities ended up with no seaports whatever the player chose on the setup screen.
Scenario scripts can still give a city its own seaports. In a scenario script, Consumer Goods Seaports=<0-4> and Industrial Goods Seaports=<0-4> under a city in [CITIES] work as before: they set that city’s own count in place of the count set on the setup screen or in [IMPORTS]. One limit: when a scenario is played on a regional map whose script places cities, the cities come from the map’s script, so the scenario’s per-city counts are not used.
[HEADER]
Title=Bavaria
Regional Map=Bavaria
[CITIES]
City=Munich
...
Example
A scenario that keeps the digital sector for the player and specialist AI companies, keeps rivals to a few product lines, and exports the player’s cash flow statement every quarter:
[COMPETITORS]
Number of Competitors=12
Max Product Classes per AI Company=4
[DIGITAL AGE DLC]
// diversified AI: no digital firms; digital-focused AI: up to 5 each
Max Digital Firms per AI Company=0,5
[BANKING AND FINANCE DLC]
Export Cash Flow Statement Scope=Player Company
Export Cash Flow Statement Frequency=Every Quarter
Export Bank and Insurance Statement Scope=Player Company and Subsidiaries
Export Bank and Insurance Statement Frequency=Every Year
Check the error log. When a script line is not recognised (a misspelt key, or a key in the wrong section), the game writes it to the script’s error log and goes on. If a new setting seems to have no effect, look there first, and check that the section’s DLC is turned on.
See also: Version 13.0 new features · AI Expansion Limits · Cash Flow Statement · Regional Maps: Easier Loading · User-defined Scripts.