Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object: YOUR SIM CRASHED! :O

Miles05 Reitveld
Kitsune Mage
Join date: 24 Apr 2005
Posts: 28
10-12-2005 16:41
Hello! *waves* Are there any commands or scripting formats that can let you know of the status of a sim? I need it for my DS... Thanks to all offered help! ^^
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
10-12-2005 17:23
Try: key llRequestSimulatorData(string simulator, integer data)

Wiki Link: http://secondlife.com/badgeo/wakka.php?wakka=llRequestSimulatorData
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-12-2005 23:23
This function can only tell you if the sim's running. To know if the sim crashed and came back up, you have to check periodically that the sim's TimeOfDay has been reset unexpectedly.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Spuds Milk
Registered User
Join date: 28 Sep 2004
Posts: 94
10-16-2005 12:24
using llGetTimeOfDay you can find time since sim start OR time since sim midnight. if sim midnight was not recent, and llGetTimeOfDay is low, then the sim crashed.


Just htought of this, state/data is lost from a script when a sim crashes, so can do somehting like


at start set flag to 0

start loop
pause 10 minutes (or whatever time is appropriate)
if flag is 0, sim crashed, or script just was started

set flag to 1
end loop