Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Cross-sim chat commands

Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-25-2008 08:27
Is it possible to use llShout() and listen() to send commands between two objects which are close but on adjacent sims? If it is not, any trick for cross-sim communications?
Villain Baroque
Registered User
Join date: 3 Nov 2007
Posts: 16
You can send emails between objects
04-25-2008 09:12
I don't know, if llShout() works across sim borders, but email does.

For more information follow this link: http://lslwiki.net/lslwiki/wakka.php?wakka=llEmail
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-25-2008 13:02
From: Villain Baroque
I don't know, if llShout() works across sim borders, but email does.

For more information follow this link: http://lslwiki.net/lslwiki/wakka.php?wakka=llEmail


Do you mean I can use EMail to make a prim communicate with another prim????????

Oh.... but you pay a 20 sec sleep..... not what I need. :(
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
04-25-2008 13:08
have a box listen on -(channel) for a command and shout it like this

CODE


relay
-------
integer channel = -(channel);
integer channel = -(channel);

default
{
state_entry()
{
llListen(channel,"","","");
}
listen(stuff forget what)
{
llShout(channel send,message);
}
}

control
--------

default
{
touch_start()
{
llRegionSay(channel," hi");
}
}


my mind is alittle messed up right now im half asleep but it should be something like this

control regionsays hi
box listens a word on that channel
box shouts hi to next sim
reverse listen / shout again
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
04-25-2008 13:16
From: Eadoin Welles
Do you mean I can use EMail to make a prim communicate with another prim????????

Oh.... but you pay a 20 sec sleep..... not what I need. :(



if you make the script that emails a seperate script, you can avoid the penalty in your main script. It's common for high volume communication devices to employ many slave Email scripts for this reason.
_____________________
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-26-2008 04:11
From: Mrc Homewood

control regionsays hi
box listens a word on that channel
box shouts hi to next sim
reverse listen / shout again


Well, I *have* a mechanism like that, but the problem is that when box shout a message to another box which is very close BUT on another sim, the message does not arrive. It looks like Shout is NOT be able to cross the border.
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-26-2008 04:14
From: Darien Caldwell
if you make the script that emails a seperate script, you can avoid the penalty in your main script. It's common for high volume communication devices to employ many slave Email scripts for this reason.


OK; I avoid the penalty on the main script, but how fast will be the communication? I need to control an object on a sim from another object on another sim. Commands are shoert and easy to parse. I need reactiveness... :)
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
04-26-2008 04:25
Hmm, I once wondered about this as well and I tried using a relay script, similiar to the one Mrc posted, in a long (10 meter) prim that crossed the border between 2 regions and I seem to recall it actually worked.
Laurence Corleone
Registered User
Join date: 12 Oct 2006
Posts: 126
04-26-2008 05:12
This was discussed just a few weeks ago and with the magic of the search button using the keyword "regionsay" (imagine that) I found it in the second post on the list.

/54/8d/250080/1.html
_____________________
There are no stupid questions, just stupid people.
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
04-26-2008 06:09
From: Eadoin Welles
Well, I *have* a mechanism like that, but the problem is that when box shout a message to another box which is very close BUT on another sim, the message does not arrive. It looks like Shout is NOT be able to cross the border.

It definitely should do. If it keeps on occurring, that's a bug, and a serious one - if it doesn't, it may just be a temporary chat lag blip sort of thing. You might want to look on the JIRA (I would but I'm afraid I don't have time right now.)
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-26-2008 09:58
From: Eadoin Welles
Well, I *have* a mechanism like that, but the problem is that when box shout a message to another box which is very close BUT on another sim, the message does not arrive. It looks like Shout is NOT be able to cross the border.


Works for me...

I have quite a few chat relays installed and working at the Isle of Wyrms. I do have issues with lag, but that is not unexpected, no matter what method I use.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-26-2008 10:51
Worst case, rez a messenger object that crosses the border....
Eadoin Welles
Registered User
Join date: 5 Jan 2007
Posts: 149
04-26-2008 15:53
From: Ordinal Malaprop
It definitely should do. If it keeps on occurring, that's a bug, and a serious one - if it doesn't, it may just be a temporary chat lag blip sort of thing. You might want to look on the JIRA (I would but I'm afraid I don't have time right now.)


Well. it seems it was a lag or contingent problem. I was able to create a mechanism to control the objects in four sims just placing the broadcaster at the crossing! Great. Thank you.
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
04-26-2008 22:48
From: Eadoin Welles
OK; I avoid the penalty on the main script, but how fast will be the communication? I need to control an object on a sim from another object on another sim. Commands are shoert and easy to parse. I need reactiveness... :)


From my experience, an object to object email can span the grid from anywhere to 1/2 second, to several days. :P it really depends on how well the Email system is working at the time. I would say average is 1-3 seconds.
_____________________
Woopsy Dazy
Registered User
Join date: 12 Nov 2006
Posts: 173
04-27-2008 02:03
Try to uncheck the "Restirct spatialized sound" in land settings. Maybe that will help?