Hi everyone!
Ok, so here is my question:
Is there a way for two objects to communicate via LSL script over great distances (meaning from region to region)?
Thank you very much!!!
These forums are CLOSED. Please visit the new forums HERE
LSL question |
|
|
Oliver Oddenfen
Registered User
Join date: 31 Jul 2009
Posts: 3
|
07-31-2009 05:16
Hi everyone!
Ok, so here is my question: Is there a way for two objects to communicate via LSL script over great distances (meaning from region to region)? Thank you very much!!! |
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
07-31-2009 05:37
email could work, but it relies on the prim's uuid, but the uuid will change each time it's rezzed. if you're wanting to communicate across connected sims, you could use a network of prims that use whisper and regionsay to spread the message. whisper, say, and shout cross sim bounderies, while region say does not
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
07-31-2009 06:04
email could work, but it relies on the prim's uuid, but the uuid will change each time it's rezzed. The way I handle that is to have the "home" object communicate its UUID to an external server by HTTP protocol when it is rezzed. Then, when any remote object that needs to communicate home is rezzed, the first thing it does it to check with the external server to learn what the home UUID is. The remote unit then sends its own UUID home by e-mail and establishes a link. _____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....
![]() Look for my work in XStreetSL at |
|
Drongle McMahon
Older than he looks
Join date: 22 Jun 2007
Posts: 494
|
07-31-2009 06:10
Is it not possible now to use http directly between objects? I am too ignorant to annswer that by reading the wiki alone.
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
07-31-2009 06:22
i was going to suggest http, but since oliver is only a few days old, i assumed that may be out if his grasp. and i couldn't find any documentation on the new http features, just the old httprequest
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Tali Rosca
Plywood Whisperer
Join date: 6 Feb 2007
Posts: 767
|
07-31-2009 06:29
Sending message *to* prims can be done with:
-XML-RPC, which is deprecated and unstable, relying on a single-point-on-entry to the whole system and thus being vulnerable and overloaded. -Email, which is the old "preferred" method, but has a fair bit of latency, especially if you send from out-world in to the prim. From prim to prim, it uses an internal protocol, and as such is rather efficient, but you still need to poll for new mails. -HTTP-in, recently introduced with the 1.27 server roll-out, is the efficient, distributed, fast-and-furious way to communicate with prims. The two first require that you know the key of the prim; the last uses a specific URL which you must request from the sim, and then somehow let the sender know about. Sendind message *from* prims can also be done in a couple of ways. -Sending emails, to be picked up by whatever you want, possibly another prim. -HTTP requests, sort of the companion to XML-RPC, going out from a prim where XML-RPC is initiated from outside and going in. With the new HTTP-in, this takes on lots of new possibilities for communicating between prims. So yes, you can use the HTTP functionality to talk directly between prims. The trick is that you need to know the address to use, and that one can change as you initiate your HTTP-in system, requesting the URL from the sim. That is why there's talk about using an external server to keep track of the address, sort of like how the DNS system translates domain names to actual IP numbers. See this thread: /54/33/323981/1.html for a longer talk about such a system. ETA: The HTTP functionality is documented here http://wiki.secondlife.com/wiki/Category:LSL_HTTP/Client and here http://wiki.secondlife.com/wiki/Category:LSL_HTTP/Server , with a "friendly" description of the HTTP-in functionality here http://wiki.secondlife.com/wiki/LSL_http_server. The idea, very briefly, is to llRequestURL to get an address, and react to the http_request event, using the llHTTPResponse to write the answer. |
|
Oliver Oddenfen
Registered User
Join date: 31 Jul 2009
Posts: 3
|
07-31-2009 06:32
Oh, don't worry for about my young age! I have been programming for the past 10 years and HTTP is not out of my grasp! Thanks for mentioning this solution by the way! I did not think of it that way but I am sure it will work!
Thank you!! |
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
07-31-2009 06:41
Oh, don't worry for about my young age! I have been programming for the past 10 years and HTTP is not out of my grasp! Thanks for mentioning this solution by the way! I did not think of it that way but I am sure it will work! Thank you!! well there ya go, that teaches me not to just assume things lol _____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
|
Tengu Yamabushi
Registered User
Join date: 25 Sep 2005
Posts: 191
|
07-31-2009 06:47
(repost from General Answers):
If you've some hardware outside of SL you can leverage, you might take a look at: http://wiki.secondlife.com/wiki/LSL_http_server/examples which is supposed to be an improvement over the existing email or XMLRPC methods: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llEmail http://www.lslwiki.net/lslwiki/wakka.php?wakka=xmlrpc Otherwise, you might drop by one of the NCI campus and check their schedule - they hold free classes on object-object communication. Good luck! Edit: Looks like a lot of us jumped on this one at about the same time . |