Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripts and Sim crashes

Yoshimi Muromachi
Registered User
Join date: 30 May 2005
Posts: 17
07-19-2006 04:56
Hi

Does anyone know of a way for a script to tell if the Sim it is in has just been restarted, after a crash or restart command?

Ive looked in the WIKI and cannot seem to find a way to read how long a Sim has been running since last restart or any other way to determine whether the sim has recently gone down.

Im trying to write a script to reset other scripts of the type that seem to lock during a Sim crash(sit scripts where the sim went down while and AV sat on the object), right now this works by listening for a person to tell it to reset, but would be much better if this script would reset the others automatically as the sim comes back up.

I hope this is not the wrong forum for this question, and thanks in advance for any help you can give.
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
07-19-2006 05:34
So far as I know, the closest you'll get to it is llGetTimeOfDay which has some quirks which mean that it can be used to detect sim reboots, at least according to the wiki.
Syrrh Hurnung
Registered User
Join date: 9 Jul 2006
Posts: 55
07-19-2006 14:57
There are several threads related to this in the Scripting Library forum. I haven't read and compared features on them but here's one you can check out:

/54/c6/81694/1.html