To verify a pretty severe Havok bug I urgently need a script to detect a sim crash or reboot. I know I've seen it done sometime with some timing functions, but can't get it right yet..
anyone with a code suggestion?
These forums are CLOSED. Please visit the new forums HERE
Script to detect sim crash / restart |
|
|
Vinnie Baxter
Registered User
Join date: 5 Feb 2007
Posts: 17
|
04-07-2008 14:14
To verify a pretty severe Havok bug I urgently need a script to detect a sim crash or reboot. I know I've seen it done sometime with some timing functions, but can't get it right yet..
anyone with a code suggestion? |
|
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
|
04-07-2008 14:35
I wrote one that only works in my sims that are always set to midnight (don't have the script on-hand but can drop on you in-world). Kyrah Abattoir wrote a more complicated one that works on sims on a normal day/night cycle:
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/ New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL! http://desperationisle.com/ Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes! |
|
Marianne McCann
Feted Inner Child
Join date: 23 Feb 2006
Posts: 7,145
|
04-07-2008 15:00
To verify a pretty severe Havok bug I urgently need a script to detect a sim crash or reboot. I know I've seen it done sometime with some timing functions, but can't get it right yet.. anyone with a code suggestion? I was going ot drop two different ones on your from my inventory (including the Kyrah Abbatoir one), but it will have to wait til profiles are re-enabled. Mari _____________________
![]() "There's nothing objectionable nor illegal in having a child-like avatar in itself and we must assume innocence until proof of the contrary." - Lewis PR Linden "If you find children offensive, you're gonna have trouble in this world " - Prospero Linden |
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
04-07-2008 15:27
Simple enough... set a timer for 30-60 seconds, and update an integer value with the current llGetUnixTime(), after first checking it to see when it was last updated. If the time was greater than a certain threshold, say 60-120 seconds, then it likely crashed, or is lagging something fierce.
Second way to tell: occasionally check the llGetSimulatorHostname() value. If it changes, most likely it is because the sim crashed, and your sim moved to another server. |