MikaylaFischler / cc-mek-scada

Configurable ComputerCraft SCADA system for multi-reactor control of Mekanism fission reactors with a GUI, automatic safety features, waste processing control, and more! Please be sure to take a look at the Wiki tab, this project has lots of docs!
https://youtube.com/playlist?list=PLPTRLQjcSlD2s6HsPe3COlfaULQZogWKK
MIT License
284 stars 11 forks source link

PLC Stuck Faulted #431

Closed MikaylaFischler closed 4 months ago

MikaylaFischler commented 4 months ago

Something happened on chunk load/server start that resulted in the PPM mount of the reactor being messed up, even though it showed reactor as a green light and all okay.

plc_log.txt sv_log.txt

MikaylaFischler commented 4 months ago

This is due to the race condition where a device reports it is formed just after ppm mounted it when it wasn't formed. Identifying that this is why this occurs means ppm could be modified to try peripheral.call before giving up, and if that succeeds, it could not fail or even remap that function into the device entry. That will be a separate task (#434), for now this should mark the reactor as not formed.