generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why don't RemoteEvents have cross-client communication >;o

Previous Thread :: Next Thread 
FierceNoob is not online. FierceNoob
Joined: 10 Jul 2012
Total Posts: 159
15 Jun 2014 07:57 PM
LocalScript FireServer should send it to the server, then the server send it to the other clients, why doesn't roblox do this?
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Jun 2014 08:00 PM
While cross-client would be nice, the best workaround there is would to do what you said, send something to the server to hand to another client.
Report Abuse
FierceNoob is not online. FierceNoob
Joined: 10 Jul 2012
Total Posts: 159
15 Jun 2014 08:03 PM
What i'm asking is why doesn't roblox have it do that automatically
Report Abuse
flump is not online. flump
Joined: 30 Jul 2008
Total Posts: 1039
15 Jun 2014 08:31 PM
Its probably because client aren't sending data between each other but instead to the server that then sends the data to every other client. in essence doing the workaround that you suggested so there wouldn't be any need to have another function for it
Report Abuse
FierceNoob is not online. FierceNoob
Joined: 10 Jul 2012
Total Posts: 159
15 Jun 2014 08:37 PM
@flump
No, clients aren't sending data between each other, but what you just stated is what i said they should be doing, sending the event fire to the server, and the server sending the event fire to the other clients.
It's not already happening, which is what you seem to be implying.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Jun 2014 10:15 PM
Roblox isn't p2p, why should they send data to each other?
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Jun 2014 10:22 PM
I don't know about the other two but I get what OP is saying (and shouldn't need to repeat it 3 times), I agree to a point, but none-the-less, we have a workaround. Unless there's some specific reason to not use that workaround right now, we can just go along and use it happily.

It'd be a nice feature for the devs to add in their free time, but otherwise we're fine without it.

Also, cnt, not p2p, player to server to player, he already explained that.
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
15 Jun 2014 10:26 PM
How hard is it to do this e.e?

Sender:

DataTransfer:FireServer(targetPlayer, ...)

Server:

DataTransfer.OnServerEvent:connect(function(sender, target, ...)
          DataTransfer:FireClient(target, ...)
end)

Clients:

DataTransfer.OnClientEvent:connect(function(...)
--stuff
end)
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Jun 2014 10:27 PM
Oh, RemoteEvents? No, I'd instead suggest using a new instance (or else they'd be even more confusing) but none-the-less I agree.
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
15 Jun 2014 10:28 PM
Habit -- I like everything to be compatible with FilteringEnabled.
Report Abuse
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
16 Jun 2014 12:50 AM
Aren't RemoteEvents like painfully slow though?

Only reason I'm not making stuff FilteringEnabled compatible -- with RemoteEvents I try to shoot somebody and the damage only comes in 2 or 3 seconds later.
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
16 Jun 2014 01:44 AM
@SN0X: I believe it used to be slow in the past, but not now. I send the server keypresses and update animations and all's well. Beware though, RemoteFunctions pause the thread they're called from until they return, so if you're using that for input, than no sht it's going to be slow.
Report Abuse
FierceNoob is not online. FierceNoob
Joined: 10 Jul 2012
Total Posts: 159
16 Jun 2014 11:48 AM
The reason i do not want to use that workaround is that the game i am making is ran completely by 1 localscript in the players backpack.

http://www.roblox.com/2D-Game-place?id=86317108
Report Abuse
Devoi is not online. Devoi
Joined: 09 Jun 2013
Total Posts: 5387
16 Jun 2014 02:18 PM
if you had a client exploit couldn't you directly do stuff to other clients
from their client
or am i just babbling about false information
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
16 Jun 2014 02:35 PM
"if you had a client exploit couldn't you directly do stuff to other clients
from their client"

No because to get to other clients you would have to go through the server, unless those other clients are running from your computer aswell
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
16 Jun 2014 02:54 PM
"I believe it used to be slow in the past, but not now. I send the server keypresses and update animations and all's well. Beware though, RemoteFunctions pause the thread they're called from until they return, so if you're using that for input, than no sht it's going to be slow."

Best ping I get with roblox servers is like 300 ms. So for me it's slow no matter what they do.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image