Hacker News new | past | comments | ask | show | jobs | submit login

As someone who doesn't play Factorio, what basic building blocks is this made from? Are there programmable objects or is it built from logic gates?

To make a Minecraft analogy that more people might understand, is it closer to redstone or command blocks?




Factorio only has very basic gates. slightly more advanced than plain redstone, but not anything close to command blocks.

There are three types of combinators: arithmetic, decider, and constant.

Signals have a channel name (one for each item type and a few dozen other options) and an integer value.

Arithmetic combinators can perform arithmetic operations on one or all signals with one signal and a constant integer, or two signals.

Decider combinators perform comparison operations.

Constant combinators emit constant signals on a given channel.

There are also abilities to detect state on some other items and cause behavior to change, the equivalent of observers, dispensers, pistons, etc.

https://wiki.factorio.com/Circuit_network#Logic_signals


What about higher level manipulation. Are these made by hand? What does the tooling look like? Can you modify the "maps" using editors, or code? I remember even early on there were Python libraries for manipulating Minecraft chunks.


You usually have items in an inventory. If you have what's needed, you can craft plenty of things by hand (but not complicated things like engines or anything to do with oil or uranium). Otherwise, you build belts to assembly machines, they take things from the belt, and make whatever you tell them.

Mid to late game you also get construction and logistics bots. The former allows you to copy/paste groups of machines (bots will make them), and the latter of which just makes sure you have things that you need in your inventory. Bots speed the game up quite a bit.


You can create blueprints and have robots do the placement. It's aggressively anti micro, and scalable


There are sophisticated keybinding-friendly editors built-in. It is very different from vanilla Minecraft.


It's closer to redstone, but it's a more complicated system. It's like ladder logic in industrial control but with a couple hundred integer-valued registers per circuit network that the "combinators" update every game tick. The combinators include arithmetic and boolean operations, and you can set them to be performed on two or all of the registers.

It was fun figuring out how to make an automated system that feeds nuclear reactors with fuel to supply my base with just the right amount of steam for the generators, signaling an alarm in case of over utilization.


I've not played around with command blocks, but it's a bit more than redstone components.

When Factorio items are wired together with signal cable they have a few different operating modes. You can specify what objects are requested from a delivery network and what items are taken from a chest, or if any are to be taken at all. So this solution involved chests being filled with various items that have a specific color on belts, and then staggering pulls from the chests to place on belts in such a manner as to make pixels.

Those commands were issued by combinations of the constant signal block, the comparison/decider block, and the arithmetic block. I would say those entities are between NAND gates and pre fabricated if/else or for loop constructs.


They're like individual logic/arithmetic gates: https://wiki.factorio.com/Arithmetic_combinator

So something in-between.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: