Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 5 6 7 8 9 … 18 Next »
Request about net
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Request about net
04-05-2018, 04:30 PM,
#1
Belloxy Offline
TSCM Member
***
Posts: 12
Threads: 5
Joined: Dec 2014
Request about net
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
Find
Reply
04-05-2018, 10:28 PM,
#2
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Request about net
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.
Find
Reply
04-05-2018, 10:42 PM,
#3
Belloxy Offline
TSCM Member
***
Posts: 12
Threads: 5
Joined: Dec 2014
RE: Request about net
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)
Find
Reply
04-05-2018, 11:40 PM,
#4
Avorius Offline
Valued donator and member
****
Posts: 128
Threads: 47
Joined: Dec 2015
RE: Request about net
I believe that means that the local 'Size' doesn't exist, or the thing it is trying to be doesn't exist.


Find
Reply
05-05-2018, 12:05 AM,
#5
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Request about net
(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.
Find
Reply
05-05-2018, 10:29 AM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Request about net
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.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.