Reset button in script properties dialog
|
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
|
11-17-2003 10:23
More than once, someone has complained to me that the script in their vehicle stopped running after a sim crash. This is a real problem for them because without permission to edit a script, there's no way to access the script's Reset button or Runing checkbox.
I'd like to see a Reset button and maybe a Running checkbox added to the script properties dialog. That way anyone can restart the script themselves even without Modify permission.
I mention this only because I've had to replace vehicles for a couple of users now. The vehicle's script stopped running after a sim crash.
|
Oedefe Silverman
Registered User
Join date: 3 Oct 2003
Posts: 54
|
11-17-2003 10:32
I believe the should be another permission setting; in some instances resetting a script *causes* the object to become as good as dead. I plan to sell some objects that are like this; their configuration is sent by a secret channel from a configuration device before I sell; a script reset would cause the config information to be lost. This is also a handy way to sell upgrades; reset the script and the upgrades are lost.
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
11-17-2003 10:43
Agreed. Allowing users to reset scripts (in systems that WON'T get broken by doing so!) would be a great feature and save scripters a lot of time.
|
Kissmi Kuroda
Member
Join date: 6 Nov 2003
Posts: 79
|
11-17-2003 10:48
i'm a little fuzzy on all this but wouldn't this work? apologies for any typos... default { on_rez { llResetScript(); } }
|
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
|
11-17-2003 10:49
That only works if the script is running on rez  The problem is that on rez, the script is *not* running.
|
Eddie Escher
Builder of things...
Join date: 11 Jul 2003
Posts: 461
|
11-17-2003 10:58
...then how about...
on_rez { llSetScriptState(<name of this script>, TRUE); llResetScript(); }
NOTE: I've not tested this, and probably wont get a chance to until tomorrow. I've not used the SetScriptState command before, and I am just assuming I have the syntax correct.
_____________________
Eddie Escher ...apparently 3 out of 4 people make up 75% of the population here...Eddie Escher Gadgets & Skins: Hotei and Seacliff
|
Oedefe Silverman
Registered User
Join date: 3 Oct 2003
Posts: 54
|
11-17-2003 11:10
again, how can on_rez be called if the script isn't running?
|
Kissmi Kuroda
Member
Join date: 6 Nov 2003
Posts: 79
|
11-17-2003 11:12
From: someone The problem is that on rez, the script is *not* running. do you mean your script or any script? i was just thinking...even if a script is no modify you can still open it and see "you do not have permission to view this script" right? are the "running" box and reset button not at the bottom of the script window then?
|
Eddie Escher
Builder of things...
Join date: 11 Jul 2003
Posts: 461
|
11-17-2003 11:14
From: someone Originally posted by Oedefe Silverman again, how can on_rez be called if the script isn't running? Aha! Very good point point! I'll get my coat... 
_____________________
Eddie Escher ...apparently 3 out of 4 people make up 75% of the population here...Eddie Escher Gadgets & Skins: Hotei and Seacliff
|
Camille Serpentine
Eater of the Dead
Join date: 6 Oct 2003
Posts: 1,236
|
11-17-2003 11:17
It would also be nice to be able to shut the script off if you don't want it running in addition to resetting it.
that way if you are at an event but want to keep the object attached you could turn it off so as not to bother your fellow attendees.
|
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
|
11-17-2003 13:12
I disagree.. some scripts need to not be reset under any condition.. It sounds more like a bug with your script.. you need to be sure you reset everything thing on on_rez and state_entry.. you could also easily add a reset command to the script to reset it(it the scripts not totally locked).
|