TSM Outpost Builder Addon


Turn your extended factory into a massive virtual robot construction zone with the support of the rail system. This mod automates the construction of massive modular gigabases with trains delivering the exact construction materials needed to distant outpost contstruction projects..

Content
1 year, 6 months ago
0.18 - 1.1
1.12K
Logistics

i Ignore negative values on Outpost stop's green channel

4 years ago

I have an outpost on the front lines, so walls occasionally get destroyed. The blueprint scanner detects the ghosts of destroyed buildings, just as a bot is replacing them, and triggers a build request. At the moment, there's no way to prevent a slight overflow of building materials from getting loaded to the train and delivered to the outpost, so the storage at the outpost slowly fills up with walls until it's overflowing.

I could deal with this by building a separate "trash" station at the outpost and siphoning off walls, but to me, it seems more elegant to just not trigger the build request in the first place, and just use the extra walls that have already been delivered anyway.

I've tried to do this by taking the logistics inventory off a roboport, inverting it (each * -1 -> each), and feeding it to the green channel on the Outpost Train Stop, but unfortunately any signal triggers a build request.

I've also tried adding that negative value to the ghost scanner's output, then filtering that sum with a decider combinator (each > 0 -> each input count). This correctly prevents requests from being generated, but unfortunately the ghost scanner isn't connected directly to the outpost, so other functionality (stuff intended to "refresh" the ghost scanner) fails.

I suspect that there's a way to hook the ghost scanner up directly and also have a circuit network contraption subtract any matching items in the logistic network, but there would be at least a few ticks of delay, so presumably a build request would still be generated, invalidating the in-game solution.

4 years ago
(updated 4 years ago)

I release the following implementation of this feature request under GPLv3.

https://gist.githubusercontent.com/ChucklesTheBeard/77cefdb3c4f9b3ad11a8fecf059ec855/raw/bf252d4b40b795e4108436bf53c3722d5254292d/tsm-outpost-builder_0.1.2.diff

To apply patch (assuming you're on a unixy system):

  1. Open gist link.
  2. Right click, save page as "tsm-outpost-builder_0.1.2.diff" in your factorio mods directory.
  3. cd $factorio_mods_directory/
  4. unzip TSM-outpost-builder_0.1.2.zip
  5. $ patch control.lua ../tsm-outpost-builder_0.1.2.diff
4 years ago

I've updated the above gist; I got overeager, so it wasn't popping empty requests correctly.

4 years ago

revision 4: fixed nil reference crash

New response