This is a perfect example of why it's good to talk about observations before rushing to mantis or the opensim source code ;)<br><br>Well played all :)<div><br></div><div>Cheers</div><div>James</div><div><br></div><div>
<br></div><div><br><div class="gmail_quote">On Sat, Sep 1, 2012 at 7:07 AM, Dr Ramesh Ramloll <span dir="ltr"><<a href="mailto:r.ramloll@gmail.com" target="_blank">r.ramloll@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Correct Melanie. I just found that the code in my last post does work the same way. <div>So the difference in timer behavior in my actual code must lie else where. Will try to find it. </div><div>Ha and I thought I found the difference because when I explicitly stopped the timer on_entry </div>
<div>in my actual code in opensim, that difference disappeared.</div><div><div><div class="h5"><br><div class="gmail_quote">On Sat, Sep 1, 2012 at 7:10 AM, Melanie <span dir="ltr"><<a href="mailto:melanie@t-data.com" target="_blank">melanie@t-data.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is correct behavior and also happens in SL. The timer is a<br>
property of the script and when you rez the prim again, on_rez fires<br>
but state_entry does NOT. This is correct and by design. It mirrors<br>
what SL does. The script is already in state default and the timer<br>
is still running from the touch before it was taken.<br>
<br>
Some people are user to OpenSim's ages-old behavior of resetting<br>
scrits on rez. That behavior has been gone for a long time now and<br>
we're correctly duplicating SL's state persistence behavior.<br>
<br>
Melanie<br>
<div><div><br>
On 01/09/2012 02:23, Dr Ramesh Ramloll wrote:<br>
> Hey Justin,<br>
> This can be reproduced with this script. Rez object, touch to start it,<br>
> then take it back to inventory, then rez again. Counter will continue to be<br>
> incremented and printed on screen. And I have to apologize here for not<br>
> submitting a report. Too tired :) really, not an excuse or anything. Sorry.<br>
><br>
> integer counter;<br>
> default<br>
> {<br>
> state_entry()<br>
> {<br>
><br>
> }<br>
> touch_start(integer flag){<br>
> llSetTimerEvent(0.5);<br>
> }<br>
><br>
> timer()<br>
> {<br>
> ++counter;<br>
> llSay(0,(string)counter);<br>
> }<br>
> }<br>
><br>
> On Fri, Aug 31, 2012 at 7:39 PM, Justin Clark-Casey <<br>
> <a href="mailto:jjustincc@googlemail.com" target="_blank">jjustincc@googlemail.com</a>> wrote:<br>
><br>
>> That is surprising because the code does remove timer events when a script<br>
>> is removed. The best course of action would be to file a bug with the<br>
>> exact steps to reproduce the problem.<br>
>><br>
>><br>
>> On 31/08/12 21:01, Dr Ramesh Ramloll wrote:<br>
>><br>
>>> Just thought I put this out there. I just noticed that in opensim, timers<br>
>>> in objects are not stopped when they are<br>
>>> removed. So I had to use llSetTimerEvent(0); in state_entry() to stop<br>
>>> the clock ... explicitly on object's entry. Guess<br>
>>> starting a timer in an object need to be viewed similar llSetText ...<br>
>>> Rather unexpected.<br>
>>><br>
>>> --<br>
>>> 'Consider how the lilies grow. They do not labor or spin.'<br>
>>> *Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate<br>
>>> /Research Associate Professor/, Idaho State University,<br>
>>><br>
>>> Pocatello, ID 83209 Tel: <a href="tel:208-240-0040" value="+12082400040" target="_blank">208-240-0040</a><br>
</div></div>>>> Blog <<a href="http://deepsemaphore." target="_blank">http://deepsemaphore.</a>**<a href="http://posterous.com/" target="_blank">posterous.com/</a><<a href="http://deepsemaphore.posterous.com/" target="_blank">http://deepsemaphore.posterous.com/</a>>>,<br>
>>> LinkedIn <<a href="http://www.linkedin.com/in/**rameshramloll" target="_blank">http://www.linkedin.com/in/**rameshramloll</a><<a href="http://www.linkedin.com/in/rameshramloll" target="_blank">http://www.linkedin.com/in/rameshramloll</a>>>,<br>
>>> DeepSemaphore LLC<br>
>>> <<a href="http://www.deepsemaphore.com" target="_blank">http://www.deepsemaphore.com</a>>**, Google+ profile <<br>
>>> <a href="https://plus.google.com/**103652369558830540272/about" target="_blank">https://plus.google.com/**103652369558830540272/about</a><<a href="https://plus.google.com/103652369558830540272/about" target="_blank">https://plus.google.com/103652369558830540272/about</a>><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> ______________________________**_________________<br>
>>> Opensim-users mailing list<br>
>>> <a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
>>> <a href="https://lists.berlios.de/**mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/**mailman/listinfo/opensim-users</a><<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a>><br>
<div>>>><br>
>>><br>
>><br>
>> --<br>
>> Justin Clark-Casey (justincc)<br>
>> OSVW Consulting<br>
>> <a href="http://justincc.org" target="_blank">http://justincc.org</a><br>
>> <a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a><br>
</div>>> ______________________________**_________________<br>
>> Opensim-users mailing list<br>
>> <a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
>> <a href="https://lists.berlios.de/**mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/**mailman/listinfo/opensim-users</a><<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a>><br>
<div><div>>><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Opensim-users mailing list<br>
> <a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
> <a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#999999">'Consider how the lilies grow. They do not labor or spin.'</font><br></div></div><div class="im"><b>Rameshsharma Ramloll</b> PhD, CEO CTO DeepSemaphore LLC, Affiliate <i>Research Associate Professor</i>, Idaho State University, Pocatello, ID 83209 Tel: <a href="tel:208-240-0040" value="+12082400040" target="_blank">208-240-0040</a><br>
<div><a href="http://deepsemaphore.posterous.com/" target="_blank">Blog</a>, <a href="http://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div>
<br>
</div></div>
<br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>===================================<br>
<a href="http://simhost.com" target="_blank">http://simhost.com</a><br><a href="http://twitter.com/jstallings2" target="_blank">http://twitter.com/jstallings2</a><br><a href="http://www.linkedin.com/pub/5/770/a49" target="_blank">http://www.linkedin.com/pub/5/770/a49</a><br>
</div>