Fred --

Thanks for the fix! I've been going nuts trying to figure out why my
scripts would stop working and I had to keep resetting them after restarts.

Shaun --

I believe Pathfinder's scripts were based on my initial walk-through gates.
I've since continued to work on mine. Today, they are phantom gates that
you walk through -- but that still trigger the collision effects.

That required the llVolumeDetect(TRUE); thing.



-- Maria

____________________________________________________
Maria Korolov •  508-443-1130 • ma...@hypergridbusiness.com
<http://www.china-speakers-bureau.com/>Editor & Publisher, *Hypergrid
Business* <http://www.hypergridbusiness.com/>
*The magazine for enterprise users of virtual worlds. *

On Sat, Oct 18, 2014 at 8:00 AM, <opensim-users-requ...@opensimulator.org>
wrote:

> Send Opensim-users mailing list submissions to
>         opensim-users@opensimulator.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
> or, via email, send a message with subject or body 'help' to
>         opensim-users-requ...@opensimulator.org
>
> You can reach the person managing the list at
>         opensim-users-ow...@opensimulator.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Opensim-users digest..."
>
>
> Today's Topics:
>
>    1. Re: llVolumeDetect (Fred Beckhusen)
>    2. Re: llVolumeDetect (Dahlia Trimble)
>    3. Re: llVolumeDetect (Shaun T. Erickson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 17 Oct 2014 12:07:56 -0500
> From: Fred Beckhusen <fre...@mitsi.com>
> To: opensim-users@opensimulator.org
> Subject: Re: [Opensim-users] llVolumeDetect
> Message-ID: <54414cec.2000...@mitsi.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I use llVolumeDetect()  to detect avatar collisions to trigger game
> effects and teleports when an avatar falls into water or fire, or walks
> into a rabbit hole.
>
> The widely used hypergrid "Blamgate" teleporter I based my work on would
> sometimes not work after a reset.   The llVolumeDetect prim property did
> not get preserved after a restart.
>
> I eventually figured out that a changed()  event with the
> Opensim-specific CHANGED_REGION_RESTART ( not CHANGED_REGION_START) flag
> is needed to turn llVolumeDetect(FALSE) and llVolumeDetect (TRUE) again.
> This will turn the collision off and on again. I have found this, and
> only this, works reliably.
>
> // Works in
>
> default
> {
>      state_entry()     {
>          llVolumeDetect(TRUE);
>      }
>      collision_start(integer total_number)    {
>          llSay(0, "Bumped: "+(string)total_number);
>      }
>      changed(integer what)    {
>          if (what & (CHANGED_REGION_RESTART)    // not
> CHANGED_REGION_START, that is for Second Life, REstart is for Opensim
>          {
>              llVolumeDetect(FALSE);    // toggle bug fix in Opensim
>              llVolumeDetect(TRUE);
>          }
>      }
> }
>
> --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----
> Ferd Frederix/Fred K. Beckhusen
> http://www.outworldz.com
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 17 Oct 2014 13:23:19 -0700
> From: Dahlia Trimble <dahliatrim...@gmail.com>
> To: opensim-users@opensimulator.org
> Subject: Re: [Opensim-users] llVolumeDetect
> Message-ID:
>         <
> caaqtd4w2jsxtqksslk2trhmu9qwk9fo1wwnq8oscumd72st...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Assuming you're correct about it losing the property after a restart, I'd
> think this test would work in either SL or OpenSimulator:
>
> changed(integer what)
> {
>         if (what & (CHANGED_REGION_START | CHANGED_REGION_RESTART))
>          {
>                  llVolumeDetect(FALSE);    // toggle bug fix in Opensim
>                  llVolumeDetect(TRUE);
>          }
> }
>
> On Fri, Oct 17, 2014 at 10:07 AM, Fred Beckhusen <fre...@mitsi.com> wrote:
>
> > I use llVolumeDetect()  to detect avatar collisions to trigger game
> > effects and teleports when an avatar falls into water or fire, or walks
> > into a rabbit hole.
> >
> > The widely used hypergrid "Blamgate" teleporter I based my work on would
> > sometimes not work after a reset.   The llVolumeDetect prim property did
> > not get preserved after a restart.
> >
> > I eventually figured out that a changed()  event with the
> Opensim-specific
> > CHANGED_REGION_RESTART ( not CHANGED_REGION_START) flag is needed to turn
> > llVolumeDetect(FALSE) and llVolumeDetect (TRUE) again. This will turn the
> > collision off and on again. I have found this, and only this, works
> > reliably.
> >
> > // Works in
> >
> > default
> > {
> >     state_entry()     {
> >         llVolumeDetect(TRUE);
> >     }
> >     collision_start(integer total_number)    {
> >         llSay(0, "Bumped: "+(string)total_number);
> >     }
> >     changed(integer what)    {
> >         if (what & (CHANGED_REGION_RESTART)    // not
> > CHANGED_REGION_START, that is for Second Life, REstart is for Opensim
> >         {
> >             llVolumeDetect(FALSE);    // toggle bug fix in Opensim
> >             llVolumeDetect(TRUE);
> >         }
> >     }
> > }
> >
> > --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----
> > Ferd Frederix/Fred K. Beckhusen
> > http://www.outworldz.com
> >
> > _______________________________________________
> > Opensim-users mailing list
> > Opensim-users@opensimulator.org
> > http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://opensimulator.org/pipermail/opensim-users/attachments/20141017/3e051fa5/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 17 Oct 2014 18:58:56 -0400
> From: "Shaun T. Erickson" <s...@smxy.org>
> To: opensim-users@opensimulator.org
> Subject: Re: [Opensim-users] llVolumeDetect
> Message-ID: <54419f30.7050...@smxy.org>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> I'm curious about something. Unless you have an old, original, Blamgate,
> made by Pathfinder Lester, then all other Blamgates are made by Shaun
> Emerald (me - I started with his and have since rewritten it
> completely). But neither his nor mine use llVolumeDetect() ...
>
> -ste
>
> On 10/17/14, 4:23 PM, Dahlia Trimble wrote:
> > Assuming you're correct about it losing the property after a restart,
> > I'd think this test would work in either SL or OpenSimulator:
> >
> > changed(integer what)
> > {
> >         if (what & (CHANGED_REGION_START | CHANGED_REGION_RESTART))
> >          {
> > llVolumeDetect(FALSE);    // toggle bug fix in Opensim
> > llVolumeDetect(TRUE);
> >          }
> > }
> >
> > On Fri, Oct 17, 2014 at 10:07 AM, Fred Beckhusen <fre...@mitsi.com
> > <mailto:fre...@mitsi.com>> wrote:
> >
> >     I use llVolumeDetect()  to detect avatar collisions to trigger
> >     game effects and teleports when an avatar falls into water or
> >     fire, or walks into a rabbit hole.
> >
> >     The widely used hypergrid "Blamgate" teleporter I based my work on
> >     would sometimes not work after a reset.   The llVolumeDetect prim
> >     property did not get preserved after a restart.
> >
> >     I eventually figured out that a changed()  event with the
> >     Opensim-specific CHANGED_REGION_RESTART ( not
> >     CHANGED_REGION_START) flag is needed to turn llVolumeDetect(FALSE)
> >     and llVolumeDetect (TRUE) again. This will turn the collision off
> >     and on again. I have found this, and only this, works reliably.
> >
> >     // Works in
> >
> >     default
> >     {
> >         state_entry()     {
> >             llVolumeDetect(TRUE);
> >         }
> >         collision_start(integer total_number)    {
> >             llSay(0, "Bumped: "+(string)total_number);
> >         }
> >         changed(integer what)    {
> >             if (what & (CHANGED_REGION_RESTART)    // not
> >     CHANGED_REGION_START, that is for Second Life, REstart is for Opensim
> >             {
> >                 llVolumeDetect(FALSE);    // toggle bug fix in Opensim
> >                 llVolumeDetect(TRUE);
> >             }
> >         }
> >     }
> >
> >     --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----
> >     Ferd Frederix/Fred K. Beckhusen
> >     http://www.outworldz.com
> >
> >     _______________________________________________
> >     Opensim-users mailing list
> >     Opensim-users@opensimulator.org
> >     <mailto:Opensim-users@opensimulator.org>
> >     http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
> >
> >
> >
> >
> > _______________________________________________
> > Opensim-users mailing list
> > Opensim-users@opensimulator.org
> > http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://opensimulator.org/pipermail/opensim-users/attachments/20141017/5c66c9bb/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users@opensimulator.org
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>
>
> End of Opensim-users Digest, Vol 7, Issue 10
> ********************************************
>
_______________________________________________
Opensim-users mailing list
Opensim-users@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users

Reply via email to