Team Spartan Cookies & Milk Forums
setMaterial - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html)
+--- Thread: setMaterial (/thread-1666.html)



setMaterial - 4N0NYM - 22-03-2016

why does setMaterial dont work again ? (i just test it at e2 not sure if it dont work on Starfall too.)
when it is just a bug fix it please.


RE: setMaterial - Kosmos - 22-03-2016

It does work, and it works in E2 just like it does in SF.
The thing which was changed is which materials you can apply. You are now restricted to 354 materials (the ones available in the material tool). This is because some materials can apparently crash the game and there is no reliable way to predict which ones will (that's why it's a whitelist and not a blacklist).
Although I think the "attempted to set an invalid material" message is a bit misleading, maybe something like "you are not allowed to set this material" would be more descriptive of the actual problem (because the materials are, in fact, still valid and continue to exist on props which have them by default).


RE: setMaterial - Mosaty - 22-03-2016

Could you allow this material "models/star_trek/ships/borg/borgcube_selfillum" , i used this material before and the server didn't crash
2month ago i build a borg sphere and without this material it isn't a borg sphere , please Whitelist this material :'(