[GS] Where is the Canal District's placement requirement located?

Windflier

Chieftain
Joined
Dec 15, 2017
Messages
39
I searched all around the Lua files and Xml fils in the expansion file, and no luck, I can't find any line about the Canal's placement requirement. Any one got any lead?
 
Here
Code:
<Districts_XP2>
       <Row DistrictType="DISTRICT_CANAL" Canal="true"/>
</Districts_XP2>
Which means that the conditions are internally coded and recognized only by setting this flag to true.
So the placement requirement is coded in places that we can't reach? that's a bummer.
 
I believe that condition is strictly for checking if the canal connects bodies of water or other canals / city centers. Because there are no others afaik.
You probably can use all other conditions like any other district, but this will just limit it placement (like e.g. adjacent to river, other district, etc.)
Also, you can change terrain. Right now you cannot build it on hills.
Code:
    <District_ValidTerrains>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_GRASS"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_PLAINS"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_TUNDRA"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_SNOW"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_DESERT"/>
   </District_ValidTerrains>
 
I believe that condition is strictly for checking if the canal connects bodies of water or other canals / city centers. Because there are no others afaik.
You probably can use all other conditions like any other district, but this will just limit it placement (like e.g. adjacent to river, other district, etc.)
Also, you can change terrain. Right now you cannot build it on hills.
Code:
    <District_ValidTerrains>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_GRASS"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_PLAINS"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_TUNDRA"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_SNOW"/>
       <Row DistrictType="DISTRICT_CANAL" TerrainType="TERRAIN_DESERT"/>
   </District_ValidTerrains>
Yeah I think we can change it to built on hills even mountains, but that's all. The most annoying part about the canal placement is the requirement of water tiles adjacency, I was hoping we can change it around, but it seems unlikely for now.
 
So... you want a canal that doesn’t go into a water? Most peculiar...
I want to at least make a Canal pipeline that can go through a whole land, connecting some land city on the way, just like the Grand Canal in real history.
For that, I need to place the canal near only one water tile or even just one Canal tile. But it seems impossible for now.
 
Back
Top Bottom