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 Unnecessary pcall around bad .valid check

a month ago

if not ghost.valid and not ghost.to_be_upgraded() will die on an invalid ghost. Nanotbots2-continued fixes this with if not (ghost and ghost.valid and ghost.to_be_upgraded()), which would save you a pcall().

a month ago

Thanks for pointing this out!

I checked both currently maintained branches, and you were right about the unnecessary pcall. There were still some older defensive pcall wrappers around to_be_upgraded() / to_be_deconstructed() even after the entity had already passed a validity check.

I've cleaned those up in both branches while leaving the other defensive calls in place where they're still appropriate.

The fixes are now available on the Mod Portal:

Nanobots3 5.8.12 for Factorio 2.0
Nanobots3 5.9.2 for Factorio 2.1

Thanks for catching this and taking the time to report it!

New response