unit artstyle

Discussion in 'Civ4 - Creation & Customization' started by dood100125, Oct 18, 2010.

  1. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    I made a art style for my civilization but when I have the units ingame they revert back to the vanilla models and skins. Is there something im doing wrong my code so far is below. Strangely my worker has the right model and skin?
    Code:
    <UnitArtStyleTypeInfos>
            <UnitArtStyleTypeInfo>
                <Type>UNIT_ARTSTYLE_Sadayel</Type>
                <StyleUnits>
                    <StyleUnit>
                    <UnitType>UNIT_IMMORTAL</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_IMMORTAL_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_IMMORTAL_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_IMMORTAL_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                    </StyleUnit>
                </StyleUnits>
                    <StyleUnit>
                        <UnitType>UNIT_CROSSBOWMAN</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_CROSSBOWMAN_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_CROSSBOWMAN_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_CROSSBOWMAN_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                        </StyleUnit>
                        <StyleUnit>
                        <UnitType>UNIT_ARCHMAGE</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_ARCHMAGE_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_ARCHMAGE_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_ARCHMAGE_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                    </StyleUnit>
                    <StyleUnit>
                        <UnitType>UNIT_MAGE</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_MAGE_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_MAGE_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_MAGE_SadayelL</MiddleArtDefineTag>
                        </UnitMeshGroup>
                    </StyleUnit>
                    <StyleUnit>
                        <UnitType>UNIT_ADEPT</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_ADEPT_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_ADEPT_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_ADEPT_Sadayel</MiddleArtDefineTag>
                    </UnitMeshGroup>
                    </StyleUnit>
                    <StyleUnit>
                        <UnitType>UNIT_SETTLER</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_SADAYEL</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_SADAYEL</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_SETTLER_MALE_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_SETTLER_FEMALE_SADAYEL</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_SETTLER_FEMALE_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_SETTLER_FEMALE_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                    </StyleUnit>
                    <StyleUnit>
                        <UnitType>UNIT_WORKER</UnitType>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>
                        <UnitMeshGroup>
                            <EarlyArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</EarlyArtDefineTag>
                            <LateArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</LateArtDefineTag>
                            <MiddleArtDefineTag>ART_DEF_UNIT_WORKER_Sadayel</MiddleArtDefineTag>
                        </UnitMeshGroup>    
                    </StyleUnit>
     
  2. The_J

    The_J Say No 2 Net Validations Super Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,964
    Location:
    DE/NL/FR
    Activate the animations in the games graphics menu, that should fix it.
     
  3. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    They are always activated on my games and I double checked and it did not work.
     
  4. Padjur

    Padjur Prince

    Joined:
    Nov 16, 2009
    Messages:
    318
    Have you set
    Code:
    <UnitArtStyleType>UNIT_ARTSTYLE_Sadayel</UnitArtStyleType> 
    in CIV4CivilizationInfos.xml?
    Should not all the Sadayel entries be uppercase, (I think that the tags should be uppercase unless it was to appear as a text entry) eg <UnitArtStyleType>UNIT_ARTSTYLE_SADAYEL</UnitArtStyleType>
    but I could be wrong :twitch:
     
  5. dood100125

    dood100125 Chieftain

    Joined:
    Sep 13, 2010
    Messages:
    34
    Location:
    Manitoba
    I dont think that is the case because I played with the file and got another units mesh and skin to the one I want but not the others. I think it might be some mix up in the art.xml?
     
  6. Padjur

    Padjur Prince

    Joined:
    Nov 16, 2009
    Messages:
    318
    Could well be, check the art files and the ArtDefines_Unit entries are all correct(art file, nif and kfm etc).
    Check that the highlighted tags (as in the examples below) link together, yours will be different of course but they must match.
    I've tested these edits in my Mod and they work fine.


    CIV4UnitArtStyleTypeInfos.xml
    Spoiler :
    Code:
    		<UnitArtStyleTypeInfo>
    			<Type>[COLOR="Red"]UNIT_ARTSTYLE_TRIBES[/COLOR]</Type>
    			<StyleUnits>
    				<StyleUnit>
    					<UnitType>UNIT_INFANTRY</UnitType>
    				<UnitMeshGroup>
    						<EarlyArtDefineTag>[COLOR="navy"]ART_DEF_UNIT_INFANTRY_GAL[/COLOR]</EarlyArtDefineTag>
    						<LateArtDefineTag>[COLOR="navy"]ART_DEF_UNIT_INFANTRY_GAL[/COLOR]</LateArtDefineTag>
    						<MiddleArtDefineTag>[COLOR="navy"]ART_DEF_UNIT_INFANTRY_GAL[/COLOR]</MiddleArtDefineTag>
    					</UnitMeshGroup>
    				</StyleUnit>
    			</StyleUnits>
    		</UnitArtStyleTypeInfo>

    CIV4CivilizationInfos.xml
    Spoiler :
    Code:
    		<CivilizationInfo>
    			<Type>CIVILIZATION_TRIBES</Type>
    			<Description>TXT_KEY_CIV_TRIBES_DESC</Description>
    			<ShortDescription>TXT_KEY_CIV_TRIBES_SHORT_DESC</ShortDescription>
    			<Adjective>TXT_KEY_CIV_TRIBES_ADJECTIVE</Adjective>
    			<Civilopedia>TXT_KEY_CIV_TRIBES_PEDIA</Civilopedia>
    			<DefaultPlayerColor>PLAYERCOLOR_MAROON</DefaultPlayerColor>
    			<ArtDefineTag>ART_DEF_CIVILIZATION_TRIBES</ArtDefineTag>
    			<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
    			<UnitArtStyleType>[COLOR="red"]UNIT_ARTSTYLE_TRIBES[/COLOR]</UnitArtStyleType>
    			<bPlayable>1</bPlayable>
    			<bAIPlayable>1</bAIPlayable>

    CIV4ArtDefines_Unit.xml
    Spoiler :
    Code:
    		<UnitArtInfo>
    			<Type>[COLOR="navy"]ART_DEF_UNIT_INFANTRY_GAL[/COLOR]</Type>
    			<Button>Art/Interface/Buttons/Units/Galway_Infantry.dds</Button>
    			<fScale>0.44</fScale>
    			<fInterfaceScale>1.0</fInterfaceScale>
    			<bActAsLand>0</bActAsLand>
    			<bActAsAir>0</bActAsAir>
    			<NIF>Art/Units/Infantry_gal/infantry_fx.nif</NIF>
    			<KFM>Art/Units/Infantry/Infantry.kfm</KFM>
    			<SHADERNIF>Art/Units/Infantry_gal/infantry_fx.nif</SHADERNIF>
    			<ShadowDef>
    				<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
    				<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
    				<fShadowScale>0.9</fShadowScale>
    			</ShadowDef>
    			<fBattleDistance>0.35</fBattleDistance>
    			<fRangedDeathTime>0.05</fRangedDeathTime>
    			<bActAsRanged>1</bActAsRanged>
    			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
    			<AudioRunSounds>
    				<AudioRunTypeLoop/>
    				<AudioRunTypeEnd/>
    			</AudioRunSounds>
    		</UnitArtInfo>
     

Share This Page