Soverign Mounts Bug.... (Resolved)

While experimenting, I worked with making each mount selectable from the customization menu.

 

However, the picture shows a copy of the mount standing on top of itself! Here is my code, either I did something wrong, or something is happening wrongly in game.

 

    <GameItemType InternalName="Mount_MythicTameRavenousHarridan">
        <DisplayName>Tame Ravenous Harridan</DisplayName>
        <Description>A tame Ravenous Harridan. Tame as can be. It is enchanted with calmness and speaks your language.</Description>
        <Type>Mount</Type>
        <CanBeEquipped>1</CanBeEquipped>
        <CustomizationPointCost>0</CustomizationPointCost>        
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockCombatAbility</Attribute>
            <StrVal>TangledWeb</StrVal>
            <Provides>Tangled Web- Target enemy is immobilized for 3 rounds.</Provides>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ChanceToAvoidProne</StrVal>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Value>2</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_DodgeAgainstRanged</StrVal>
            <Value>15</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <Value>2</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_WeightCapacity</StrVal>
            <Value>25</Value>
        </GameModifier>
        <CutSceneDataPack>SpiderMountCutScenePack</CutSceneDataPack>
        <IsAvailableForSovereignCustomization>1</IsAvailableForSovereignCustomization>        
        <IsAvailableForUnitDesign>0</IsAvailableForUnitDesign>
            <AIData AIPersonality="AI_General">
                <AIPrefType>AIPrefType_MOUNT</AIPrefType>
            </AIData>
        <ArtDef>Mount_RavenousHarridan_ArtDef</ArtDef>
        <GameItemTypeArtDef InternalName="Mount_RavenousHarridan_ArtDef">
            <GameItemTypeModelPack InternalName="Mount_RavenousHarridan_Default">
                <IconFile>Mount_RavenousHarriden_Icon.png</IconFile>
                <TintR>0</TintR>
                <TintG>0</TintG>
                <TintB>0</TintB>
                <EquipSFX>Equip_WoodenItem_01</EquipSFX>
                <EquipSFX>Equip_WoodenItem_02</EquipSFX>
                <EquipSFX>Equip_WoodenItem_03</EquipSFX>
                <EquipSFX>Equip_WoodenItem_04</EquipSFX>
                <MountedAnimationPack>MountedSoldierSpiderAnimationPack</MountedAnimationPack>
                <SupportedUnitModelType>AmarianFemale</SupportedUnitModelType>
                <SupportedUnitModelType>AmarianMale</SupportedUnitModelType>
                <SupportedUnitModelType>EmpireFemale</SupportedUnitModelType>
                <SupportedUnitModelType>EmpireMale</SupportedUnitModelType>
                <SupportedUnitModelType>FallenFemale</SupportedUnitModelType>
                <SupportedUnitModelType>FallenMale</SupportedUnitModelType>
                <SupportedUnitModelType>HenchmanMale</SupportedUnitModelType>
                <SupportedUnitModelType>IroneerFemale</SupportedUnitModelType>
                <SupportedUnitModelType>IroneerMale</SupportedUnitModelType>
                <SupportedUnitModelType>KingdomFemale</SupportedUnitModelType>
                <SupportedUnitModelType>KingdomMale</SupportedUnitModelType>
                <SupportedUnitModelType>MancerFemale</SupportedUnitModelType>
                <SupportedUnitModelType>MancerMale</SupportedUnitModelType>
                <SupportedUnitModelType>QuendarFemale</SupportedUnitModelType>
                <SupportedUnitModelType>QuendarMale</SupportedUnitModelType>
                <SupportedUnitModelType>SlaveMale</SupportedUnitModelType>
                <SupportedUnitModelType>TarthanFemale</SupportedUnitModelType>
                <SupportedUnitModelType>TarthanMale</SupportedUnitModelType>
                <SupportedUnitModelType>UrxenFemale</SupportedUnitModelType>
                <SupportedUnitModelType>UrxenMale</SupportedUnitModelType>
                <SupportedUnitModelType>WraithFemale</SupportedUnitModelType>
                <SupportedUnitModelType>WraithMale</SupportedUnitModelType>
                <GameItemTypeModel>
                    <ModelFile>M_Spider_Mesh_01.hkb</ModelFile>
                    <Scale>1.2</Scale>
                    <SkeletonFile>M_Spider_Skeleton_01.hkb</SkeletonFile>
                    <Texture_Skin>M_Spider_Texture_01.png</Texture_Skin>
                    <AnimationPack>SpiderMountAnimationPack</AnimationPack>
                    <Attachment>Unit_Mount_Lcf</Attachment>
                    <Color_Skin>10,0,10,255</Color_Skin>
                    <ShadowImage>/gfx/decals/Shadow_Horse_01.png</ShadowImage>
                </GameItemTypeModel>
            </GameItemTypeModelPack>
        </GameItemTypeArtDef>
    </GameItemType>

 

