|Civ5 - Creation & Customization Forum for Civ5 modding and customization discussions.|
|Apr 12, 2012, 10:29 AM||#1|
Join Date: Apr 2012
Problems getting textures to work.
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:
<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>
<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>
<Texture file="Composite_Archer_SREF.dds"/> <Texture file="Composite_Archer_DIFF.dds"/>
I'd appreciate any assistance.
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.
Last edited by God 2.0; Apr 12, 2012 at 11:40 AM.
|Apr 12, 2012, 03:38 PM||#2|
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
It sounds like you didn't use IndieStone Nexus Buddy to change the texture references in the gr2.
MODS: Single/Reduced Unit Graphics City States Leaders Randomize City Names CameraRotation and WASD Controls
MODMODS: Just Ethnic Diversity for R.E.D. Modpack Smaller Landmarks for R.E.D. Modpack
UNITS: Knights Gray/Sharkmouth Gunship Teamcolor Napoleonic musketmen Levy for GEM Misc. Units
Last edited by Nutty; Apr 12, 2012 at 03:40 PM. Reason: Add link