﻿PCB Server v1.6 (PCBServer.grf)
Version # 2014.01.17

Coded Together by Jan Škoch

changelog
2014.01.17
Enhanced Banks production limited to 144 instead of 256
Paramater to make farms plant to delay planting fields some time after funded

2013.12.28
Primary industries town center distance restriction applies only for towns, not cities
Skip if FIRS back again after vehicle modes

2013.12.26
Some primary industries min distance from town center (parameter)
Temperate banks production depends on town population
Arctic/tropic banks one per town check only during map generation
Basecost part removed

2012.09.29
CB support for toyland houses


For use on Goal server mainly

GRF contains these modifiers:
Hardcoded
Road vehicle date mod - better vehicles are invented sooner [by Woople]
Oil wells increase production on temperate

Influenced by parametres
Disable monorail and maglev trains [by SEKI]
Enables additional cargo in some town buildings [by SEKI]
Includes Station names [(C) by a.locritani] and Oil adjust [(C) by SirkoZ]
Makes Water Towers and Banks appear only once per town, adjust for Power stations and arctic Forest [by The Dude]
Enhanced Citybuilder mode industry location restrictions [by The Dude]
Lumber mills dont cut trees [by The Dude]
Bigger ship's cargo hold [by The Dude]
Cheaper banks [by The Dude]
Toyland statue in all climates [by The Dude]

/* http://www.novapolis.net/ */


Road vehicle date mod:
Old grade: ~1935
Middle grade: ~1965
New grade: ~1985
========================================
PARAMETERS:
#1 : Enable desired parts:
  bit   value  part
  0     1       Citybuilder section - more houses will accept goods, food and mail, LA penalty for destroying houses set to 0
  1     2       Disable monorail and maglev
  2     4       Oil wells, Rafineries and Oil rigs modifier, Station names, water tower, banks, power stations (once per town)
  3     8	Enhanced CB industry behavior - secondary industries have less density (except power stations) and are built futher from towns
  4    16       ECS support enable
  5    32 	Lumber mill does not cut trees, but costs 3x more money
  6    64 	Ships have increased cargo hold
  7    128 	Cheaper funding cost for banks
  8    256	Toyland company statue in other climates, puts some fun into game
#2 : default 16 - max distance from coast for oil refineries
#3 : default 16 - min distance from coast for oil rigs
#4 : default 16 - Power station min distance to each other, range (0-255) - part of Industry behavior section (#1.2)
#5 : default 16 - Arctic Forest min distance to each other, range (0-255) - part of Industry behavior section (#1.2)
#6 : default 16 - Oil Rig min distance to each other, range (0-255) - part of Industry behavior section (#1.2)
#7 : default 25 - Some primary industries can only be placed min distance from town centers
#8 : default 0 - Days after which farms start planting fields

#1 : simply add these numbers together to enable desired sections

=================================
Industry placement restrictions
TEMP
POWER PLANTS: min same distance  16 (def, variable #4), distance from town 10-30, not in cities, max 1 per town in mapgen
OIL REFINERY: max distance from water 16 (def, variable #2), min distance from towns 16
SAWMILL: min distance from towns 13
STEELMILL: min distance from towns 32
BANK: only in towns with more than 500 population, production ~= min(TOWNPOP/32, 256)
COAL MINE: min distance from town 25 (def, variable #7)
OIL WELLS: min distance from town 25 (def, variable #7)
FORREST: min distance from town 25 (def, variable #7)
FARM: min distance from town 25 (def, variable #7), plant trees 0 days after funded (def, variable #8)
IRON ORE MINE: min distance from town 25 (def, variable #7)

ARCTIC
POWER PLANTS: min same distance  16 (def, variable #4), distance from town 10-30, not in cities, max 1 per town
OIL REFINERY: max distance from water 16 (def, variable #2), min distance from towns 16
PRINTING WORKS: min distance from towns 12
FOOD PROCCESSING PLANT: min distance from towns 10
PAPER MILL: min distance from towns 22
BANK: only in towns (not cities), only one per town during mapgen, min dist to another bank 10
COAL MINE: min distance from town 25 (def, variable #7)
OIL WELLS: min distance from town 25 (def, variable #7)
FORREST: min distance from town 25 (def, variable #7)
FARM: min distance from town 25 (def, variable #7)

TROPIC
FOOD PROCCESSING PLANT: min distance from towns 10
FACTORY: min distance from towns 8
BANK: only in towns (not cities), only one per town during mapgen, min dist to another bank 10
OIL WELLS: min distance from town 25 (def, variable #7)

TOYLAND
SWEET FACTORY: min same distance 48, distance from towns 15 - 32
FIZZY DRINK: min distance from towns 10
TOY SHOP: min same distance 48, distance from towns 5 - 25
TOY FACTORY: min same distance 32, distance from towns 16 - 64
=================================




Parametres Examples 
Basecost switched off in all cases
QUEST SERVER:
6 2000 1 1 1	(with lumber mills 38 2000 1 1 1)
Enable Oil wells can increase, Oil rafineries can be built wherever on the map, Oil rigs min distance to coast is 1, power station and arctic forest distance 1 (lumber mills dont cut trees)

GOAL SERVER:
6 2000 1 25 10 25  (with lumber mills 38 2000 1 25 10 25)
The same, only power station and forest min distance set (in case Multiple industry switch is on)

CITYBUILDER SERVER:
7 2000 1 25 10 25 	(with lumber mills 39 2000 1 25 10 25)
Citybuilder section enabled, power station and forest min distance set (in case Multiple industry switch is on)

CITYBUILDER SERVER WITH ENHANCED INDUSTRY BEHAVIOR:
15 2000 1 25 10 25 25	(with lumber mills 47 2000 1 25 10 25 25)
Citybuilder section enabled, power station and forest min distance set (in case Multiple industry switch is on), secondary indutries density and location difer

ECS QUEST SERVER
18
Disable monorail and maglev and Road vehicle date mod are enabled. ECS take care about Industry conditions by itself

ECS CITYBUILDER SERVER
19

CB TOYLAND SERVER
15

FIRS CB SERVER
3

