I'm pretty clueless in case you hadn't noticed.

Any help would be much appreciated.
Eli
These forums are CLOSED. Please visit the new forums HERE
Object to say text in local chat 3500M away. |
|
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 12:39
I have a drive in movie screen on the ground and my @home TV is at about 3500 meters in a sky box. I would like to be able to type in a You Tube URL on the ground, probably on channel 3 and have an object in the sky box repeat the URL in local chat so that the TV hears it and changes the land media URL. I'm guessing the object on the ground would have to shout to an object 96 meters up, repeated every 96 meters until I get to 3500 meters? Or is there another way around the 96 meter shout distance?
I'm pretty clueless in case you hadn't noticed. ![]() Any help would be much appreciated. Eli |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 12:47
I don't think there's a distance limit on llRegionSay. Try it and see.
_____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 12:51
I don't want to spam the whole sim. How do I get the object on the ground to talk to the object up in the skybox on a private channel and then have that object repeat it in local?
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 12:54
string msg = "Hey up there!";
llRegionSay(-4567, msg); llSay(0, "I just yelled at the guy in the skybox on a private channel. I said \"+ msg+".\" " ![]() or, if the point is to have the skybox do the echoing, put a second llRegionSay in its script and then repeat that message in local chat when it's heard on the ground. _____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:06
So llRegionSay(-4567, msg) will make the object on the ground Region Say on channel 3 anything it hears on channel 3?
I don't need to hear the message back on the ground because if it works right a video will start playing. The object in the skybox just needs to chat the You Tube URL in local chat because the TV up there is already set up to listen for URLs in local. |
Pete Olihenge
Registered User
![]() Join date: 9 Nov 2009
Posts: 315
|
01-26-2010 13:12
llRegionSay(-4567, msg) will use channel -4567. If you want to use channel 3, use llRegionSay (3, msg). Have the repeater close to the TV say on channel 0 (which is what the TV is listening to, I presume) whatever it hears on whatever channel you're using for the llRegion Say.
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:14
OK... Let me be sure I understand what's need here. The video unit in the skybox listens on channel 3 and you need to turn it on from the ground? So here it is....
At the ground, use this. CODE
and in the skybox, put another object with this script in it. CODE
The second script will hear the message on channel -4567 and translate it into a local message on channel 3. _____________________
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 |
Pete Olihenge
Registered User
![]() Join date: 9 Nov 2009
Posts: 315
|
01-26-2010 13:16
And if the TV is listening to a non-zero channel, there's no reason why you shouldn't use that channel directly in the llRegionSay call.
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:17
Pete's got it. The only reason I used a negative channel is because it's an object to object communication. A message on a negative channel won't be heard by any avatar. A llRegionSay on channel 3 will work fine.
_____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:19
I'm really sorry... I'm so in over my head.
So... llRegionSay (3, msg) will make the object on the ground listen on channel 3 as well? Yes the TV definitely listens on 0 because all you have to do to play a video is paste it into local chat when you are up in the sky box. |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:20
And if you need a local repeater, just write a tiny script that says
CODE
_____________________
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 |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:22
I'm really sorry... I'm so in over my head. So... llRegionSay (3, msg) will make the object on the ground listen on channel 3 as well? The object on the ground is the one sending the message on channel 3 to the repeater in the skybox. Do you want it to receive a message of some kind too? _____________________
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 |
Pete Olihenge
Registered User
![]() Join date: 9 Nov 2009
Posts: 315
|
01-26-2010 13:25
Setting an object to listen to a particular channel is a different process to having one say something on it.
Set the object on the ground to listen on whatever channel you want to say your TV control commands on and have it then repeat them using llRegionSay on a non-zero channel. Set the object near the TV to listen to the llRegionSay channel and have it then say, whisper or shout that on channel 0, so the TV can hear it. Hopefully the TV is scripted to listen to objects on channel 0, and not to just it's owner. |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:27
The object on the ground is the one sending the message on channel 3 to the repeater in the skybox. Do you want it to receive a message of some kind too? Well yes I think so. My avatar will be on the ground. I want to type something like "/3 www.youtube.blahblah" and have the object on the ground hear that and relay it to the object up in the skybox which then says "www.youtube.blahblah" in local chat near the TV up in the skybox. |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:31
Oh, OK... If you really want to type in channel 3 on the ground, do this .......
Object on ground: CODE
Object in skybox: CODE
_____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:31
I figure I should say the URL on channel 3 so that everything people say in chat is not being region say-ed by the object.
|
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:36
Object on ground: CODE
Object in skybox: CODE
I think I'm not being clear enough. I want anyone to be able to type any You Tube URL into a private channel at any time and have this thing work. It looks to me like the way you have it I would have to manually enter the URL into the script? I want to be able to sit around with friends down on the ground and watch different videos... one after another. |
Pete Olihenge
Registered User
![]() Join date: 9 Nov 2009
Posts: 315
|
01-26-2010 13:36
CODE
ETA: replace "My box on the ground" with the name of your object on the ground; this'll slightly reduce the load on the script and the server by ignoring anything else that might be said by any other object using channel -987. |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:39
DANG! You guys type too fast! LOL I did exactly what you want by fixing my earlier post. Scroll back and see.
![]() ETA: OK, and take out the llGetOwner part. You never said you wanted OTHER people to control this thing too. _____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:41
Thank you both SO much. I'll fool around with it when i get home tonight.
|
Void Singer
Int vSelf = Sing(void);
![]() Join date: 24 Sep 2005
Posts: 6,973
|
01-26-2010 13:43
CODE
CODE
all that assumes the your media changer is scripted to listen to objects owned by you, or anyone, instead of just you. _____________________
|
| . "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... | - |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:45
all that assumes the your media changer is scripted to listen to objects owned by you, or anyone, instead of just you. Anyone can type a URL in local and the TV will respond. Does that tell you? |
Void Singer
Int vSelf = Sing(void);
![]() Join date: 24 Sep 2005
Posts: 6,973
|
01-26-2010 13:47
Anyone can type a URL in local and the TV will respond. Does that tell you? should work fine then unless they bothered to specifically test for and ignore objects... which is unlikely (but possible) _____________________
|
| . "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... | - |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-26-2010 13:47
/me is getting dizzy.
![]() _____________________
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 |
Eli Schlegal
Registered User
![]() Join date: 20 Nov 2007
Posts: 2,387
|
01-26-2010 13:49
Thanks again for all your help.
|