Jump to content

"Required texture sampler specTex not found"? Why?


krt0143
 Share

Recommended Posts

I've got this recurring error: Each time I make a new unit art file I get this error at first. Even if the only things changed are a name. It's very annoying.
While I've (somehow) always managed to make it go away, I never remember how, and I'd like to know what I am looking at:

ERROR: Actor units/britons/infantry_axeman_e.xml255: required texture sampler specTex not found (material art/materials/player_trans_spec.xml)

What is that error message talking about? And how do I make it go away? No, there is no nesting error, it's the first thing I checked. :dontgetit:

 

(Here is the end part of the \art\actors\units\britons\infantry_axeman_e.xml file throwing that error, in case you wonder:)

Spoiler

  [...]
  <group>
    <variant file="biped/base_axeman_shield_fast_relax.xml" name="Axeman-Shield-Relax"/>
    <variant file="biped/carry_food.xml"/>
    <variant file="biped/carry_meat.xml"/>
    <variant file="biped/carry_wood.xml"/>
    <variant file="biped/carry_stone.xml"/>
    <variant file="biped/carry_metal.xml"/>
    <variant file="biped/approach_tree.xml"/>
    <variant file="biped/approach_grain.xml"/>
    <variant file="biped/approach_fruit.xml"/>
    <variant file="biped/approach_meat.xml"/>
    <variant file="biped/approach_rock.xml"/>
    <variant file="biped/approach_ore.xml"/>
    <variant file="biped/approach_ruins.xml"/>
    <variant file="biped/approach_praise.xml"/>
  </group>
  <group>
    <variant frequency="1" name="Idle"/>
    <variant file="biped/attack_capture.xml"/>
    <variant file="biped/attack_slaughter.xml"/>
    <variant file="biped/gather_tree.xml"/>
    <variant file="biped/gather_grain.xml"/>
    <variant file="biped/gather_fruit.xml"/>
    <variant file="biped/gather_meat.xml"/>
    <variant file="biped/gather_rock.xml"/>
    <variant file="biped/gather_ore.xml"/>
    <variant file="biped/gather_ruins.xml"/>
    <variant file="biped/gather_praise.xml"/>
    <variant file="biped/build.xml"/>
    <variant file="biped/build_farm.xml"/>
    <variant file="biped/death_infantry.xml"/>
  </group>
  <material>player_trans_spec.xml</material>
</actor>
 

 

Link to comment
Share on other sites

29 minutes ago, Grapjas said:

this file doesn't exist.

Sure it does exist! It's a stock file I've never touched (inside \public\art\materials). :laugh:

 

Anyway, for those who stumble upon the same problem, and find this thread some time in the future, the explanation is as follows:

  • Standard units (not-champion units) need "<material>player_trans.xml</material>"
  • Champion type units need "<material>player_trans_spec.xml</material>"  Note the "_spec" part: It's specific to champion units.

:rolleyes:

Link to comment
Share on other sites

Yeah my bad i was looking at SVN but those file names will change with the future alpha, just so you know. 

41 minutes ago, krt0143 said:
  • Standard units (not-champion units) need "<material>player_trans.xml</material>"
  • Champion type units need "<material>player_trans_spec.xml</material>"  Note the "_spec" part: It's specific to champion units.

^ This will become irrelevant for example [1] [2].

Edited by Grapjas
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...