Re: What actually happens in a script when the sim restarts?
Posted: Fri Jan 01, 2021 2:53 am
John, I've verified what you state above. I went to my own server on OSgrid and created a prim with the following script:
Touching the prim 7 times, it counted to 7.
I then logged out and reset the Opensim instance (told it to shut down, which it did. Program wiped from memory.)
I gave it a bit to sit then re-started the region. Once it re-started I logged back in and touched the prim.
8. 9. 10.
So yes, the system DOES retain script data when the region is entirely shut down. I have to admit that is totally new information to me... because I've seen so many scripts lose their state and data on a sim reset. As far as I know those scripts were well-written, so I'm wondering if it's a random bug somewhere within LsL or the region server code. More research is required... but I'm behind on my Netflix binging. ;D
Code: Select all
integer count;
default{
touch_start(integer a){
count++;
llOwnerSay("Count="+(string) count);
}
}
I then logged out and reset the Opensim instance (told it to shut down, which it did. Program wiped from memory.)
I gave it a bit to sit then re-started the region. Once it re-started I logged back in and touched the prim.
8. 9. 10.
So yes, the system DOES retain script data when the region is entirely shut down. I have to admit that is totally new information to me... because I've seen so many scripts lose their state and data on a sim reset. As far as I know those scripts were well-written, so I'm wondering if it's a random bug somewhere within LsL or the region server code. More research is required... but I'm behind on my Netflix binging. ;D