Some information about creating scripts

General Discussions about new beta versions of Capitalism Lab
Purifier
Level 5 user
Posts: 210
Joined: Sat Jun 23, 2012 12:56 am

Some information about creating scripts

Post by Purifier »

Oke, i got started on creating a script to use for getting all big cities (so +4M citizens) cus i like big cities :mrgreen:

I found out the following about creating and using scripts:

1) All settings normaly set in "custome game" that are NOT defined in the script will be set to the standard settings (so for example, 3 cities, 4 competitors, basic economy etc.)
This include the NO goal setting and standard 30 play years.

2) The script system doesnt seem to recognize these 2 lines:
Consumer Goods Seaports per City=<0-4>
Industrial Goods Seaports per City=<0-4>

Which ever number 0-4 i use, im getting the error:
Error: the following lines cannot be recognized by the script system.
line 64: Consumer Goods Seaports per City=3
line 66: Industrial Goods Seaports per City=3


3) I have created a script with 10 cities, 30 competitors, a goal of a personal wealth of 20Billion, playtime: 200 years. The difficulty is the same as a custom game on 155%.
Download the following rar, extract it with winzip, winrar or 7-zip and put it in your c:\users\username\documents\my games\Capitalism lab post-release beta\script folder (create the last folder if it doesnt exist yet)
Custom game 155% + info.rar
(1.2 KiB) Downloaded 197 times
*edit* I changed the city port lines to the correct ones, so you wont get an error now when loading the script
Last edited by Purifier on Thu Sep 12, 2013 7:33 am, edited 2 times in total.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10431
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Some information about creating scripts

Post by David »

"Which ever number 0-4 i use, im getting the error:
Error: the following lines cannot be recognized by the script system.
line 64: Consumer Goods Seaports per City=3
line 66: Industrial Goods Seaports per City=3"

We have corrected the information on the CapLab web page. The correct variable names should be:

Consumer Goods Seaports=<0-4>

Industrial Goods Seaports=<0-4>
Purifier
Level 5 user
Posts: 210
Joined: Sat Jun 23, 2012 12:56 am

Re: Some information about creating scripts

Post by Purifier »

Found another weird thing David:

What ever you put in the script the difficulty on the scorescreen ingame after loading the script stays at 135%. Is this intentionaly or a bug ?


Also i changed my earlier script a bit to a bit higher difficulty (i found it was to easy to make a bigger profit then your competitors from early on in the game) and added a subgoal (which is inspired by the recent launch of the Fox network here in the Netherlands) :p

Download the rar and unpack the 2 files (the script + info about the settings) to:

c:\users\username\documents\my games\Capitalism lab post-release beta\script folder (create the last folder if it doesnt exist yet)
Custom game 181% + info.rar
(1.48 KiB) Downloaded 174 times
ps: i advice people to create/edit the scripts with Notepad++ as for it will be easier to find the lines incase of errors :)
Post Reply