|
Greg Hauptmann
Registered User
Join date: 30 Oct 2005
Posts: 283
|
02-04-2006 02:58
Hi, Just wondering what specific steps one should be taking (if any) to ensure a multi-object/script system continues to function ok across a sim restart? Any ideas/guideline suggestions? For example assuming script state is persisted/maintained across a sim restart does the "on_rez()" trigger, and hence should we use "on_rez()" accordingly here? Tks
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
02-04-2006 03:43
Although I've never actually directly tested it I'm 99% sure that on_rez doesn't trigger after a restart. There might be different types of restart though...
Normally it rolls back to saved state, that includes all script states etc. I've not seen one that doesn't, although I have to wonder about 1.7 - that seemed to break every xml-rpc channel so I suspect something funny went on.
|
|
Dana Bergson
Registered User
Join date: 14 Oct 2005
Posts: 561
|
02-04-2006 03:50
From: Eloise Pasteur Although I've never actually directly tested it I'm 99% sure that on_rez doesn't trigger after a restart. There might be different types of restart though...
Normally it rolls back to saved state, that includes all script states etc. I've not seen one that doesn't, although I have to wonder about 1.7 - that seemed to break every xml-rpc channel so I suspect something funny went on. I have at least one script, that I have to restart every time SL crashes, is updated and so on. So, I am pretty sure, that a sim-restart can hold, break or otherwise influence a script. I have not diagnosed it in detail. (I use it only in a single instance.)
|
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
02-04-2006 05:43
A sim restart will stop a script's execution middle-event, rolling it back to the state it was in before triggering that event. Or at least, that's what experience showed me 
_____________________
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.
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
02-04-2006 09:24
From: Jesrad Seraph A sim restart will stop a script's execution middle-event, rolling it back to the state it was in before triggering that event. Or at least, that's what experience showed me  Unless it was a planned restart, in which case the script state is stored along with everything else in the sim right before the shutdown, and the script resumes right where it left off after the restart.
|