Hi,
if possible, i want to use the net with IMaterial, but its impossible :
[SF - ERROR] lua/includes/extensions/net.lua:157: net.WriteType: Couldn't write IMaterial (type 21)
So can you add this type to the net ? I really need this
Why are you trying to net an IMaterial? You can try net.writeType() and net.readType()
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Already tried different net, but it is more easier to add a table with : a id for check the net receive and my material inside
And i have another error when i tried your method only with the material in net.writeType()
[SF - ERROR] addons/starfall/lua/starfall/libraries/libs_sh/net.lua:176: attempt to call local 'Size' (a nil value)
(04-05-2018, 11:40 PM)Avorius Wrote: I believe that means that the local 'Size' doesn't exist, or the thing it is trying to be doesn't exist.
Looks more like an error in the library itself
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
It makes no sense to network a material. Server-side Starfall doesn't have the IMaterial type, and even if it did, you'd get the same outcome from networking the path to the material and any parameters provided (if it's a PNG).
If you're trying to network a generated material, that's also not going to work as the material doesn't hold the underlying texture data.