Panakotta00 / FicsIt-Networks

Control, Monitor, Manage and Automate your Satisfactory.
https://ficsit.app/mod/FicsItNetworks
GNU General Public License v3.0
163 stars 52 forks source link

Crash on switch being activated #137

Closed Skyamoeba closed 3 years ago

Skyamoeba commented 3 years ago

SMMDebug_2021-6-10_11-17-49.zip Seems to crash when a switch is switched to the on position via computer, but not really sure. Full log attached.

Ver: 0.2.1

Skyamoeba commented 3 years ago

Will test it on dev 109 when the download is available. Does the same on dev 108.

Skyamoeba commented 3 years ago

Still crashing on the switch in 110 but its not crashing switching the switch on, it is now only crashing when the switch is switched off, code below and error logs attached. SMMDebug_2021-6-12_10-45-23.zip

(Note: worked ok to switch on reloaded when it crashed on switching off and now gone back to crashing when switching on)

Power_Switch = "TestSwitch1"

function Connection(x,y)

function GPwrSwitch() Comp = component.proxy(component.findComponent(x)[1]) end

if pcall (GPwrSwitch) then GPwrSwitch() Comp.isSwitchOn = y else print("Comm Error : "..Power_Switch.." is not showing / connected") end end

Connection(Power_Switch,true)

Skyamoeba commented 3 years ago

Crashing on dev build 111, still doing the same as above.

SMMDebug_2021-6-19_11-42-58.zip

Skyamoeba commented 3 years ago

Confirmed fixed, no game crash when using the below:

Power_Switch = "TestSwitch1"

function Connection(x,y)

function GPwrSwitch() Comp = component.proxy(component.findComponent(x)[1]) end

if pcall (GPwrSwitch) then GPwrSwitch() Comp.isSwitchOn = y else print("Comm Error : "..Power_Switch.." is not showing") end end

Connection(Power_Switch,true)

event.pull(5)

Connection(Power_Switch,false)