Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Chat relay across sim border

Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-27-2010 03:26
A customer of mine wants a HUD to work across a sim border and from tests it is apparant that an object cannot llSay over a sim border (although chat commands from an avatar do work fine).

I have started working on a "chat relay" consisting of linked prims either side of a sim boundary, to listen for chat on the right channel one side then use llmessagelinked to get the message chatted out the other side. I'm getting there but was just wondering if anyone had any experience of doing this to save myself some work?

Problems encountered so far are the usual cross-talking problems and the fact that even if a script is in a non-root prim the "chat" appears to "come out of" the root prim (if you see what I mean) which forces it to be uni-directional.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-27-2010 04:15
Are you sure about that?

I was always under the impression objects can hear chat from other objects across sim borders and so, i see from a quick search here, were a lot of other people (eg /54/8d/250080/1.html. I'm pretty certain I've made objects chat across sim borders in the past. I guess they may have changed it, of course, but I'm not in a position to check in-world at the moment.

The alternative, it seems, would be to do as Ordinal Malaprop and several others suggest there, and send message by http-out and -in via an external server, but I would be inclined to double-check my filters before concluding that's the only solution. Stupid question, but are you sure the object that can hear chat commands from an avatar but not a relay prim isn't listening to llGetOwner()?
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-27-2010 07:35
D'oh!

That was a wasted morning.... my test object llListen was listening for llGetOwner()...... I was looking for the problem in entirely the wrong place.

Just ignore this thread and let it die..... !
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
01-27-2010 11:08
Linked prims with the root on one side and a linked prim on the "other" side aren't in different sims. The entire object (and all scripts therein) is still in the same sim as the root prim.

Just FYI. :)
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-27-2010 11:47
From: Ee Maculate
Just ignore this thread and let it die..... !

dangerous words...
_____________________
|
| . "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...
| -
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-29-2010 01:33
From: Void Singer
dangerous words...


:D

If anyone's interested the source of my grief turned out to be not being able to llGetOwnerKey across sim borders... but have fixed that with some creative scripting!
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-29-2010 09:40
From: Ee Maculate
:D

If anyone's interested the source of my grief turned out to be not being able to llGetOwnerKey across sim borders... but have fixed that with some creative scripting!
Thanks; I'll bear that in mind next time I make stuff talk across sims. I guess my work-round would be to use a channel calculated from the owner's uuid, which isn't foolproof but in practice would be pretty unlikely to present a problem.
Nyoko Salome
kittytailmeowmeow
Join date: 18 Jul 2005
Posts: 1,378
01-29-2010 09:47
From: Talarus Luan
Linked prims with the root on one side and a linked prim on the "other" side aren't in different sims. The entire object (and all scripts therein) is still in the same sim as the root prim.

Just FYI. :)


:0 yah, wondered if someone noticed that part. an object (one or multiple linked prims) will not hear itself chat... unlink them, maybe they'd work then. :)
_____________________

Nyoko's Bodyoils @ Nyoko's Wears
http://slurl.com/secondlife/Centaur/126/251/734/
http://home.comcast.net/~nyoko.salome2/nyokosWears/index.html

"i don't spend nearly enough time on the holodeck. i should go there more often and relax." - deanna troi
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-29-2010 14:52
From: Nyoko Salome
:0 yah, wondered if someone noticed that part. an object (one or multiple linked prims) will not hear itself chat... unlink them, maybe they'd work then. :)
No, prims can't hear themselves chat but they can certainly hear other prims in the same object.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-29-2010 18:55
From: Innula Zenovka
No, prims can't hear themselves chat but they can certainly hear other prims in the same object.

well they might be able to... say commands speak from the prim, but listens work from the object root...

which can give you the curious effect of one child prim not hearing it's whispering neighbor 1m away if both are more than 10m from the root.
_____________________
|
| . "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...
| -
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-29-2010 19:06
From: Void Singer
well they might be able to... say commands speak from the prim, but listens work from the object root...

which can give you the curious effect of one child prim not hearing it's whispering neighbor 1m away if both are more than 10m from the root.
That's what I meant, Void. If you've only got one prim, it can't hear itself, but if you've got two linked prims, one speaking and the other listening, the listening prim can hear the speaking one.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-29-2010 19:18
understood, I was just pointing out a special case where two linked prims might not hear each other. there's also the special case where they would when you wouldn't expect them to (2 children more than 10m apart, but within 10m of the root, using a whisper)
_____________________
|
| . "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...
| -
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
01-29-2010 19:20
From: Void Singer
understood, I was just pointing out a special case where two linked prims might not hear each other. there's also the special case where they would when you wouldn't expect them to (2 children more than 10m apart, but within 10m of the root, using a whisper)
I see what you mean. Sorry..I misundertood.