Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

inter-sim script communication

Insomniac Lunasea
Registered User
Join date: 5 Nov 2007
Posts: 8
01-10-2008 19:16
I'm a bit lost as to how I can get two huds to communicate with each other when they're in different regions, can I do it without having a web server?
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
01-10-2008 19:25
Sounds like llEmail will work, but I'm not sure. It can communicate with objects...

http://lslwiki.net/lslwiki/wakka.php?wakka=llEmail
_____________________
In-world, I am Okiphia Rayna. This account is an alt, and is the only account I currently have with payment info on-file due to some account cracking that took place. This is a security measure at present, and I may return to the forums as Okiphia Rayna at a later date.

If you need to reach me, IM Okiphia Rayna, not Okiphia Anatine
Insomniac Lunasea
Registered User
Join date: 5 Nov 2007
Posts: 8
01-10-2008 19:31
From: Okiphia Anatine
Sounds like llEmail will work, but I'm not sure. It can communicate with objects...

http://lslwiki.net/lslwiki/wakka.php?wakka=llEmail


ohh of course.. thanks ^^
Gordon Wendt
404 - User not found
Join date: 10 May 2006
Posts: 1,024
01-10-2008 19:48
From: Okiphia Anatine
Sounds like llEmail will work, but I'm not sure. It can communicate with objects...

http://lslwiki.net/lslwiki/wakka.php?wakka=llEmail


It can but using llemail causes a script sleep and email especially through the lsl gateway can take quite some time at best and not arrive at all at worst so it isn't entirely reliable, that being said neither are any of the alternatives (communicating with a webserver as an intermediary for example)
_____________________
Twitter: http://www.twitter.com/GWendt
Plurk: http://www.plurk.com/GordonWendt

GW Designs: XStreetSL

Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-11-2008 19:12
if you're willing to use a server as a gateway (rather than directly emailing the hud object, which is little faster) you might want to go with http using post and get... on rez the huds can post their key and owners name.... then you could use get to grab the key and name you want from another hud and use direct e-mail... or even post messages... beware e-mails from a specific object are throttled much like http request are throttled. you could post mesages to the server but that's likely to be laggy since you'll have to poll to pick up messages.

you can lose the script sleep by placing the e-mail calls in their own script(s) and then addressing them from the main script
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-11-2008 22:15
From: Void Singer
you could post mesages to the server but that's likely to be laggy since you'll have to poll to pick up messages.

You should be able to use a combination of HTTP and XML-RPC to avoid excessive polling. The RPC would essentially just be a notification to the script that there are messages that can be retrieved by HTTP. An occasional poll might be good in case the RPC stuffs up somehow, in which case it should probably be logged and flagged, or the RPC re-initialized. And since the RPC is used only for simple notification and not data, its unreliability in SL shouldn't really matter.