1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Problems getting textures to work.

Discussion in 'Civ5 - Creation & Customization' started by God 2.0, Apr 12, 2012.

  1. God 2.0

    God 2.0 Chieftain

    Joined:
    Apr 10, 2012
    Messages:
    14
    Hello there!

    I realize I'm approaching the level of spam by posting 3 new threads so soon after joining, but I am a bit puzzled to why my textures won't work.

    I've made a new archer, called composite archer, and a corresponding unit class. Now, the unit works fine, but somehow it reverts to some default archer texture even though I've included an updated version of the "archer.fxsxml" file.

    My texture file is just the basic archer 3 texture file, where I've borrowed armor textures from the spearman and added metal pieces to the bow part. I've saved the file as dds, including mipmaps.

    As for the code, here are some snippets from the art defines:

    Code:
    <UnitMemberArtInfo>
    
    		<Type>ART_DEF_UNIT_MEMBER_COMPOSITE_ARCHER</Type>
    		<fScale>0.14</fScale>
    		<Granny>Composite_archer.fxsxml</Granny>
    		<Combat>
    			<Defaults>ART_DEF_TEMPLATE_ARCHER</Defaults>
    		</Combat>
    		<MaterialTypeTag>CLOTH</MaterialTypeTag>
    		<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
    	
    </UnitMemberArtInfo>
    
    Code:
    <UnitArtInfo>
    
    		<Type>ART_DEF_UNIT_COMPOSITE_ARCHER</Type>
    		<Formation>Archer</Formation>
    		<DamageStates>1</DamageStates>
    
    		<UnitMemberArt>
    			<MemberType>ART_DEF_UNIT_MEMBER_COMPOSITE_ARCHER</MemberType>
    			<MemberCount>12</MemberCount>
    		</UnitMemberArt>
    
    	</UnitArtInfo>
    
    And here are the texture fields from the fxsxml:

    Code:
    <Texture file="Composite_Archer_SREF.dds"/>
    	<Texture file="Composite_Archer_DIFF.dds"/>
    
    I've imported all files except my units and unitclass tables as VFS, and I have ticked the box that says reload unit system.

    I'd appreciate any assistance.
    Thanks!

    EDIT: Forgot to say. The fxsxml is a copy of the archer.fxsxml which I've renamed to Composite_archer.fxsxml. It is not intended to overwrite the old archer.
     
  2. Nutty

    Nutty Chieftain

    Joined:
    Mar 9, 2011
    Messages:
    2,947
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
  3. God 2.0

    God 2.0 Chieftain

    Joined:
    Apr 10, 2012
    Messages:
    14
    That worked perfectly! Thanks a bunch! :)
     

Share This Page