Threadwork — Belt Thread Tools


Click a belt and the whole connected line gets marked for upgrade, to targets you pick. A panel (Ctrl+Shift+T) sets your belt, underground, splitter, loader and inserter targets; the Thread Upgrader (Ctrl+Shift+U) walks the connected thread and your bots swap everything over, inserters included. No tier lists and no upgrade chains: tiers are detected from belt speed, so any belt mod works, and it can upgrade between families the vanilla upgrade planner refuses to pair. Underground pairs are skipped if the target can't span the gap. Right-click cancels. Also includes a Thread Remover. Inspired by Belt Line Upgrade (Strayer_J) and Spaghetti Belt Tools (PietersieliePC).

Content
6 days ago
2.0
12
Owner:
CoolFreeze23
Source:
N/A
Homepage:
N/A
License:
GNU GPLv3
Created:
6 days ago
Latest Version:
1.0.1 (6 days ago)
Factorio version:
2.0
Downloaded by:
12 users

Threadwork - Belt Thread Tools

Click a belt and the whole connected line gets marked for upgrade. The difference from other thread upgraders: you pick what everything upgrades to.

There's a small panel (Ctrl+Shift+T) where you set your targets. One slot each for belt, underground belt, splitter, 1x1 loader, 1x2 loader, and inserter. Then grab the Thread Upgrader (Ctrl+Shift+U or the shortcut bar), click any belt, and your bots swap the entire thread over to whatever you picked. Slots you leave empty are left alone.

Why I made this

I play a big modpack (Krastorio 2, 5Dim, several belt and loader mods) and the existing thread upgrade mods kept sending my belts into tiers I didn't want. They decide the target from the game's upgrade chain or from a built-in list of known belts. In a heavily modded game the upgrade chain goes wherever some overhaul mod pointed it, and belts that aren't on the list just don't work at all. That was my situation: one mod kept upgrading everything into 5Dim tiers, the other didn't recognize my Advanced Furnaces belts, period.

So Threadwork skips all of that. It asks you what you want and goes there directly. There is no compatibility list to maintain and no "belt not supported" message, because tiers are detected from belt speed. Any belt mod works, including ones that come out after this one. It can even upgrade between belt families the vanilla upgrade planner refuses to pair in its menu.

Features

  • Thread Upgrader: select a belt, the connected same-tier thread gets marked for upgrade to your targets. Shift+select follows everything connected regardless of tier. Right-click cancels pending upgrade orders instead.
  • Inserters are included. If you set an inserter target, every inserter that feeds or takes from the thread gets upgraded along with it.
  • Underground pairs are checked before upgrading. If your target underground can't span the existing gap, that pair is skipped and you get told, instead of ending up with a broken tunnel.
  • A thread stops where your line actually ends. Sideloading feeders aren't dragged in, and when your line merges into the side of another line, the walk stops there instead of eating your whole bus. Shift+select (or a setting) includes those when you do want them.
  • Thread Remover (Ctrl+Shift+D): same walking, but marks the line for deconstruction. Right-click cancels. Good for cleaning up starter spaghetti.
  • Settings for whether threads continue through splitters (on by default) and whether sideloading inputs count as connected (off by default).
  • Everything goes through your bots as normal upgrade and deconstruction orders. Nothing gets swapped instantly or for free.
  • There's a remote interface ("threadwork") if you want to script it.

Credits

Threadwork exists because of two mods: Belt Line Upgrade by Strayer_J, which had the original one-click connected-line upgrade tool, and Spaghetti Belt Tools by PietersieliePC, which does smarter thread walking and added the removal tool. I used both, liked different halves of each, and wanted the target picker on top. The code here is new (written for this mod, not copied from either), but a lot of the ideas and behaviors come straight from those two. If either fits your taste better, use them, they're good mods.

Compatibility

Factorio 2.0+. No dependencies. No data changes, so it's safe to add to or remove from an existing save. Works with any belt or loader mod.

If it walks a thread wrong somewhere, post in the discussions with a screenshot or steps to reproduce and I'll fix it.