Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Network communication - when does it happen?

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Jun 2012 09:33
Can anyone tell me which of these is correct...

1. Set a network variable using SetNetworkLocalInteger()
2. Variable is sent to Clients
3. GetNetworkClientInteger() gets the value from a local source

or

1. Set a network variable using SetNetworkLocalInteger()
2. Variable is stored locally to the client that sets it
3. GetNetworkClientInteger() retrieves the value from the remote client

And as a secondary question, will the same theory apply to messages?

Thanks!

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 14th Jun 2012 02:35
The first is correct, and applies to messages. The actual time between changing a variable and it being sent out to other clients is determined by SetNetworkLatency which sets how often the network thread wakes up to check for any changed variables that need sending out.

Login to post a reply

Server time is: 2024-11-23 15:15:05
Your offset time is: 2024-11-23 15:15:05