Problems getting textures to work.

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.
 
Top Bottom