Robot Replacer

by Peppe

Utility mod to help replace/upgrade bots within a network. Bots in the replacer provider chest are released to the network when a bot of the same type, but different name is found in a roboport. The bots that do not match the provider are removed from the roboport and placed in the logistics storage network. Should work with all modded bots and roboports. *** Megabase warning: Chest is Calculation heavy when any items are in it. Only put bots in it and keep empty to idle efficiently. ***

2 years ago
0.14 - 1.1
32.2K
Owner:
Peppe
Source:
N/A
Homepage:
https://www.reddit.com/r/factorio/com...
License:
MIT
Created:
8 years ago
Latest Version:
1.1.2 (2 years ago)
Factorio version:
0.14 - 1.1
Downloaded by:
32.2K users

No use in vanilla, but if a mod adds an upgraded construction or logistics bot it can be a pain to upgrade them once they are in a roboport.

Example process:
Network contains dozens of roboports with construction bot MK1 in them.
You place construction bot mk2 in the replacer provider chest in the network with storage chests/space available.
The chest checks each roboport and places mk1 bots into storage and release mk2 bots in the same quantity as those moved to storage.

Example Gif

The chest can do the reverse if you wish to downgrade. Whatever is in the chest becomes the target bot of that type (construction or logistics) to populate the roboports with. It will keep the same population of bots just seek to standardize them to the type in the replacer provider chest.

Only searches/uses the network the provider chest is in for both storage and replacement.
1.1.2 Fixup code to move mod to requestor chest
1.1.1 Updated to requestor chest
17.0 Update to .17 and update graphics to match base game update (chest is now pink)
16.0 Initial Version for .16
15.0 Version Update
14.3 Fix corner case upgrade issue (stack size 0) when bot is removed same tick as upgrade.