<div dir="ltr">Fred --<div><br></div><div>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.</div><div><br></div><div>Shaun -- </div><div><br></div><div>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.</div><div><br></div><div>That required the llVolumeDetect(TRUE); thing.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div><font face="Verdana,
Arial, Helvetica, sans-serif">-- Maria</font></div><div><font color="#003366" face="Verdana,
Arial, Helvetica, sans-serif"><br></font></div><font color="#003366" face="Verdana,
Arial, Helvetica, sans-serif">____________________________________________________</font><font face="Verdana, Arial, Helvetica, sans-serif"><br>Maria Korolov • 508-443-1130 • <a href="mailto:maria@hypergridbusiness.com" target="_blank"><font color="#003366">maria@hypergridbusiness.com</font></a><a href="http://www.china-speakers-bureau.com/" target="_blank"><br></a>Editor & Publisher, <a href="http://www.hypergridbusiness.com/" target="_blank"><b><font color="#cc0000">Hypergrid Business</font></b></a></font>
<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><i><font color="#666666">The magazine for enterprise users of virtual worlds. </font></i></span>
</div></div>
<br><div class="gmail_quote">On Sat, Oct 18, 2014 at 8:00 AM, <span dir="ltr"><<a href="mailto:opensim-users-request@opensimulator.org" target="_blank">opensim-users-request@opensimulator.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Opensim-users mailing list submissions to<br>
<a href="mailto:opensim-users@opensimulator.org">opensim-users@opensimulator.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:opensim-users-request@opensimulator.org">opensim-users-request@opensimulator.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:opensim-users-owner@opensimulator.org">opensim-users-owner@opensimulator.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Opensim-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: llVolumeDetect (Fred Beckhusen)<br>
2. Re: llVolumeDetect (Dahlia Trimble)<br>
3. Re: llVolumeDetect (Shaun T. Erickson)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 17 Oct 2014 12:07:56 -0500<br>
From: Fred Beckhusen <<a href="mailto:fred.b@mitsi.com">fred.b@mitsi.com</a>><br>
To: <a href="mailto:opensim-users@opensimulator.org">opensim-users@opensimulator.org</a><br>
Subject: Re: [Opensim-users] llVolumeDetect<br>
Message-ID: <<a href="mailto:54414CEC.2000400@mitsi.com">54414CEC.2000400@mitsi.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I use llVolumeDetect() to detect avatar collisions to trigger game<br>
effects and teleports when an avatar falls into water or fire, or walks<br>
into a rabbit hole.<br>
<br>
The widely used hypergrid "Blamgate" teleporter I based my work on would<br>
sometimes not work after a reset. The llVolumeDetect prim property did<br>
not get preserved after a restart.<br>
<br>
I eventually figured out that a changed() event with the<br>
Opensim-specific CHANGED_REGION_RESTART ( not CHANGED_REGION_START) flag<br>
is needed to turn llVolumeDetect(FALSE) and llVolumeDetect (TRUE) again.<br>
This will turn the collision off and on again. I have found this, and<br>
only this, works reliably.<br>
<br>
// Works in<br>
<br>
default<br>
{<br>
state_entry() {<br>
llVolumeDetect(TRUE);<br>
}<br>
collision_start(integer total_number) {<br>
llSay(0, "Bumped: "+(string)total_number);<br>
}<br>
changed(integer what) {<br>
if (what & (CHANGED_REGION_RESTART) // not<br>
CHANGED_REGION_START, that is for Second Life, REstart is for Opensim<br>
{<br>
llVolumeDetect(FALSE); // toggle bug fix in Opensim<br>
llVolumeDetect(TRUE);<br>
}<br>
}<br>
}<br>
<br>
--ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----<br>
Ferd Frederix/Fred K. Beckhusen<br>
<a href="http://www.outworldz.com" target="_blank">http://www.outworldz.com</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 17 Oct 2014 13:23:19 -0700<br>
From: Dahlia Trimble <<a href="mailto:dahliatrimble@gmail.com">dahliatrimble@gmail.com</a>><br>
To: <a href="mailto:opensim-users@opensimulator.org">opensim-users@opensimulator.org</a><br>
Subject: Re: [Opensim-users] llVolumeDetect<br>
Message-ID:<br>
<<a href="mailto:CAAQTD4W2jSxTQksSLk2TRhmU9qwk9fo1Wwnq8oSCUmd72StPRA@mail.gmail.com">CAAQTD4W2jSxTQksSLk2TRhmU9qwk9fo1Wwnq8oSCUmd72StPRA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Assuming you're correct about it losing the property after a restart, I'd<br>
think this test would work in either SL or OpenSimulator:<br>
<br>
changed(integer what)<br>
{<br>
if (what & (CHANGED_REGION_START | CHANGED_REGION_RESTART))<br>
{<br>
llVolumeDetect(FALSE); // toggle bug fix in Opensim<br>
llVolumeDetect(TRUE);<br>
}<br>
}<br>
<br>
On Fri, Oct 17, 2014 at 10:07 AM, Fred Beckhusen <<a href="mailto:fred.b@mitsi.com">fred.b@mitsi.com</a>> wrote:<br>
<br>
> I use llVolumeDetect() to detect avatar collisions to trigger game<br>
> effects and teleports when an avatar falls into water or fire, or walks<br>
> into a rabbit hole.<br>
><br>
> The widely used hypergrid "Blamgate" teleporter I based my work on would<br>
> sometimes not work after a reset. The llVolumeDetect prim property did<br>
> not get preserved after a restart.<br>
><br>
> I eventually figured out that a changed() event with the Opensim-specific<br>
> CHANGED_REGION_RESTART ( not CHANGED_REGION_START) flag is needed to turn<br>
> llVolumeDetect(FALSE) and llVolumeDetect (TRUE) again. This will turn the<br>
> collision off and on again. I have found this, and only this, works<br>
> reliably.<br>
><br>
> // Works in<br>
><br>
> default<br>
> {<br>
> state_entry() {<br>
> llVolumeDetect(TRUE);<br>
> }<br>
> collision_start(integer total_number) {<br>
> llSay(0, "Bumped: "+(string)total_number);<br>
> }<br>
> changed(integer what) {<br>
> if (what & (CHANGED_REGION_RESTART) // not<br>
> CHANGED_REGION_START, that is for Second Life, REstart is for Opensim<br>
> {<br>
> llVolumeDetect(FALSE); // toggle bug fix in Opensim<br>
> llVolumeDetect(TRUE);<br>
> }<br>
> }<br>
> }<br>
><br>
> --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----<br>
> Ferd Frederix/Fred K. Beckhusen<br>
> <a href="http://www.outworldz.com" target="_blank">http://www.outworldz.com</a><br>
><br>
> _______________________________________________<br>
> Opensim-users mailing list<br>
> <a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a><br>
> <a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://opensimulator.org/pipermail/opensim-users/attachments/20141017/3e051fa5/attachment-0001.html" target="_blank">http://opensimulator.org/pipermail/opensim-users/attachments/20141017/3e051fa5/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 17 Oct 2014 18:58:56 -0400<br>
From: "Shaun T. Erickson" <<a href="mailto:ste@smxy.org">ste@smxy.org</a>><br>
To: <a href="mailto:opensim-users@opensimulator.org">opensim-users@opensimulator.org</a><br>
Subject: Re: [Opensim-users] llVolumeDetect<br>
Message-ID: <<a href="mailto:54419F30.7050200@smxy.org">54419F30.7050200@smxy.org</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
I'm curious about something. Unless you have an old, original, Blamgate,<br>
made by Pathfinder Lester, then all other Blamgates are made by Shaun<br>
Emerald (me - I started with his and have since rewritten it<br>
completely). But neither his nor mine use llVolumeDetect() ...<br>
<br>
-ste<br>
<br>
On 10/17/14, 4:23 PM, Dahlia Trimble wrote:<br>
> Assuming you're correct about it losing the property after a restart,<br>
> I'd think this test would work in either SL or OpenSimulator:<br>
><br>
> changed(integer what)<br>
> {<br>
> if (what & (CHANGED_REGION_START | CHANGED_REGION_RESTART))<br>
> {<br>
> llVolumeDetect(FALSE); // toggle bug fix in Opensim<br>
> llVolumeDetect(TRUE);<br>
> }<br>
> }<br>
><br>
> On Fri, Oct 17, 2014 at 10:07 AM, Fred Beckhusen <<a href="mailto:fred.b@mitsi.com">fred.b@mitsi.com</a><br>
> <mailto:<a href="mailto:fred.b@mitsi.com">fred.b@mitsi.com</a>>> wrote:<br>
><br>
> I use llVolumeDetect() to detect avatar collisions to trigger<br>
> game effects and teleports when an avatar falls into water or<br>
> fire, or walks into a rabbit hole.<br>
><br>
> The widely used hypergrid "Blamgate" teleporter I based my work on<br>
> would sometimes not work after a reset. The llVolumeDetect prim<br>
> property did not get preserved after a restart.<br>
><br>
> I eventually figured out that a changed() event with the<br>
> Opensim-specific CHANGED_REGION_RESTART ( not<br>
> CHANGED_REGION_START) flag is needed to turn llVolumeDetect(FALSE)<br>
> and llVolumeDetect (TRUE) again. This will turn the collision off<br>
> and on again. I have found this, and only this, works reliably.<br>
><br>
> // Works in<br>
><br>
> default<br>
> {<br>
> state_entry() {<br>
> llVolumeDetect(TRUE);<br>
> }<br>
> collision_start(integer total_number) {<br>
> llSay(0, "Bumped: "+(string)total_number);<br>
> }<br>
> changed(integer what) {<br>
> if (what & (CHANGED_REGION_RESTART) // not<br>
> CHANGED_REGION_START, that is for Second Life, REstart is for Opensim<br>
> {<br>
> llVolumeDetect(FALSE); // toggle bug fix in Opensim<br>
> llVolumeDetect(TRUE);<br>
> }<br>
> }<br>
> }<br>
><br>
> --ooo------/\/\/\-----|(------ooo------/\/\/\-----|(------ooo----<br>
> Ferd Frederix/Fred K. Beckhusen<br>
> <a href="http://www.outworldz.com" target="_blank">http://www.outworldz.com</a><br>
><br>
> _______________________________________________<br>
> Opensim-users mailing list<br>
> <a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a><br>
> <mailto:<a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a>><br>
> <a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Opensim-users mailing list<br>
> <a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a><br>
> <a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://opensimulator.org/pipermail/opensim-users/attachments/20141017/5c66c9bb/attachment-0001.html" target="_blank">http://opensimulator.org/pipermail/opensim-users/attachments/20141017/5c66c9bb/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a><br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br>
<br>
End of Opensim-users Digest, Vol 7, Issue 10<br>
********************************************<br>
</blockquote></div><br></div>