Unable to reset Lua script.
in progress
dantia Gothly
create a simple default script and save it with a ll.Say or ll.OwnerSay in state_entry() and reset the script. Nothing appears to happen when resetting the script.
Log In
Signal Linden
in progress
Signal Linden
planned
Frionil Fang
This appears to be an interface issue: scripts of any type can't be reset in the script editor. Calling llResetOtherScript from another script will still perform a reset as expected.
rhet0rica Resident
Frionil Fang I think this may be a broader problemâI'm having trouble with llSetScriptState(..., FALSE) being unreliable, also across all VMs.
WolfGang Senizen
rhet0rica Resident
The reset button not working in the editor is a viewer bug, you can fix it yourself till LL release a fixed build, by going to
skins/default/xui/en/floater_live_lsleditor.xml
in your viewer install directory and editing the reset button changing its name value from Reset
to reset
. (assuming you are using english ui, there are more steps if you want another language to work) but without recompiling the viewer that's the easiest fix.The whole element should read something like
<button follows="left|bottom" height="23" label="Reset" label_selected="Reset" layout="topleft" name="reset" left="10" width="85"/>
If you are having problems with llSetScriptState, then that will need separate investigating.
rhet0rica Resident
WolfGang Senizen Aha. Okay! New bug it is, then.
Kristy Aurelia
state_entry()
does not get called in Luau as it does not do states, you have to do it manually, or just do what you'd do in state_entry
in the global scope instead.