![]() |
|
Starfall send from client to server results in "access denied" ! - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Starfall send from client to server results in "access denied" ! (/thread-1126.html) |
Starfall send from client to server results in "access denied" ! - Yuri6037 - 21-07-2015 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. RE: Starfall send from client to server results in "access denied" ! - LocInt - 21-07-2015 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. RE: Starfall send from client to server results in "access denied" ! - Yuri6037 - 21-07-2015 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. RE: Starfall send from client to server results in "access denied" ! - Person8880 - 21-07-2015 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. RE: Starfall send from client to server results in "access denied" ! - Yuri6037 - 21-07-2015 (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 ! RE: Starfall send from client to server results in "access denied" ! - Person8880 - 21-07-2015 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. RE: Starfall send from client to server results in "access denied" ! - SuperPlayer - 21-07-2015 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. |