Leash message

31 views
Skip to first unread message

cint...@yahoo.com

unread,
Jan 27, 2012, 8:08:12 AM1/27/12
to OpenCollar
Hello - first off thanks to all the developers for their hard work.
Could you imagine SL without OC?

I'm want to customize an OC so that certain prims appear when the
collar is leashed, and then disappear when unleashed. I read through
the documentation and saw the section on messages for attachments and
commands, but I didn't see anything specific to the message that is
sent when a leash command is given. Is there a quick answer to that
(so I can avoid going thru the source code)?

ani

unread,
Jan 27, 2012, 12:50:10 PM1/27/12
to OpenCollar
the Leash particals can be changed by editing the Asset UUID key for
the texture. that key can be copied from your inventory with the
texture you wish to generate in place of the chain. Say if you wish a
snow chain instead or a rope you need to add the keys for those
textures. then drop those textures in to the collar as well, <string
g_sParticleTextureID; //we need the UUID for llLinkParticleSystem>
You can make a defaultsettings note card i belive and drop a set of
verables in like these. oc_colorsettings=Base~<1.0, 1.0,
1.0>~Label~<1.0, 1.0, 1.0>~Ring~<0.222220, 0.222220,
0.222220>~Trim~<0.222220, 0.222220, 0.222220>~FloatText~<0.541180,
0.984310, 0.090200>
oc_textures=Ring~df1538d6-b8a9-4b16-b0d0-601c387d252f~Trim~c48b3883-
d2e6-46c1-9a16-cd19d577c8fb~Base~f7d6eadd-21ab-4b18-b6f6-8fa855dd3dd6

but you might try adding oc_textures=Leash~ (Then the assest uuid
keys) That should tell the collar to use that texture as the default,
that would be the easyest way to do it, without hunting through all
the scripts to add one uuid key to the correct script My apologies no
not being able to tell you which script you need to edit, I am not a
morning person and just woke at the time of writing this.

cint...@yahoo.com

unread,
Jan 27, 2012, 1:26:59 PM1/27/12
to OpenCollar
Hi Ani -- thanks for your quick reply. However, I'm not trying to
change the particles of the leash (I already figured out how to do
that) -- I want to make certain prims in the collar itself become
visible (non-transparent) when the collar is leashed, and then I want
those prims to go transparent again when the collar is unleashed. So
I want to be able to have those prims in the collar listen for the
leash message to show/hide themselves when the collar is leashed.

Do you know what the message is when the collar is leashed -- the
channel and string (or other data) that is broadcast? I think I
recall reading that the channel is calculated based on the collar
wearer's UUID, but I can't find what the message is that is sent to
initiate the leash...
> > (so I can avoid going thru the source code)?- Hide quoted text -
>
> - Show quoted text -

Satomi Ahn

unread,
Jan 27, 2012, 2:50:39 PM1/27/12
to openc...@googlegroups.com
Hi.
You can try your luck with the LOCALSETTING_SAVE messages. Look at
line 366 of the leash script.

Authed collar commands (such as "leash", "unleash") are not reliable
since you never know if the recipient plugin actually accepted the
auth level as sufficient.

Hope this helps.

--
Satomi

cint...@yahoo.com

unread,
Jan 27, 2012, 4:14:21 PM1/27/12
to OpenCollar
Hi Satomi --

Thank you so much! You pointed me to exactly the right spot in the
leash script. I simply put in a link message in the Do_Leash and
Unleash functions that is picked up by the prims in the collar that I
want show/hide and viola -- worked like a charm!!

Now I've created a "collar" that looks like an implant on the back of
the sub's neck -- when the leash is activated, the main part of the
collar becomes visible which has an animated alpha texture making it
look like a ring of energy around the sub's neck. When the leash is
deactivated -- the energy ring disappears.

I also modified the particle parameters in the leash_particle script
to make the leash itself look like it is a cord of energy.

Thanks again!

ani

unread,
Jan 27, 2012, 5:30:48 PM1/27/12
to OpenCollar
Thank you Satomi i think we probably both put them in the right place.
By the way that is really cool with the affect of energy as well as a
leash of energy. Looks like the sugestion i made was not a total
waist. but then again cintik may have already done the leash partical
affect before i made the sugestion. But that would be an interesting
collar to see and own, as well as an impressive affect to see a
dominant leading the sub with. But i am a sorry for the slight
confusion on my part. I had thought you might want localsave settings
but was unsure so was why i went with the partical affect. It is
always nice to hear, some of the interesting things people do with OC
Scripts.
> > Satomi- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages