|
Diego Pannotia
Laronzo Fitzgerald
Join date: 14 Nov 2006
Posts: 37
|
02-13-2007 05:59
Is it possible to use the same XML-RPC RemoteDataChannel for more than one object?
Lets say I have an object, it listens on XML-RPC for boolean commands "0" or "1" and acts accordingly
Now lets say next to this I have a smaller version of the object which I want to emulate the behaviour of the 1st object. They are not linked together. Can I listen on the same channel for incoming commands? Or do I have to send out variables within SL from the first object, when IT receives commands, for the second to pick up?
In either case I'm not sure what code to implement, so any help would be much much appreciated! Many thanks,
|
|
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
|
02-13-2007 09:06
From: Diego Pannotia Is it possible to use the same XML-RPC RemoteDataChannel for more than one object?
Lets say I have an object, it listens on XML-RPC for boolean commands "0" or "1" and acts accordingly
Now lets say next to this I have a smaller version of the object which I want to emulate the behaviour of the 1st object. They are not linked together. Can I listen on the same channel for incoming commands? Or do I have to send out variables within SL from the first object, when IT receives commands, for the second to pick up?
In either case I'm not sure what code to implement, so any help would be much much appreciated! Many thanks, You cannot use the same Remote Data Channel for two different objects. The channel key is assigned automatically - you cannot set it. Note also, there is a nasty bug floating out there where once in a while after a server reboots - objects can mysteriously get a new UUID from the asset server. When this happens, you also lose your old, previously working RPC channel key. You'll need to send out your variables within SL from the first object, and send them to the second object. Or, create a 'server object' where its only purpose is to send those commands to all your other objects. If the two objects are near each other, you can send this data via a listen, preferably encrypted on a negative channel. If they're far away (more than 100m from each other), you'll probably have to use llEmail() for object to object communication. Btw: Due to the occasional UUID-changing bug... if you depend on RPC for long-term communications, I would re-validate your channel once a day back up to your server over HTTP, just so you can recover if it spontaneously changes on you. Good luck! 
_____________________
------------------ The ShelterThe Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
|
|
Diego Pannotia
Laronzo Fitzgerald
Join date: 14 Nov 2006
Posts: 37
|
02-13-2007 10:02
Sounds good thanks, I'll try llshout which has the 100m range with lllisten but won't everyone see llshout in their chat? I don't want that reaaally =\
---
EDIT:
Ah I see, channels other than 0... +) okay my bad. Thanks for your help
|