Jump to content

[SOLVED] Slave::read_material(): can't find material


photo

Recommended Posts

Posted

Hello,

Trying to debug a master-slave IG configuration, here: I get this message on the slave (inifinte repeat)

Slave::read_material(): can't find material "ed736a84c1f3c486ce155379ee75ae98fa26d68e"

But the GUID given can't be found anywhere in any file (I did a thorough search). I suspect this ID is computed by the slave, from some master ID, but how do I find the cause? More strangely, both master and slaves have the exact same files and code, so why would such an error occur?

If this helps: stack trace from the slave:

image.png.7de42a5365ae19ed531b763695248f05.png

Could this be from a runtime generated texture (our rotor blades)?

 

Posted

Found it. Stupid me.

In case it could help others...: I was using syncker->addSyncMaterial() on the master after calling getMaterialInherit(), hoping the slaves would magically use the inherited material. Of course it doesn't work. 

Now, the fix I used: change the component to a NetworkComponentBase, and use a NET_DEFINE_SLOT/NET_CALL to send the parameters to the slaves so they can reapply the correct changes.

  • silent changed the title to [SOLVED] Slave::read_material(): can't find material
×
×
  • Create New...