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 … 3 4 5 6 7 … 18 Next »
net.send() issue ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
net.send() issue ?
15-04-2020, 07:49 PM, (This post was last modified: 15-04-2020, 07:49 PM by The17thDoctor. Edited 2 times in total.)
#1
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
net.send() issue ?
From what the starfall doc says, it is possible to send net messages to another starfall instance. However when trying on my own chips, it failed and returned me access denied.

Here are the codes for both sender and receiver :

sf = find.byClass("starfall_processor",function(ENT) return ENT:isWeldedTo() == ents.self():isWeldedTo() end)

if IsValid(sf[1]) then
print(net.start(sf[1]))
end

hook("net","net",function(a,b)
print(a,b)
end)

I used 2 starfalls placed on the same prop just to find them easily.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
15-04-2020, 08:03 PM,
#2
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: net.send() issue ?
I was trying a similar approach between a Screen (sending a message from the server to the server) and a Processor. The code I used is almost identical and I can confirm that, if this is an actual issue instead of a Documentation error, this is happening all the time.

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
15-04-2020, 08:26 PM,
#3
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: net.send() issue ?
The net library is for sending network messages from the server to the client, or the client to the server. You can't send a network message from server to server or client to client as there is no network connection involved.

I should also note that only the server can choose another entity to send to, the client can only send to its own server instance.
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.