Team Spartan Cookies & Milk Forums
Starfall client addon crash again - 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: Starfall client addon crash again (/thread-2534.html)



Starfall client addon crash again - Yuri6037 - 03-12-2017

Hi,

I just found a new starfall addon crash client side this time no "Something is creating errors", but it's not better every screens, huds and emitters I use (that uses RTs) all fails with that error now : "[SF - ERROR] Player OK. received error: addons/starfall/lua/starfall/libraries/libs_cl/render.lua:371: bad argument #2 to 'SetTexture' (ITexture expected, got no value)"
The player that receives error is random, for the moment it did not trigger with my player name...

Thanks,
Yuri


RE: Starfall client addon crash again - 4N0NYM - 03-12-2017

render.setTexture() works fine for me.
Maybe you just did a mistake in your Code, check if all render.setTextures() has an Value.


RE: Starfall client addon crash again - Person8880 - 04-12-2017

This isn't a bug so much as a bad error. The texture you're passing to render.getTextureID doesn't have an associated material so it's not valid. I've changed it to return nil in this case to match the behaviour when there is no such texture at all.