Panakotta00 / FicsIt-Networks

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

A crash with a lever code #99

Closed KittenTrucker closed 3 years ago

KittenTrucker commented 3 years ago

If you start a computer with my code in it after a wile it will crash the game to desktop. I have a lot of mods installed so that may be necessary For reproduction you need:

1x Computer 1x EEPROM 1x CPU 3x RAM 1x Panel 1x swich 1x button above the swich 1x Power Controller How to reproduce

(you may need to have code in the coputer befor hand not shure it nessary tho) Copy my code in run what a moment and then the game should crash

The code ` Panel = component.proxy("5BDFE41544ED5888D2F0C59AC554BE5D") PowerController = component.proxy("1D6735094BF2354BAE511CAB72651555") Button = Panel:getModule(2,2) Lever = Panel:getModule(2,1) -- Events event.ignoreAll() event.clear() event.listen(Lever)

while true do Leveron = Lever:getState() if (Leveron) then event.pull(0.5)

PowerController:setConnected(true)
 Button:setColor(0,1,0,1)

else

  PowerController:setConnected(false)
   Button:setColor(1,0,0,1) 

end -- End if "ChangeState"

end -- End while true do `

log file SMMDebug_2020-10-24_21-55-54.zip