Civilicious
Warlord
If this has been done before by someone else sorry please delete thread.
This isn't really a new graphics but it is my first contribution to civIV. I noticed that there were .nif files for modern harbor but that the harbor graphics were not updated when I reached the later eras. As opposed to the lighthouse for example which turns into the barber pole thingy in the later eras.
All I did was change the XML file to make the game use the modern harbor graphics. Go to Civ IV/Assets/XML/Buildings and open up CIV4CityLSystem with Notepad. Use 'find' to locate the harbor entry, replace it with the following:
<ArtRef Name="building:BUILDING_HARBOR">
<Attribute Class="Era">ERA_ANCIENT,ERA_CLASSICAL,ERA_MEDIEVAL,ERA_RENAISSANCE</Attribute>
<Attribute Class="Scalar">bNoWaterTest:1</Attribute>
<!-- this bypasses water testing -->
<Attribute Class="Scalar">szSpecialLayout:Coast</Attribute>
<Attribute Class="Scalar">bHasNoShadow:1</Attribute>
<Attribute Class="Scalar">bUseCostAligner:1</Attribute>
<Attribute Class="Scalar">fAlignerBoxSize:25</Attribute>
<Attribute Class="Scalar">fPushX:0</Attribute>
<!-- To debug the placement of the alignpoints, uncomment this next line
<Attribute Class="Scalar">fAlignerOverride:0.0</Attribute>
-->
<Attribute Class="ScalarList">lAlignerPointsX: -0.40, -0.60, -0.20, 1.00, 1.0</Attribute>
<Attribute Class="ScalarList">lAlignerPointsY: 1.50, 0.2, -1.50, -.50, 1.1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWet: 0, 0, 0, 1, 1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWeight: .33, .33, .33, .5, .5</Attribute>
<Attribute Class="Scalar">bForceWaterHeight:1</Attribute>
<Rotate>-60</Rotate>
<Scale>2.5</Scale>
</ArtRef>
<ArtRef Name="building:BUILDING_HARBOR">
<Attribute Class="Scalar">szNIF:Art/Structures/Buildings/Harbor/HarborModern.nif</Attribute>
<Attribute Class="Era">ERA_INDUSTRIAL,ERA_MODERN,ERA_FUTURE</Attribute>
<Attribute Class="Scalar">bNoWaterTest:1</Attribute>
<!-- this bypasses water testing -->
<Attribute Class="Scalar">szSpecialLayout:Coast</Attribute>
<Attribute Class="Scalar">bHasNoShadow:1</Attribute>
<Attribute Class="Scalar">bUseCostAligner:1</Attribute>
<Attribute Class="Scalar">fAlignerBoxSize:25</Attribute>
<Attribute Class="Scalar">fPushX:0</Attribute>
<!-- To debug the placement of the alignpoints, uncomment this next line
<Attribute Class="Scalar">fAlignerOverride:0.0</Attribute>
-->
<Attribute Class="ScalarList">lAlignerPointsX: -0.40, -0.60, -0.20, 1.00, 1.0</Attribute>
<Attribute Class="ScalarList">lAlignerPointsY: 1.50, 0.2, -1.50, -.50, 1.1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWet: 0, 0, 0, 1, 1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWeight: .33, .33, .33, .5, .5</Attribute>
<Attribute Class="Scalar">bForceWaterHeight:1</Attribute>
<Rotate>-60</Rotate>
<Scale>1.0</Scale>
</ArtRef>
If you compare the file entries for lighthouse and harbor you can see what I changed, I just set up the harbor the same way as lighthouse so it uses the other files in the later eras. Also the modern harbor graphic was huge and so I changed the scaling value to 1.0. Attaching screenshot, I haven't played around with the orientation or rotation or anything yet but I think it looks good, I don't understand why it wasn't in the game.
This isn't really a new graphics but it is my first contribution to civIV. I noticed that there were .nif files for modern harbor but that the harbor graphics were not updated when I reached the later eras. As opposed to the lighthouse for example which turns into the barber pole thingy in the later eras.
All I did was change the XML file to make the game use the modern harbor graphics. Go to Civ IV/Assets/XML/Buildings and open up CIV4CityLSystem with Notepad. Use 'find' to locate the harbor entry, replace it with the following:
<ArtRef Name="building:BUILDING_HARBOR">
<Attribute Class="Era">ERA_ANCIENT,ERA_CLASSICAL,ERA_MEDIEVAL,ERA_RENAISSANCE</Attribute>
<Attribute Class="Scalar">bNoWaterTest:1</Attribute>
<!-- this bypasses water testing -->
<Attribute Class="Scalar">szSpecialLayout:Coast</Attribute>
<Attribute Class="Scalar">bHasNoShadow:1</Attribute>
<Attribute Class="Scalar">bUseCostAligner:1</Attribute>
<Attribute Class="Scalar">fAlignerBoxSize:25</Attribute>
<Attribute Class="Scalar">fPushX:0</Attribute>
<!-- To debug the placement of the alignpoints, uncomment this next line
<Attribute Class="Scalar">fAlignerOverride:0.0</Attribute>
-->
<Attribute Class="ScalarList">lAlignerPointsX: -0.40, -0.60, -0.20, 1.00, 1.0</Attribute>
<Attribute Class="ScalarList">lAlignerPointsY: 1.50, 0.2, -1.50, -.50, 1.1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWet: 0, 0, 0, 1, 1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWeight: .33, .33, .33, .5, .5</Attribute>
<Attribute Class="Scalar">bForceWaterHeight:1</Attribute>
<Rotate>-60</Rotate>
<Scale>2.5</Scale>
</ArtRef>
<ArtRef Name="building:BUILDING_HARBOR">
<Attribute Class="Scalar">szNIF:Art/Structures/Buildings/Harbor/HarborModern.nif</Attribute>
<Attribute Class="Era">ERA_INDUSTRIAL,ERA_MODERN,ERA_FUTURE</Attribute>
<Attribute Class="Scalar">bNoWaterTest:1</Attribute>
<!-- this bypasses water testing -->
<Attribute Class="Scalar">szSpecialLayout:Coast</Attribute>
<Attribute Class="Scalar">bHasNoShadow:1</Attribute>
<Attribute Class="Scalar">bUseCostAligner:1</Attribute>
<Attribute Class="Scalar">fAlignerBoxSize:25</Attribute>
<Attribute Class="Scalar">fPushX:0</Attribute>
<!-- To debug the placement of the alignpoints, uncomment this next line
<Attribute Class="Scalar">fAlignerOverride:0.0</Attribute>
-->
<Attribute Class="ScalarList">lAlignerPointsX: -0.40, -0.60, -0.20, 1.00, 1.0</Attribute>
<Attribute Class="ScalarList">lAlignerPointsY: 1.50, 0.2, -1.50, -.50, 1.1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWet: 0, 0, 0, 1, 1</Attribute>
<Attribute Class="ScalarList">lAlignerPointsWeight: .33, .33, .33, .5, .5</Attribute>
<Attribute Class="Scalar">bForceWaterHeight:1</Attribute>
<Rotate>-60</Rotate>
<Scale>1.0</Scale>
</ArtRef>
If you compare the file entries for lighthouse and harbor you can see what I changed, I just set up the harbor the same way as lighthouse so it uses the other files in the later eras. Also the modern harbor graphic was huge and so I changed the scaling value to 1.0. Attaching screenshot, I haven't played around with the orientation or rotation or anything yet but I think it looks good, I don't understand why it wasn't in the game.