Scrap Mechanic

Scrap Mechanic

[Archived] Circuit Creator
Fails To Scan Circuits. Does this mod still work?
Connecting a light green and green input block into 2 separate vanilla AND gates such that the gates repeat their input 1 tick later. This pair of AND gates is then connected to a vanilla AND gate which is then connected to a light blue vanilla OR gate. Then the circuit block is connected into the two input blocks such that the direction of the connections face towards the input blocks from the circuit block.

https://steamcommunity.com/sharedfiles/filedetails/?id=2792093276

Expected behaviour
The circuit block should scan the described above circuit and emulate an AND gate.

Actual behaviour
When scanning the above circuit, the following debug output is logged;
15:24:46 (82876/47656) [Lua] [Information] [Host] Scan successful
15:24:46 (82877/47659) [Lua] WARNING: ---- Lua Error Traceback ----
[string "2289714402/Scripts/Shapes/Circuit.lua"]:187: in function <[string "2289714402/Scripts/Shapes/Circuit.lua"]:185>
[string "2289714402/Scripts/Shapes/Circuit.lua"]:164: in function 'server_createSimulator'
[string "Scripts/Graph/TopologicalSorter.lua"]:95: in function 'sort'
[C]: in function 'error'

The circuit block will disconnect itself from all input gates after clicking 'scan' in the interaction menu and will state it was scanned successfully to chat, however the above debug output suggests that the circuit emulator failed, seemingly at its initialisation.
The end result is a circuit block that does not respond to any input or output combination.
< >
Showing 1-1 of 1 comments
Amy  [developer] Mar 20, 2023 @ 4:22am 
First: I apologise for not having seen other threads in the discussions and this reply probably won't help at much almost a year after.

Maybe this will help others who had a similar issue. If you've used the mod's own input blocks to connect vanilla gates, the circuit block won't be able to scan the circuit. Those blocks were made specifically to interface with a ready-to-use circuit block that contains a circuit representation within.

Scanning a circuit only requires you to connect the circuit block to the vanilla input logic gates.
< >
Showing 1-1 of 1 comments
Per page: 1530 50