[Opensim-users] one more Difference between opensim and SL timers
Dr Ramesh Ramloll
r.ramloll at gmail.com
Sat Sep 1 00:23:23 UTC 2012
Hey Justin,
This can be reproduced with this script. Rez object, touch to start it,
then take it back to inventory, then rez again. Counter will continue to be
incremented and printed on screen. And I have to apologize here for not
submitting a report. Too tired :) really, not an excuse or anything. Sorry.
integer counter;
default
{
state_entry()
{
}
touch_start(integer flag){
llSetTimerEvent(0.5);
}
timer()
{
++counter;
llSay(0,(string)counter);
}
}
On Fri, Aug 31, 2012 at 7:39 PM, Justin Clark-Casey <
jjustincc at googlemail.com> wrote:
> That is surprising because the code does remove timer events when a script
> is removed. The best course of action would be to file a bug with the
> exact steps to reproduce the problem.
>
>
> On 31/08/12 21:01, Dr Ramesh Ramloll wrote:
>
>> Just thought I put this out there. I just noticed that in opensim, timers
>> in objects are not stopped when they are
>> removed. So I had to use llSetTimerEvent(0); in state_entry() to stop
>> the clock ... explicitly on object's entry. Guess
>> starting a timer in an object need to be viewed similar llSetText ...
>> Rather unexpected.
>>
>> --
>> 'Consider how the lilies grow. They do not labor or spin.'
>> *Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate
>> /Research Associate Professor/, Idaho State University,
>>
>> Pocatello, ID 83209 Tel: 208-240-0040
>> Blog <http://deepsemaphore.**posterous.com/<http://deepsemaphore.posterous.com/>>,
>> LinkedIn <http://www.linkedin.com/in/**rameshramloll<http://www.linkedin.com/in/rameshramloll>>,
>> DeepSemaphore LLC
>> <http://www.deepsemaphore.com>**, Google+ profile <
>> https://plus.google.com/**103652369558830540272/about<https://plus.google.com/103652369558830540272/about>
>> >
>>
>>
>>
>> ______________________________**_________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/**mailman/listinfo/opensim-users<https://lists.berlios.de/mailman/listinfo/opensim-users>
>>
>>
>
> --
> Justin Clark-Casey (justincc)
> OSVW Consulting
> http://justincc.org
> http://twitter.com/justincc
> ______________________________**_________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/**mailman/listinfo/opensim-users<https://lists.berlios.de/mailman/listinfo/opensim-users>
>
--
'Consider how the lilies grow. They do not labor or spin.'
*Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate *Research
Associate Professor*, Idaho State University, Pocatello, ID 83209 Tel:
208-240-0040
Blog <http://deepsemaphore.posterous.com/>,
LinkedIn<http://www.linkedin.com/in/rameshramloll>
, DeepSemaphore LLC <http://www.deepsemaphore.com>, Google+
profile<https://plus.google.com/103652369558830540272/about>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20120831/b946bd8c/attachment.html>
More information about the Opensim-users
mailing list