Nanobots: Early Bots 3.0


Personal construction nanobots with smart automation, auto-defense, and quality support! Build, repair, and defend your factory with portable nanobots — no roboport network required! Features automated turret ammo delivery, quality-aware automation, combat modes, statistics, and performance optimizations. Factorio 2.1 adds quick Nano/Thermite switching and smarter ammo warnings. Supports Factorio 2.0 (5.8.x) and 2.1 (5.9.x), including Space Age.

Content
21 hours ago
2.0 - 2.1
7.11K
Logistic network

b Error placing modules with 2.1.x

11 days ago

There was recently an API change for a function called ItemPrototype:fuel_category -> ItemPrototype:fuel_categories. An error to this effect appears whenever a building in range has module ghosts.

Message:

LuaItemPrototype doesn't contain key fuel_category

Just naively, I made this patch and tried it. No more issues.

--- a/scripts/module_requests.lua
+++ b/scripts/module_requests.lua
@@ -759,1 +759,1 @@
- if item_proto.fuel_category and has_burner then
+ if item_proto.fuel_categories and has_burner then

9 days ago

Thanks for reporting this and testing the replacement!

I checked both maintained branches. Your change fixes this error on Factorio 2.1.20 and newer. The code only checks whether the item is a fuel, so no further changes to the fuel insertion logic were needed.

The fix is now available in Nanobots3 5.9.3, with compatibility preserved for earlier Factorio 2.1 versions that still use fuel_category.

The Factorio 2.0 branch keeps fuel_category, since the API change only applies to Factorio 2.1.20 and newer.

Thanks again for catching this!

New response