Crashed scripts not recovering on reset
inĀ progress
WolfGang Senizen
A crashed script won't start on reset.
The script state however does seem to be "running", seems to be the same in LSL on luau
LSL and lso are unaffected
Reproduction Steps
1 Object with 2 scripts
Script 1:
function touch_start(total_number)
error("crash")
end
ll.Say(0,"boot")
Script 2:
local other = "";
for i=0,ll.GetInventoryNumber(INVENTORY_SCRIPT)-1 do
other = ll.GetInventoryName(INVENTORY_SCRIPT,i)
if other ~= ll.GetScriptName() then
break
end
end
timer = function()
local crashed = ll.GetScriptState(other)
ll.Say(0,`{other}: {crashed}`)
end
ll.SetTimerEvent(2.0)
- Save scripts and watch script as
- script 1 says boot
- and script 2 starts to say "<script_1_name>: 1" in chat
- Click the prim
- Should get an error saying crash
- the chat messaged should change to "<script_1_name>: 0" in chat
- reset the crashed script
- no message in local saying boot
- touch doesn't crash it again
- script 2 is saying "<script_1_name>: 1" in chat again
Using
ll.ResetOtherScript
produces the same resultLog In
H
Harold Linden
inĀ progress
We have a fix for this that will be in an upcoming rollout
H
Harold Linden
planned
Thanks for sending this in! We've seen this in dev and we're looking into it.