Nanobots: Early Bots 3.0


Personal construction nanobots: build, repair, upgrade, clear trees and rocks, and supply turret ammunition without a roboport network. Features quality support, vehicle and cargo-wagon materials, construction around your character during remote view, configurable work modes, combat automation, and statistics. Space Age compatible.

Content
a day ago
2.0 - 2.1
9.06K
Logistic network

b Error placing modules with 2.1.x

a month 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

a month 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!

This thread has been locked.