

- #Factorio red circuit mod
- #Factorio red circuit update
- #Factorio red circuit full
- #Factorio red circuit mods
- #Factorio red circuit code
REoTMhuDqH5D6CURIEMhslfTsI1eWhEVLBX4dCdto+hlT3vy7ieDEZH+9c7LBLM+KnOYYU0K1fgMg+xdn O6+bGjyXjwi4R6GoTMPHslMKJC2oxsOME0cUk9dLMNA5GM+3UQGduZH5ykeKqDH4umRt25UTXRwQSv8I Ux0DiQJB7IqDBIEgtBNRBYOOXBcWqAH4tKYSxHQSuclh4NgSbVRk8rsrAlQgYe/YE4UAoLAabmfKI6Ck SeQTi8AigRYA4CKTzCCThE8gdBLJZBIp3APmqAH4vCIBYADB2ECB+BGgwBGwZyBwA6LwkSP9PDHxfkEB Out = įor c in digit_segments:gmatch('.') do out = 1 endīlueprint for lamp segments used in the above example (A-F go clockwise from top, G is the middle one),įor "Import String" button in the shortcut bar at the bottom of the screen: 0eNrVmN1qrDAQx99lrm1x1MTVi8L57EOUZXF3056ARol圆bLk3WtW2u7JacCAHsiNMPmYxB8z/xm9wL4ĮWCe5UFBegB9a0UP5dIGev4iqNmPq3DEogSvWQASiaozVN1Vd39VV04GOgIsje4US9TYCJhRXnE1ersZĥJ4Zmz+S44Kv9EXRtP25phTnNuMF7EsEZyoTck9H7eCcl23q3Z3+qE2+lWXbg8jBwtRvnjh97n7ns1e6įm5+4VMM48nn4dcXdN5ic96oybx8bo+kqWSlzBjyAnuYFO5gTeuMSzUOy4+3b8dFKdPSXneqt1jdj7wS Then var.inbound_manifest_checked = false end - reset for the next arrivalĭelay = 2 * 60 - check on cargo loading every other second Out = train_loaded and train_unloaded - HONK! Train_unloaded = inbound_cargo ~= var.inbound_cargo - that's "not equals" in Lua Var.coal, var.barrels = red.coal, red.barrel - remember for the next check Or (var.coal = red.coal and var.barrels = red.barrel) - no change since last check Note how outputs persist until they are changed/reset Emit alarm signal for underloaded train arrival while it's on station Local train_loaded, train_unloaded - locals get forgotten between runs Local our_train = 17 - hover over train to find out its ID number
#Factorio red circuit full
+1 counter every tick while signal-W input is non-zero: delay, irq, out.wood = 2^30, 'signal-W', out.wood + 1ĭifferent value on each output wire: out, out = -3, 10Ĭlick in-game "Quick Reference" button in combinator window for a full list of all special values and APIs there, default hotkeys and other general info.
#Factorio red circuit update
Update counter once per second (see game tick): delay, out.wood = 60, out.wood + 1 Simple arithmetic on an input: out.wood = red.wood * 5Įver-increasing output counter: out.wood = out.wood + 1 Set constant output signal value: out.wood = 1
#Factorio red circuit mod
This mod allows using it to script factorio circuit network logic directly from within the game. Lua is a very simple and easy-to-use programming language, which fits entirely on a couple pages.
#Factorio red circuit code
Which kinda breaks basic game mechanics in a way similar to various "Long Reach" mods,īut can be useful if code breaks too often and is hard to reach for debugging all the time. There is an optional hotkey (Ctrl-E) for opening these combinators from anywhere on the map, UI hotkeys can also be customized in the Settings - Controls game menu. If you don't use these buttons to undo minor changes (they still keep history of saved changes), be sure to uncheck this. Toggles between smooth and pleasant editing or undo/redo buttons on top working for all non-saved code changes. Note that with higher interval values, signals flapping on/off synced to it will be impossible to notice there. Default is 1 - update signal side-window on every tick. Only relevant when main combinator UI window is actually open. Interval in game ticks (60 ticks = 1 second at 1x game speed) between updating signal table in the UI. Note that red/green input tables are always available in the environment too, for better code/snippet compability.
#Factorio red circuit mods
These can be useful when playing with other mods that change colors, for labels to match those. Green Wire Label - same as Red Wire Label, but for the other wire color.

