Jean Elcard
The Flavournator
I suppose you know the file "Civ4CityLSystem.xml"? Its main reason is to make buildings visible on the map. So far so good.
My intention was to allow lighthouses for inland cities, so you are able to get a food bonus for water tiles in the city radius. That part was easy. Now I wanted to put the lighthouse on th map. No trouble either. The problem is, it looks a bit weird to have a lighthouse in the city center.
My idea is now to put it in on a free water tile outside the city but in the city radius. I think I have to write a new custom layout engine for this, because similiar code already exists for aqueducts in the file mentioned above. Supposedly to connect the aqueduct to a hill in the city radius:
But how am I going to do? I couldn't find anything like "SpecialLayout", "AqueductBuilder" or "CustomLayoutEngine" in the Python or SDK source code. Maybe I'm just stupid or it doesn't exist at all, but I still hope somebody might be able to help me out here. Any ideas where to look or what to do? Thx.
My intention was to allow lighthouses for inland cities, so you are able to get a food bonus for water tiles in the city radius. That part was easy. Now I wanted to put the lighthouse on th map. No trouble either. The problem is, it looks a bit weird to have a lighthouse in the city center.
My idea is now to put it in on a free water tile outside the city but in the city radius. I think I have to write a new custom layout engine for this, because similiar code already exists for aqueducts in the file mentioned above. Supposedly to connect the aqueduct to a hill in the city radius:
Code:
<LNode Name="BuildingsUsingCustomLayoutEngines">
...
<ArtRef Name="building:BUILDING_AQUEDUCT">
<Attribute Class="Scalar">szSpecialLayout:CityCenter</Attribute>
<Attribute Class="Scalar">szBuilder:AqueductBuilder</Attribute>
<Attribute Class="Scalar">bLayoutAfterGenerics:0</Attribute>
<Attribute Class="Scalar">bNoContour:1</Attribute>
<Rotate>45</Rotate>
</ArtRef>
...
</LNode>
But how am I going to do? I couldn't find anything like "SpecialLayout", "AqueductBuilder" or "CustomLayoutEngine" in the Python or SDK source code. Maybe I'm just stupid or it doesn't exist at all, but I still hope somebody might be able to help me out here. Any ideas where to look or what to do? Thx.