Also, the "spider legs" mount doesn't "unlock" and show itself on the menu.

6,204 views 4 replies
Reply #1 Top

This is a common mistake with the art definitions. Remove the model data here and you should be fine. It doesn't overwrite the original art-def and that is what you are seeing with this copy as well.

Reply #2 Top

Will removing model data also maintain compatibility with female henchmen for mounts I desire to be used in unit design?

Reply #3 Top

Unless you are redefining the art-definition you only need to tell the game what art definition to use for this particular model. The only other things you would need to include is the changes to the file you are creating. For example your above mount, doesn't need anything except the supported unit types.

To have compatibility to the female henchmen mod you need to include

<SupportedUnitModelType>HenchmanFemale</SupportedUnitModelType>

But in my mod I already did that for the ravenous harriden mount. So really all you need for your mod is the following

<GameItemType InternalName="Mount_MythicTameRavenousHarridan">        
    <DisplayName>Tame Ravenous Harridan</DisplayName>        
    <Description>A tame Ravenous Harridan. Tame as can be. It is enchanted with calmness and speaks your language.</Description>         
    <Type>Mount</Type>         
    <CanBeEquipped>1</CanBeEquipped>         
    <CustomizationPointCost>0</CustomizationPointCost>               
    <GameModifier>            
        <ModType>Unit</ModType>            
        <Attribute>UnlockCombatAbility</Attribute>            
        <StrVal>TangledWeb</StrVal>            
        <Provides>Tangled Web- Target enemy is immobilized for 3 rounds.</Provides>         
    </GameModifier>        
    <GameModifier>            
    <ModType>Unit</ModType>            
        <Attribute>AdjustUnitStat</Attribute>            
        <StrVal>UnitStat_ChanceToAvoidProne</StrVal>            
        <Value>100</Value>        
    </GameModifier>        
    <GameModifier>            
        <ModType>Unit</ModType>            
        <Attribute>AdjustUnitStat</Attribute>            
        <StrVal>UnitStat_CombatSpeed</StrVal>            
        <Value>2</Value>        
    </GameModifier>        
    <GameModifier>            
        <ModType>Unit</ModType>            
        <Attribute>AdjustUnitStat</Attribute>            
        <StrVal>UnitStat_DodgeAgainstRanged</StrVal>            
        <Value>15</Value>        
    </GameModifier>        
    <GameModifier>            
        <ModType>Unit</ModType>            
        <Attribute>AdjustUnitStat</Attribute>            
        <StrVal>UnitStat_Moves</StrVal>            
        <Value>2</Value>        
    </GameModifier>        
    <GameModifier>            
        <ModType>Unit</ModType>            
        <Attribute>AdjustUnitStat</Attribute>            
        <StrVal>UnitStat_WeightCapacity</StrVal>            
        <Value>25</Value>        
    </GameModifier>        
    <CutSceneDataPack>SpiderMountCutScenePack</CutSceneDataPack>        
    <IsAvailableForSovereignCustomization>1</IsAvailableForSovereignCustomization>
    <IsAvailableForUnitDesign>0</IsAvailableForUnitDesign>            
    <AIData AIPersonality="AI_General">                 
         <AIPrefType>AIPrefType_MOUNT</AIPrefType>             
    </AIData>         
    <ArtDef>Mount_RavenousHarridan_ArtDef</ArtDef>
</GameItemType>

Since the art definition is already defined it should work just the way you intend.

Reply #4 Top

Thanks, had this happen as well.