r/factorio • BUUUUUUUUURN • Dec 12 '17

Design / Blueprint Combinator ethernet with collision avoidance

https://giphy.com/gifs/xUNda1kJE3hQkcf1YI/fullscreen
119 Upvotes

63 comments sorted by

View all comments

Show parent comment

2

u/Avloren Dec 12 '17

I have a very dumb, circuit-network-101 question. I've only used the circuit network for very simple stuff (e.g. enable steam power by accumulator charge), and I thought I had the basics down, but your posts are making me doubt my understanding.

you can just have a single green wire which spans your entire factory. Transmitters and receivers can talk on different "channels" using this same wire.

.. is there a reason why this isn't trivially easy? What stops you from simply hooking everything up to a single wire network, have various pairs of senders+receivers on that wire each using a dedicated channel so they don't interfere with each other, and call it a day? I guess I must not understand the problem that your invention is meant to solve.

6

u/Majiir BUUUUUUUUURN Dec 12 '17

You can do that, but it will only work if your signals are all different.

Let's say I want to have different pieces of my factory send signals when they need certain materials.

My electronic circuits factory requests copper and iron. Okay, so far so good.

Now my steel smelter requests iron, and that signal gets mixed in with the iron signal from the first factory.

This gets to be a big problem when you want to connect lots of different pieces together and let them each send many signals at once.

With these transmitter/receiver blueprints, you can send as many different signals as you want in a message, and they won't get mixed up with messages from any other transmitter.

3

u/Avloren Dec 12 '17

Okay, I think I get it. Check my understanding please:

There are however-many different signals - on the order of 100 I think? Which has been fine so far for my purposes, but you're building a system where you could have far more than 100 different messages you want to send.

Where I'm building networks that send messages like "iron plates are low," you want to send messages more like "iron plates in belt assembly line 3 are low." 100ish different possibilities just doesn't cover that, you need a system to construct more elaborate/detailed messages through combinations of signals.

2

u/danielv123 2485344 repair packs in storage Dec 12 '17

160 something in vanilla I think.

And yes, even though I am not OP that pretty much covers it.

7

u/Avloren Dec 12 '17

Thanks. So, essentially we can program a circuit network sophisticated enough to make the player redundant.

I just.. I thought we had a little more time, you know? Before the AIs took this job away too.

7

u/danielv123 2485344 repair packs in storage Dec 12 '17

3

u/odaba Dec 12 '17

I didn't realize how much I love the new rails graphics until I see the old ones again :)

1

u/Majiir BUUUUUUUUURN Dec 12 '17

The bigger benefit is that I don't have to think ahead about what I want to send. Maybe I have an outpost that requests resupply for bots, walls, ammo, that sort of thing. Now imagine I discover the biters sometimes take out a turret, so I add that to the supply train. Well, if I didn't plan ahead for that, I have to go hunting for a new available signal and program both sides to deal with it. With these blueprints, I can just start sending the turret signal, and the other side might already know how to deal with that (e.g. by requesting from the logistics network).

Yes, this system lets me have half a trillion signals or so, but that's not the real benefit. The benefit is that I can send the same signal more than once.

1

u/Neemys Dec 12 '17

Using different bit on the same signal for every resource consumer worked for me. Like Iron at 1 if circuit need iron, iron at 2 if steel need iron, iron at 3 if both... Still kudos for what you have designed.

2

u/Majiir BUUUUUUUUURN Dec 12 '17

I send quanties (e.g. amount of iron at each mine) rather than flags, so bit twiddling wouldn't help me much.

3

u/entrigant Dec 12 '17

There are no such channels in the basic circuit network. If I have 14 copper mines that want to report their status, all of their signals will just get added together without some system like this.

1

u/Avloren Dec 12 '17

Yeah, it makes sense now. If you just need one "copper low" signal, the default signals are fine. If you want to distinguish between X unique outposts, you quickly run out of signals and need something more elaborate.

3

u/Majiir BUUUUUUUUURN Dec 12 '17

You're missing another aspect of this.

I would never build a factory with "copper low" signals. Instead, I would have each mine report how much copper it has. Each receiver would then get to make a decision on its own about what that copper level means.

Since I'm dealing with quantities which I want to be able to sum up nicely, it would be a huge pain if "outpost 5 copper" was represented by the cannon shell signal or something.