Script file Issue

Technical support requests for Capitalism Lab
Post Reply
RocketStone
Mod Contributor
Mod Contributor
Posts: 22
Joined: Tue Apr 09, 2019 3:56 am

Script file Issue

Post by RocketStone »

I created a script file with rules I want to play with and the script gives error itemRes::operator[0] but the error file is blank. Idk what to do honestly.
I'm playing on the post-release version and using the new rules for the Banking and Finance DLC.

Here is the Script file:
[HEADER]
Title=Holding Company Co.
Description=Rules for a Holding Company Co. game.

[ENVIRONMENT]
Your Start-up Capital Amount=10000
Random Events=Occasional
Game Starting Year=1900
Retail Store Type=Many
Technology Disruption=Yes
Stock Market=Yes
Alternative Stock Sim=No
Boom-Bust Cycle Volatility=Moderate
Macro Economy Realism=High
Inflation=Off
Number of AI Persons=100
Private Company=No
Retail Store Floors=Multiple

[COMPETITORS]
Number of Competitors=20
Competitor Start-up Capital=Very Low
AI Expansion Aggressiveness=Moderate
AI Pricing Aggressiveness=Moderate
AI Expertise Level=High
AI Tech Head Start=None
Show Competitor Trade Secrets=Yes
AI Friendly Merger=Yes
Competence of Local Competitors=Moderator
AI Private Companies Percent=0

[PRODUCTS]
Industrial Goods Seaports=2
Import Quality=Low
Constant Import Supply=No
Random Product Reinvention=100

[CITIES]
Popuation=300000
Real Wage Rate=45

[SPECIAL RULES]
Factory Capacity Modifier=300
Anti-exploitation Game Rules=On

[PLAYER EXPERTISE]
Retailing=100
Farming=100
Manufacturing=100
Research and Development=100
Raw Material Production=100
Marketing=100
Training=100

[DIGITAL AGE DLC]
E-Commerce=Yes
AI Tech Companies GO IPO=1
Max AI software and Internet companies=None
More Talents=500
Disruption to Traditional Media=Moderate

[Banking and Finance DLC]
Number of AI Companies Focused on Banking=None
Number of AI Companies Focused on Insurance=None
Warehouse Floors=Multiple

Thanks,
Rocketstone.

EDIT: Updated to the lastest Version 6.5.10 but now I get this in the error log:
Error: the following lines cannot be recognized by the script system.
line 33: Industrial Goods Seaports=2
line 34: Import Quality=Low
line 35: Constant Import Supply=No
line 36: Random Product Reinvention=100

but those lines are under [PRODUCTS] as they should be and the values + wording is correct. Even copy/pasted from script guide on the website and still gave me the same error.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9375
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 21 times
Been thanked: 51 times

Re: Script file Issue

Post by David »

The error itemRes::operator[0] has been fixed in 6.5.10.
EDIT: Updated to the lastest Version 6.5.10 but now I get this in the error log:
Error: the following lines cannot be recognized by the script system.
line 33: Industrial Goods Seaports=2
line 34: Import Quality=Low
line 35: Constant Import Supply=No
line 36: Random Product Reinvention=100

but those lines are under [PRODUCTS] as they should be and the values + wording is correct. Even copy/pasted from script guide on the website and still gave me the same error.
Please just ignore it as the error message was misplaced. The script lines will still be executed normally. We will get this error message fixed in the next version 6.5.11.
RocketStone
Mod Contributor
Mod Contributor
Posts: 22
Joined: Tue Apr 09, 2019 3:56 am

Re: Script file Issue

Post by RocketStone »

Awesome. Good to know 8-)
User avatar
cantdownloadit
Community Contributor
Community Contributor
Posts: 662
Joined: Sat Aug 30, 2014 12:14 pm
Has thanked: 5 times
Been thanked: 11 times

Re: Script file Issue

Post by cantdownloadit »

must be another change then, i have all those under the heading [IMPORTS]
Post Reply