Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sending a microphone to a camera location?

Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
03-02-2008 15:16
Hi guys,

I have seen a couple of gadgets on slexchange that claim to be able to listen to chat wherever the camera can go, including long distances after disabling camera constraints.

I have a non-TOS violation use for such a gadget, but fancy having a go myself at making one. Anyone have any ideas as to the theory behind these gadgets?

TIA

Rock
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-02-2008 16:19
presumably the 'mic' object has permission to track the camera of the av using it... for best effect it'd need to take control to avoid no-script land, but it still might fail on no-object entry...
_____________________
|
| . "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...
| -
Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
03-03-2008 00:48
I still cannot find anything in the wiki that could accomplish what these gadgets claim to do. The wiki seems to be pretty clear that Chat can only be conducted within 20m of another avi, and there is nothing in the Camera section about hearing chat within 20m of the camera, rather than the avi whose camera it is.

Can anyone confirm whether these 'super hearing' gadgets work or not?

Rock
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-03-2008 01:27
What you want is actually a "Camera Follower". These are fun little toys when you're in the sandbox. Allows you to cam all around and have a little "avatar" for where your camera is (mine looks like a bunny). Then you load into it a simple "chat repeater". personally I like using channeled regionsay. That means you need a secondary item, like a hud perhaps.. that descrambles the llRegionSay.. but that allows you to make it use "llSay" so that your friends can hear what you're responding to. LIKEWISE you can then turn your hud into a microphone as well, which llRegionSays back to the camera.. creating a long distance intercom of sorts.

I'm not sure that this really violates the TOS anymore. The TOS and Community Standards have been updated quite a bit in this regard, to recognize the "new blog reality" of the world.

If you're obvious about it, I think it's perfectly reasonable to use chat listeners in some situatons.. if you're being a sneak then you're probably going to be in trouble.

My camera follower has hovertext that identifies me as the owner, and says "Chat Relay: ON"
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-03-2008 11:37
sorry for not being clear, Winter nailed it, the 'mic' must be an object with a listen that follows your camera position... I have a similar set up made with a faerie that can follow me or my camera as well as speak through chat commands, and has a listen that can optionally be turned on. great fun for driving newbies crazy on "how did you get such a tiny av and why are you talking in green"
_____________________
|
| . "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...
| -
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
03-03-2008 12:56
The function you are looking for is llRequestPermissions , and you must request PERMISSION_TRACK_CAMERA. It is done much like any other permission request.
_____________________
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
03-04-2008 01:55
OK guys, thanks for the pointers. The device is made now, and works fine.

Basically it is a rezzed object containing the script, that uses the llRequestPermissions to track the camera. The object, which is physical, then follows the camera position, and contains a chat relay, so that a regular chat conversation can be carried out with someone (or more than one person) on the other side of a sim, without the need to use IMs (I first must set my Draw Distance to Maximum, 512m, and Disable camera Constraints in the Client Menu).

Why do I need to do this?

I like to have a physical presence in my greeter area in our Central Hub for new prospective tenants when they arrive after teleporting from our ad in the Classifieds. Often, in the past, by the time I have tped there they have left, and a potential sale has been lost. The increase in rental sales has jumped significantly when a greeter has been on hand to explain the benefits and features of the sim and the rental properties.

However, I also need to 'be' elsewhere in the sim, working with my managers to refurnish, rebuild, or redecorate. I can now send my camera to one of my SkyHomes, chat as normal with the manager(s) while seeing what they are doing and giving my comments, and when my MystiTool informs me that someone has just arrived at the Central Hub I press the Escape key and my camera is instantly back with me there, and ready to greet the arrivee.

I hope this little explanation puts a real-world (if that is the right terminology in a virtual world!) need in a scripting context.

Rock
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-04-2008 02:29
that's a great use for it!

For me, I like to build in sandboxes, and routinely ended up having to "sit" because of some random griefer. Thing is, camming around to build, I'd routinely end up building some distance from my seated avatar. The Camera follower was a visual aid for friends who were wondering where I was building and WHAT I was complaining about on the back side of something 30m away.

Eventually, someone would happen by. The camera follower of course would interest them (this cute lil bunny zipping around building stuff).. and they'd try to talk to it. So the natural result was to add an intercom.

The second use for this (and the day I actually STARTED the intercom) was this day when all my friends were hanging out in a hottub.. and I wanted to build. A couple of friends went out to see what I was building and were of course, out of chat range. Rather than trying to hold an IM conversation with 3 people at once (conferences were still not widely known back then).. I decided to start a way to talk to them.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Crunch Underwood
Mr. Grown up, Go away sir
Join date: 25 Sep 2007
Posts: 624
03-04-2008 16:16
this is a fantastic idea for builders, thing is i'm a scripting idiot.

i have a follow cam script and a IM owner listener script so all good there but i'v scanned through the scripting library and searched SLX but can not seem to find a long range prim talker to make your cam follower/listener chat back, any chance one of you guys could point me in the right direction for what i'm after?

would this do the trick?
/15/fc/6357/1.html

cheers in advance

-Crunch
_____________________
----------------------------------------------

So your final Nimbus Score is 8.15, a quite remarkable achievement for a biped. Congratulations Crunch, you should be very proud. :-)
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
03-04-2008 17:46
From: Crunch Underwood
this is a fantastic idea for builders, thing is i'm a scripting idiot.

i have a follow cam script and a IM owner listener script so all good there but i'v scanned through the scripting library and searched SLX but can not seem to find a long range prim talker to make your cam follower/listener chat back, any chance one of you guys could point me in the right direction for what i'm after?

would this do the trick?
/15/fc/6357/1.html

cheers in advance

-Crunch

Haven't looked at the thread but you do the same type of thing as how you listen to what is being said:

Put this in a prim and attach it as a HUD:
CODE
integer handle;
integer listen_chan = 238;
integer say_chan = -231234;
integer on = 1;
key owner;

default {
state_entry() {
owner = llGetOwner();
llSetObjectName("chat repeater");
}
touch_start(integer total_number) {
if (on){
handle = llListen(listen_chan, "", owner, "");
llOwnerSay("listening");
}
else
llListenRemove(handle);
on = !on;
}
listen(integer channel, string name, key id, string msg) {
llRegionSay(say_chan, msg);
}
}


You could integrate this code into the camera follower script:

CODE
integer listen_chan = -231234;
string owner_name = "My Name";

default {
state_entry() {
llListen(listen_chan, "chat repeater", "", "");
llSetObjectName(owner_name);
}
listen(integer channel, string name, key id, string msg) {
llSay(0, msg);
}
}


When it is on, anything you say on channel 238, will be said by the second script, using your name, in green text. ANd before you ask, no you can't have it say the text in white text.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Crunch Underwood
Mr. Grown up, Go away sir
Join date: 25 Sep 2007
Posts: 624
03-04-2008 19:38
thank you jesse, your a champ. i'll have a play tonight when i have a chance and let you know how it went.

-Crunch
_____________________
----------------------------------------------

So your final Nimbus Score is 8.15, a quite remarkable achievement for a biped. Congratulations Crunch, you should be very proud. :-)
Crunch Underwood
Mr. Grown up, Go away sir
Join date: 25 Sep 2007
Posts: 624
03-05-2008 22:56
the three scripts worked together great, thanks a bunch

-Crunch
_____________________
----------------------------------------------

So your final Nimbus Score is 8.15, a quite remarkable achievement for a biped. Congratulations Crunch, you should be very proud. :-)