Re: Mijn vragen
Reply #3 –
Een meer ingewikkelde manier is om zelf een cityrules.tab te schrijven. De bijgevoegde inhoud van mijn cityrules.tab creeert bijvoorbeeld een regelmatiger stratenpatroon dan gebruikelijk (naar ik hoop, ik heb simutrans niet geinstalleerd op deze computer).
# cityrules.tab
#
# City building rules (new fashion)
#
# author: Hj. Malthaner <hansjoerg.malthaner@gmx.de>
# date: 25-Nov-03
# update: 22-Aug-04
# update: 5-Jan-05
# how far cities should be minimum apart (default 16)
minimum_city_distance = 32
# chance for renovation versus new building (bigger number => less sprawling)
renovation_percentage = 12
# at which number of inhabitants we need a new market?
industry_increase_every = 2000
# citys will not growth further along exiting roads, if the buildings density is lower (in percent)
minimum_building_desity = 33
#
# relative affinities for certain building types which can lead to clustering of certain building types
#
# avoid building next to industry
res_start_score = 0
res_near_ind = -8
res_near_com = 0
res_near_res = 8
# everywhere is good, next to com best
com_start_score = -10
com_near_ind = 1
com_near_com = 8
com_near_res = 1
# next to res means expensive filters and no truck after 10 pm => avoid this ...
ind_start_score = 0
ind_near_ind = 8
ind_near_com = 0
ind_near_res = -8
#
# now the actual building rules. They can be up to 7x7.
# allowed sizes are 3x3 5x5 and 7x7!
#
#
# Symbols in rules:
# S = must not be road
# s = must be road
# n = must be bare land
# H = must not be house
# h = must be house
# T = not a stop // added in 88.03.3
# t = is a stop // added in 88.03.
# U = allowed slope for roads
# u = forbidden slope for roads
# . = anything matches
# SPACE = next row
#
# Each row must have EXACTLY the same number of members!
#
# build houses next to straight roads
house_1 = ..... .s... Ssn.. ..... .....
house_1.chance = -3
# build houses one row behind another house
house_2 = ..... ..... ..n.. ..h.. sss..
house_2.chance = -3
# extend existing road
road_1 = ..... .S... ssn.. .S... .....
road_1.chance = -6
# crossing road
road_2 = ..... ..... SSnS. sssS. ...S.
road_2.chance = -2
# crossing road 2
road_3 = ..... ..... ..n.. sssss ..s..
road_3.chance = -7
# game start
road_4 = h.. sn. ...
road_4.chance = 7