Remote Sync

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

lastowl
Posts: 36
Joined: 12 Aug 2010, 20:56

Remote Sync

Postby lastowl » 16 Feb 2011, 00:27

What would be the best way of updating the remote object from the local object?, I'm mainly after sending a string from local to remote counter part(custom scripts) Or i would be happy getting things for the remote by accessing the local

Any ideas because my solution seems unnecessary it involves saving the userID to a db each session then getting the root name for the remote and stripping out the 'remote_' part then querying the db for the username matching the session id then querying what ever info i want from there.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 16 Feb 2011, 06:52

You could possibly try to use user variables - depends on what it is exactly you are trying to do.

/Thomas
lastowl
Posts: 36
Joined: 12 Aug 2010, 20:56

Postby lastowl » 16 Feb 2011, 12:50

well one example is im using the unity customised character demo and want the remote to be the same as the local what would be the best way of doing that?
thanks again for any help
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 16 Feb 2011, 15:32

I'd set that via user variables on a given user. So you can save off his configuration directly using that, and read it on everyone elses client.

Listen for user variables updates so you can change looks as they decide to put on new trousers or whatever :-)

/T
lastowl
Posts: 36
Joined: 12 Aug 2010, 20:56

Postby lastowl » 16 Feb 2011, 19:34

thanks ill look into that :)

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 9 guests