Some information about creating scripts

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Some information about creating scripts

Re: Some information about creating scripts

by Purifier » Wed Sep 11, 2013 9:09 pm

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 175 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 :)

Re: Some information about creating scripts

by David » Mon Sep 09, 2013 5:33 am

"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>

Some information about creating scripts

by Purifier » Sat Sep 07, 2013 8:02 pm

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 198 times
*edit* I changed the city port lines to the correct ones, so you wont get an error now when loading the script

Top