The Tollan
Prince
- Joined
- Oct 29, 2005
- Messages
- 418
I have encountered a problem with a mod that I have been working on. With whoward69's help I have progressed to a stage in which I am trying to add a new unit member type to the game and then incorporate it into an existing unit from Civilization V.
I have uploaded a copy of the mod for reference. The artwork on the .dds is not complete and not detailed since it is mainly for testing purposes. The objective of this mod is to place a new unit member, basically a reskinned Paratrooper, into the database and then include four of these in the Mechanized Infantry unit formation (cutting the number of vehicles to two).
The mod has two xml files within a folder called UnitArt. These files are: MechanizedInfantryNewArtDefines.xml and Civ5ArtDefines_UnitMembers.xml. It also has modernsoldier.fxsxml and modernsoldier_diff.dds. I have not put a gr2 or _sref.dds file into the mod as of yet. This fxsxml file is exactly like the paratrooper.fxsxml version except that it set to use modernsoldier_diff.dds instead of Paratrooper_diff.dds.
The MechanizedInfantryNewArtDefines.xml, that changes the unit members of the Mechanized Infantry unit, functions properly when it is set to include only Mechanized Infantry and Paratrooper unit members.
The problem is that once I change the Paratrooper unit members to a member type not already in the game (in this case a new Modernsoldier member) then these unit members do not display in game (but the rest of the formation does appear).
This is the xml I used for the unit member (it appears at the end of the Civ5ArtDefines_UnitMembers.xml file):
The Mechanized Infantry unit displays two of MI vehicles while the four Modernsoldier members are either lacking appearance or absent. I have tried several things to resolve whatever is causing the problem, but have not yet determined what exactly what is causing it. I have tried a few different versions of the Civ5ArtDefines_UnitMembers.xml. I have the mod activated in the game during each test.
I noticed that this problem occurs even when I set the modern soldier unit member's granny as <Granny>Assets/Units/Paratrooper/Paratrooper.fxsxml</Granny>. This seems to indicate that the immediate problem preceeds the fxsxml and dds files and is connected to the Modernsoldier unit member not being incorporated into the game properly.
The "Modernsoldier" is only a unit member and not a unit itself so I did not add an SQL file.
I have set true for import into VFS on all the files within the mod except for MechanizedInfantryNewArtDefines.xml The MechanizedInfantryNewArtDefines.xml and the Civ5ArtDefines_UnitMembers.xml are both set to be loaded into the database upon mod activation.
I have uploaded a copy of the mod for reference. The artwork on the .dds is not complete and not detailed since it is mainly for testing purposes. The objective of this mod is to place a new unit member, basically a reskinned Paratrooper, into the database and then include four of these in the Mechanized Infantry unit formation (cutting the number of vehicles to two).
The mod has two xml files within a folder called UnitArt. These files are: MechanizedInfantryNewArtDefines.xml and Civ5ArtDefines_UnitMembers.xml. It also has modernsoldier.fxsxml and modernsoldier_diff.dds. I have not put a gr2 or _sref.dds file into the mod as of yet. This fxsxml file is exactly like the paratrooper.fxsxml version except that it set to use modernsoldier_diff.dds instead of Paratrooper_diff.dds.
The MechanizedInfantryNewArtDefines.xml, that changes the unit members of the Mechanized Infantry unit, functions properly when it is set to include only Mechanized Infantry and Paratrooper unit members.
The problem is that once I change the Paratrooper unit members to a member type not already in the game (in this case a new Modernsoldier member) then these unit members do not display in game (but the rest of the formation does appear).
This is the xml I used for the unit member (it appears at the end of the Civ5ArtDefines_UnitMembers.xml file):
Code:
<UnitMemberArtInfo>
<Type>ART_DEF_UNIT_MEMBER_MODERNSOLDIER</Type>
<fScale>0.14</fScale>
<Granny>modernsoldier.fxsxml</Granny>
<Combat>
<Defaults>ART_DEF_TEMPLATE_SOLDIER</Defaults>
<bReformBeforeCombat>1</bReformBeforeCombat>
<bHasShortRangedAttack>1</bHasShortRangedAttack>
<Weapon>
<WeaponTypeTag>BULLET</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>BULLET</WeaponTypeSoundOverrideTag>
</Weapon>
</Combat>
<MaterialTypeTag>CLOTH</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
</UnitMemberArtInfo>
The Mechanized Infantry unit displays two of MI vehicles while the four Modernsoldier members are either lacking appearance or absent. I have tried several things to resolve whatever is causing the problem, but have not yet determined what exactly what is causing it. I have tried a few different versions of the Civ5ArtDefines_UnitMembers.xml. I have the mod activated in the game during each test.
I noticed that this problem occurs even when I set the modern soldier unit member's granny as <Granny>Assets/Units/Paratrooper/Paratrooper.fxsxml</Granny>. This seems to indicate that the immediate problem preceeds the fxsxml and dds files and is connected to the Modernsoldier unit member not being incorporated into the game properly.
The "Modernsoldier" is only a unit member and not a unit itself so I did not add an SQL file.
I have set true for import into VFS on all the files within the mod except for MechanizedInfantryNewArtDefines.xml The MechanizedInfantryNewArtDefines.xml and the Civ5ArtDefines_UnitMembers.xml are both set to be loaded into the database upon mod activation.