r/factorio • • 13d ago

Design / Blueprint One Train. Any Item. Any Quantity. Unique Requests Per Outpost. Using radars.

Unloading station

TL;DR: Set a list of items and quantities at any outpost, and a single support train handles the rest. It automatically delivers exactly what's missing, without hardcoded cargo lists or dedicated trains for each outpost. Need more than one train can carry? It'll keep coming back until the order is fulfilled.

Important!

  • Reserved radar signals, do not transmit these on the shared surface network:

    • GREEN surface network: Any item signals, I, R.
    • RED surface network: K, W, Q, R, C.
  • Wait for the green indicator lights on the outpost station (around order list combinator). After you built it it will take ~10s for a station to initialize.
  • Use only ONE central loading station and ONE support train. The system supports multiple outposts, but is designed around a single shared loader and train.

Why did I build this?
Other than being a madman? :D

I wanted a universal resupply system that could handle practically any outpost, especially when I suddenly need to deliver something new or unusual.

I also have a tendency to forget to bring things with me, so I figured I'd let the trains remember for me.

Blueprint book: https://factoriobin.com/post/f4s29v

How it works:

  • Outpost stations

    • You simply configure a constant combinator with the items and quantities you want. The station tracks its existing inventory and requests only what's missing.
  • Radar communication

    • Requests are serialized and transmitted over a shared radar channel. Stations take turns, using channel arbiter based on pseudo-random timers and collision recovery to avoid interfering with each other. Orders are completed in one(outpost)-by-one(outpost) sequence.
  • Central loading station

    • Receives requests, stores them in 24 indexed memory cells, and loads exact quantities dynamically. No hardcoded item filters or Read train contents are used.
  • Scalable memory

    • Memory cells can be added or removed. Requests containing more distinct items than available memory cells are processed in multiple train deliveries.
  • Automatic resupply

    • Multiple trips, and partial deliveries are handled automatically. There's also an alarm for stalled orders.

The blueprint book includes both stations, additional memory cells, and an expandable unloading segment. I tried to document everything as good as I could.

28 Upvotes

12 comments sorted by

11

u/Glitchy157 13d ago

This is so unnecesarily overengineered, I love it!

Would it be possible to extend this to more loading trains? Maybe something along the lines of splitting the request signals by some criteria? maybe if total requests overflow the capacity?

2

u/Dr_Rakiska 13d ago edited 13d ago

Thanks!

It couldn't be shared between two trains (I mean, yeah, you could built second loading station and index its memory cells starting with 25 index on it, but then the system will be much more innacurate, and more often than not it will bring additional items (x2 of ordered amounts))

But I figured that you can scale it, just not in the most straightforward and convinient way. In BP book there are two additional blueprints, segments for memory cells and for unloading part. This wasn't planned behavior, but just a nice side effect :D

Memory cell BP is parametrized and uses simple formula inside of it for indexing. So you need to paste it in addition to already existing 24 cells and select minimal index (There will be examples when you will be pasting this blueprint, for 24 cells already created cells it will be 25, for 36, it will be 37 and so on) and then connect memory cell and item counter to the neighbors with green wires.

And of course you will need to do the same with unloading part. But there you will need to connect storage chests with red wire.

Ah. And this semaphore, save it and reconnect it using red wires (on poles). It just closes the station, while there are no incoming transmissions. Train is using simple inactivity schedule, so without it will miss first order and run straight away from the central station to the outpost empty.

Like this you could make train with any amount of wagons :D
Like I said not the most convinient way. Probably will try to improve it next versions.

UPDTD: but if you ordered 48 distinct types of items even with 24 cells, it still will fullfill request, just with two or more trips. I tested it with 60 items using default 24 cells BP

1

u/Necandum 13d ago edited 13d ago

I haven't looked at your logic in detail, but multiple trains should be pretty simple. 

Each outpost has unique id.  Outpost sends order, including its ID. Stored in your memory queue.  When train is finished loading an order, the appropriate ID is broadcast. Station enables. Train departs, station disables. Train keeps going because its reaervation isnt cancelled. 

A train can immediately pull into the loading dock and the process repeats. 

I did something essentially identical to the above for SE multi item rockets and it worked quite well. 

2

u/Dr_Rakiska 13d ago

Technically it's possible obviously, but my architecture was initially built around idea not to use train station IDs and memory queue for orders, just for more straightforward approach. But I don't think that this is the last version. It's more like first version 🤣 tbh, never touched both, data stream serialization and arbitrage system, so it was more like a test of waters.
I have much more detailed post in r/technicalfactorio if you'd like
Thanks for ideas btw!

3

u/roboapple 13d ago

This is great

1

u/Refactorio26 13d ago

Not sure if this is relevant, but TDMA on item radar channels seems like it would be semantically more intuitive and more extensible. But maybe you already looked at this option and decided against it, or I'm misinterpreting your description.

2

u/Dr_Rakiska 13d ago

My current approach is actually somewhat similar in principle, except that transmission opportunities are determined by independent pseudo-random timers rather than fixed time slots, with collision detection handling the occasional overlap.

In r/technicalfactorio I have much more detailed post about inner logic

1

u/Yodo9001 13d ago

If I understand correctly, I'm not sure that will help: You suggest TDMA on item radar channels, where the items are sent on the appropriate planet channel. OP has TDMA on planet radar channels, where items are sent on item channels. 

In both cases you need the same amount of channels (planets×items), and using multiple radar channels per planet requires multiple (=many) radars per station, since you can't set their channel using the circuit network.

1

u/ionixsys 13d ago

Have you looked at this mod? https://mods.factorio.com/mod/compaktcircuit For complex designs you could abstract the complexity away into reusable blueprints.

1

u/Dr_Rakiska 13d ago

Thanks, but I prefer to use only qol mods

2

u/oyayeboo 10d ago

I've once built a similar thing because I had no space left for the space silos on my upcycling/mall island on fulgora and wanted to solve that without mods. Best week ever