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 … 12 13 14 15 16 … 18 Next »
Starfall send from client to server results in "access denied" !
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Starfall send from client to server results in "access denied" !
21-07-2015, 09:09 AM,
#1
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
Starfall send from client to server results in "access denied" !
Hello all,

I'm posting this in the hope Person can tell me why sending from a client screen to a server processor using net messages results in "access denied" client side but working correctly server side ? Why blocking users seding from client screen to server processor but not blocking sending from server processor to client screen ?

And second question : why adding a entity parameter to net.start client side if the function always returns "access denied" when setting something to this parameter ?

Thanks by advance,
Yuri.
Find
Reply
21-07-2015, 12:28 PM,
#2
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Starfall send from client to server results in "access denied" !
You can send data between servers using channels you can't simply mess with anyone's code by doing so. But in case you send net messages from server to client the client receiving can't do anything to stop you for hacking his screens if he is using net messages.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
21-07-2015, 12:39 PM,
#3
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Starfall send from client to server results in "access denied" !
Well the two chips are from me. I'm the owner of the screen and the processor, I'm not trying to hack the server.

And transmition from server processor to client screen works very well. It's just that transmission from client screen to server processor throws "access denied" on the second returned value of net.start.
Find
Reply
21-07-2015, 05:49 PM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall send from client to server results in "access denied" !
Processors have no client instance, so there's no way to verify ownership on the client. You'll have to send to the screen's server instance (add --@shared to make it have one), then to the processor through the channels library on the server.
Find
Reply
21-07-2015, 07:31 PM,
#5
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Starfall send from client to server results in "access denied" !
(21-07-2015, 05:49 PM)Person8880 Wrote: Processors have no client instance, so there's no way to verify ownership on the client. You'll have to send to the screen's server instance (add --@shared to make it have one), then to the processor through the channels library on the server.

But channels are unique you can't have multiple channels ! The problem is that I ALREADY have a channel system to make AI2Lib working so I can dialog with all the other screens. If I use channel lib a second time, that's the end of multiple screens connected together !
Find
Reply
21-07-2015, 07:42 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall send from client to server results in "access denied" !
It's not that hard to add an extra first parameter to your channel messages that indicates what type of message it is and split your behaviour accordingly.
Find
Reply
21-07-2015, 07:45 PM,
#7
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: Starfall send from client to server results in "access denied" !
You will have to use normale channels. Dont use private channels. You can set unique names for the channels then. And to prevent someone "hacking" the channel you can check if the sender chip is yours.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.