Now download the "Civ5 Test Improvement - Airfield" and "Civ5 Test Wonder - Temple of Heaven", unpack and put it into :
C:\Program Files (x86)\Steam\steamapps\common\sid meier's civilization v\Assets\DLC\Expansion\DLC\
Expansion <------ add a new folder, must not be wrong
you can open the game and test it (not in mod), I set the prereq tech is AGRICULTURE, so you can test it when in turn 1.
1) 3D Model
Let me edit it, go to
C:\Program Files (x86)\Steam\steamapps\common\sid meier's civilization v\Assets\DLC\Expansion\DLC\Expansion\Test_Improvement\Airfield_Model
there are 2 era and 3 state improvements, 6 models, you need understand what is HB, PL, it's the name used of the 3D model's states
UnderConstruction=HB
Constructed=n\a
Pillaged=PL
Use these for template, create\convert a new model to replace it, for the example, I used the Factory.nif in attach files.
Open the Factory.nif with Nifskope, then export to .obj file
open the Airfield_Era1.blend and import the .obj file
make the proper position and scale it, like this
add the texture
then right click the airport and delete it
export to .FBX
export setting
Open Indie Stone Nexus Buddy 0.5a and import the .FBX file
press the add, chosse BuildingShader
following the next pic then press save gr2
change the name to "Factory_Era1" after save, we can open the Factory_Era1.gr2 with the gr2 viewer
find the "
Airfield_Era1.fxsxml" rename it to "
Factory_Era1.fxsxml" then open it with notes
and change this :
<Mesh file="
Airfield_Era1.gr2" source="Max" /> --->
Factory_Era1.gr2
It's a simply and a quick way, you also can add the landmark, etc...
Now you can create the Factory_HB, Factory_PL, Era1, Era2, Era3..... and different angles, different art types, different civ types... This easier than make a unit.
I created 6 factories's model for next part, Era1_HB, Era1, Era1_PL, Era2_HB, Era2, Era2_PL.
(The wonder's step is same of the improvement.)
2) XML
I modified 5 XML files for improvement \ 3 XML files for Wonder,
you can use another way (SQL?) when you understand what I change.
improvement changed :
Civ5ArtDefines_Landmarks_Expansion.xml
Civ5ArtDefines_LandmarkTypes_Expansion.xml
CIV5Builds_Expansion.xml
CIV5Improvements_Expansion.xml
CIV5Units.xml
Wonder changed :
Civ5ArtDefines_Expansion_Wonders.xml
CIVBuildingClasses_Expansion.xml
CIV5Buildings_Expansion.xml
Open the files and search "test" , you can see what I changed.
In this case, you need change all "Airfield" to "Factory".
Explain some xml, open my Civ5ArtDefines_Landmarks_Expansion.xml
<LandmarkArtInfo>
<ImprovementType>ART_DEF_IMPROVEMENT_AIRFIELD</ImprovementType>
<ResourceType>ART_DEF_RESOURCE_ALL</ResourceType>
<Era>Ancient</Era>
controlled the Era
<State>UnderConstruction</State>
This controlled the States, 3 types and "any", so we can make 3 models to use this, but the wonder haven't this tag so I can't make the wonder have "under construction" states.
<fScale>1.0</fScale>
<FXSXML>Airfield_Era1_HB.fxsxml</FXSXML>
This your 3D model name
<LayoutHandler>SNAPSHOT</LayoutHandler>
There will be appear different types if set "RANDOM" e.g. BARBARIAN_CAMP, you can make different angles, different art types to use that.
<bTerrainContour>False</bTerrainContour>
</LandmarkArtInfo>
open my Civ5ArtDefines_Expansion_Wonders.xml
<WonderArtInfo>
<Type>TEMPLE OF HEAVEN</Type>
<WonderArtState state="Any">
<fScale>0.05</fScale>
<Granny>Temple_Of_Heaven.fxsxml</Granny>
</WonderArtState>
</WonderArtInfo>
It's very simply, only scale and the filename, I tried change the state="Any">, but nothing to change, so I think the wonder's state maybe controlled in 3D model...
I don't know whether to be detailed enough, if someone known more, welcome to completion it, thank you