省份设置:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.5
(2020年9月4日 (五) 00:35‎ DC123456789)
 
第1行: 第1行:
== 修改省份设置 ==
{{Version|1.5}}
不像以前的Paradox游戏,关于省份设置(Province Setup)的几乎每件事情都由一个巨大的csv文件<ref>文件位于:{{path|game/common/province_setup.csv}}</ref>处理。每个省份都列有重要信息。
Province setup refers to defining the basic properties of each [[territory]] - terrain, pops, trade goods, etc. Note that territory ownership is '''not''' defined in province setup, but rather under the [[Country modding|entry for the country]], while ports and adjacencies are defined in the [[Map modding|map]] folder.
=== 省份设置 ===
 
每个省份被给予一个省份ID、文化、宗教、一种特定的商品,公民、自由民、奴隶、部落民的数量,文明度、蛮族力量,名称参考和(地区)省份参考。
== Province Setup ==
The basic properties of each territory is handled in the <code>game\setup\provinces</code> folder. By convention, all territories in each region are grouped together in one file. Each territory is listed by its ID, along with its culture, religion, trade good, number of each pop class (nobles, citizens, freedmen, slaves, tribesmen), a civilization value, a barbarian power value, a the territory rank.
<pre>
<pre>
#ProvID; Culture; Religion; TradeGoods; Citizens; Freedmen; Slaves; Tribesmen; Civilization; Barbarian; NameRef;AraRef
1={ #Roma
1,roman,roman_pantheon,cloth,21,15,4,3,40,0,Roma,Latium
terrain="farmland"
culture="roman" # The default culture of the pops. Note that this is not necessarily the dominant culture, although doing so is preferred
religion="roman_pantheon" # The default religion of the pops. Note that this is not necessarily the dominant religion, although doing so is preferred
trade_goods="cloth"
civilization_value=40
barbarian_power=0
province_rank="city"
citizen={ # Minority pops should have their culture and/or religion defined if different from what is defined for the territory as a whole
culture="hebrew"
religion="judaism"
amount=4
}
nobles={ # These pops have the default culture/religion defined above
amount=5
}
citizen={
amount=20
}
freemen={
amount=21
}
slaves={
amount=4
}
tribesmen={
amount=4
}
holy_site = omen_jupiter # Holy sites are defined by their omen entries, not their deity entries. Treasures are defined in the main setup.
}
</pre>
</pre>
== Main setup ==
More auxiliary setup, such as buildings, modifiers, and treasures (in holy sites) are handled in the <code>provinces</code> block of any file in the <code>game\setup\main</code> folder.
<pre>
# Note that there is no actual reason why treasures, buildings, and modifiers have to be split up, though it does make it easier to read
provinces = {
### TREASURES ###
1 = { # Roma
treasure_slots = { treasures = { 16 198 } } # Must have a holy site in the province for this to work
}
# ...
### BUILDINGS
1 = { #Rome
commerce_building = 1
court_building = 1
town_hall_building = 1
military_building = 2
}
# ...
### MODIFIERS
6615 = { # Alexandreia Opiane
modifier = { modifier = alexandria always = yes }
}
}
</pre>
Road networks are defined in their own section as the pairs of territories that they connect.
<pre>
road_network = {
1 = 15 #Roma - Ostia
#Via Appia:
1 = 2 #Roma - Tibur
2 = 4 #Tibur - Apii
4 = 5 #Apii - Fundi
5 = 6 #Fundi - Volternum
6 = 8 #Volternum - Telesia
}
</pre>


== 参考资料 ==
== 参考资料 ==
第12行: 第85行:


{{Modding navbox}}
{{Modding navbox}}
[[Category:Province_setup]]
[[en:Province_Setup]]
[[en:Province_Setup]]

2022年5月31日 (二) 20:29的最新版本

Province setup refers to defining the basic properties of each territory - terrain, pops, trade goods, etc. Note that territory ownership is not defined in province setup, but rather under the entry for the country, while ports and adjacencies are defined in the map folder.

Province Setup

The basic properties of each territory is handled in the game\setup\provinces folder. By convention, all territories in each region are grouped together in one file. Each territory is listed by its ID, along with its culture, religion, trade good, number of each pop class (nobles, citizens, freedmen, slaves, tribesmen), a civilization value, a barbarian power value, a the territory rank.

1={ #Roma
	terrain="farmland"
	culture="roman"			# The default culture of the pops. Note that this is not necessarily the dominant culture, although doing so is preferred
	religion="roman_pantheon"	# The default religion of the pops. Note that this is not necessarily the dominant religion, although doing so is preferred
	trade_goods="cloth"
	civilization_value=40
	barbarian_power=0
	province_rank="city"
	citizen={			# Minority pops should have their culture and/or religion defined if different from what is defined for the territory as a whole
		culture="hebrew"
		religion="judaism"
		amount=4
	}
	nobles={			# These pops have the default culture/religion defined above
		amount=5
	}
	citizen={
		amount=20
	}
	freemen={
		amount=21
	}
	slaves={
		amount=4
	}
	tribesmen={
		amount=4
	}
	holy_site = omen_jupiter	# Holy sites are defined by their omen entries, not their deity entries. Treasures are defined in the main setup.
}

Main setup

More auxiliary setup, such as buildings, modifiers, and treasures (in holy sites) are handled in the provinces block of any file in the game\setup\main folder.

# Note that there is no actual reason why treasures, buildings, and modifiers have to be split up, though it does make it easier to read
provinces = {
	### TREASURES ###
	1 = { # Roma
		treasure_slots = { treasures = { 16 198 } }	# Must have a holy site in the province for this to work
	}
	
	# ...

	### BUILDINGS
	1 = { #Rome
		commerce_building = 1		
		court_building = 1
		town_hall_building = 1
		military_building = 2
	}
	
	# ...

	### MODIFIERS
	6615 = { # Alexandreia Opiane
		modifier = { modifier = alexandria always = yes }
	}
}

Road networks are defined in their own section as the pairs of territories that they connect.

road_network = {
	1 = 15		#Roma - Ostia
	#Via Appia:
	1 = 2		#Roma - Tibur
	2 = 4		#Tibur - Apii
	4 = 5		#Apii - Fundi
	5 = 6		#Fundi - Volternum
	6 = 8		#Volternum - Telesia
}


参考资料