Nanobots: Early Bots 3.0


Personal construction nanobots with quality support - Enhanced Performance Edition Personal nanobots for construction, repair, and turret ammo delivery - no roboports needed! Features quality support, combat automation, statistics GUI, and megabase optimization. Fully compatible with Factorio 2.0 and Space Age.

Content
13 days ago
2.0 - 2.1
6.43K
Logistic network

g Log spam: "Area for Position not found" from stdlib2 (scales per player)

a month ago

Hi there!

I'm running a dedicated Factorio 2.0 server (headless, Linux) with a bunch of mods, and I've run into an issue that seems to be caused by Nanobots3.

The problem:
The server log is being spammed with the following warning, appearing every ~2 seconds per online player:

Script @stdlib2/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded

Mod versions:
- Nanobots3: 5.8.9
- stdlib2: 2.0.1

Server log example:
Sep 13 01:23:56 nsk-1-vm-n89e factorio[217804]: 2026-09-13 01:23:56 [JOIN] DFG. joined the game
Sep 13 01:23:58 nsk-1-vm-n89e factorio[217804]: 103.033 Script @stdlib2/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 13 01:24:00 nsk-1-vm-n89e factorio[217804]: 105.033 Script @stdlib2/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 13 01:24:06 nsk-1-vm-n89e factorio[217804]: 111.033 Script @stdlib2/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 13 01:24:08 nsk-1-vm-n89e factorio[217804]: 113.034 Script @stdlib2/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded

What I've noticed:
- The warning fires roughly every 2 seconds per player. With 1 player online I get ~5 warnings in 10 seconds; with 2 players online — ~10 warnings in the same timeframe.
- Disabling Nanobots3 makes the warning disappear completely.
- The server itself keeps running fine — it's just the log spam that's the problem (makes it hard to read actual important messages).

Environment:
- Factorio 2.0 (Space Age), headless Linux server
- Ubuntu 26.04
- ~70 mods installed (full mod-list available if needed)

I'm not sure if this is a Nanobots3 issue or a stdlib2 compatibility issue with 2.0, so I'm reporting it here first. Would appreciate any advice on whether there's a fix or a workaround on my end.

Thanks for the mod and your work on it!

a month ago

Hi! Thanks for the detailed report — the per-player timing helped a lot.

I tracked this down to Nanobots3's use of stdlib2's Position.expand_to_area(). In a couple of runtime code paths, the corresponding Area module wasn't loaded before Position tried to access it through package.loaded, which caused the repeated warning:

WARNING: Area for Position not found in package.loaded

I've fixed this in Nanobots3 5.8.10 for Factorio 2.0 by making sure the required Area module is loaded in those code paths.

5.8.10 is now available on the Mod Portal.

If you can, please update the server to 5.8.10 and let me know whether the log spam is gone on your headless setup.

Thanks again for reporting it!

a month ago

Hi Mikdad!

Thanks for the quick response and for looking into this — I really appreciate it.

I updated to Nanobots3 5.8.10, but unfortunately the warning is still appearing on my server. The behavior is exactly the same as before (every ~2 seconds per player).

I did some additional testing to help narrow down the issue:

Test 1: Fresh world with only Nanobots3 + stdlib2
- Created a brand new map with no other mods
- The warning appears ONLY when the nano emitter is selected in the weapon slot AND the player character is moving/changing position
- If the player stands still — no warnings
- If a different weapon/tool is selected — no warnings even when moving

Test 2: Main save with all mods (~70 mods)
- The warning appears constantly as soon as the nano emitter is selected in the weapon slot
- It doesn't matter if the player is moving or standing still
- The spam continues until a different weapon/tool is selected

I'm attaching the server log below (slightly trimmed to keep only the relevant parts).

Server log (Nanobots3 5.8.10):

0.232 Loading mod core 0.0.0 (data.lua)
0.248 Loading mod base 2.0.77 (data.lua)
0.486 Loading mod belt-visualizer 2.0.2 (data.lua)
0.501 Loading mod QueueToFrontLimited 2.0.3 (data.lua)
0.517 Loading mod VehicleSnap 2.0.3 (data.lua)
0.531 Loading mod AsphaltRoadsPatched 1.4.8 (data.lua)
0.568 Loading mod AutoDeconstruct 1.0.14 (data.lua)
0.585 Loading mod better-belt-balancer 0.2.2 (data.lua)
0.740 Loading mod blueprint-sandboxes 3.2.2 (data.lua)
0.759 Loading mod bobinserters 2.0.3 (data.lua)
0.776 Loading mod bullet-trails 0.7.1 (data.lua)
0.796 Loading mod car-finder 2.0.0 (data.lua)
0.814 Loading mod combat-mechanics-overhaul 0.7.2 (data.lua)
0.833 Loading mod DiscoScience 2.0.1 (data.lua)
0.850 Loading mod elevated-rails 2.0.77 (data.lua)
0.886 Loading mod even-distribution 2.0.2 (data.lua)
0.904 Loading mod flib 0.16.5 (data.lua)
0.924 Loading mod FluidWagonColorMask 2.0.0 (data.lua)
0.942 Loading mod helmod 2.2.14 (data.lua)
1.081 Loading mod informatron 0.4.0 (data.lua)
1.127 Loading mod LargerLamps-2_0 0.2.3 (data.lua)
1.165 Loading mod MaxRateCalculator 200.0.53 (data.lua)
1.203 Loading mod mining-patch-planner 1.7.19 (data.lua)
1.244 Loading mod nixie-tubes 2.0.9 (data.lua)
1.294 Loading mod qol_research 3.4.2 (data.lua)
1.336 Loading mod quality 2.0.77 (data.lua)
1.386 Loading mod Repair_Turret 2.0.4 (data.lua)
1.432 Loading mod RPGsystem 2.0.8 (data.lua)
1.476 Loading mod rso-mod 7.0.26 (data.lua)
1.514 Loading mod SpidertronEnhancements 1.10.8 (data.lua)
1.553 Loading mod textplates 0.7.2 (data.lua)
1.621 Loading mod vacuum-cleaner 2.1.2 (data.lua)
1.667 Loading mod Automatic_Train_Painter 2.0.1 (data.lua)
1.712 Loading mod BlueprintTools 1.5.0 (data.lua)
1.756 Loading mod circuit_visualizer 2.0.2 (data.lua)
1.798 Loading mod Lighted-Poles-Plus 2.0.4 (data.lua)
1.846 Loading mod Nanobots3 5.8.10 (data.lua)
1.893 Loading mod PipeVisualizer-Updated 2.4.4 (data.lua)
1.936 Loading mod RateCalculator 3.3.8 (data.lua)
1.979 Loading mod space-age 2.0.77 (data.lua)
2.379 Loading mod StatsGui 1.6.1 (data.lua)
2.443 Loading mod WideChests 6.2.4 (data.lua)
2.569 Loading mod AbandonedRuins_updated_fork 1.5.7 (data.lua)
2.630 Loading mod Advanced-Electric-Revamped-v16 0.7.7 (data.lua)
2.693 Loading mod BulkRailLoader 2.0.2 (data.lua)
2.760 Loading mod deadlock-beltboxes-loaders 2.6.0 (data.lua)
2.823 Loading mod Picks-Inserter 2.1.4 (data.lua)
2.884 Loading mod SchallEndgameEvolution 2.0.1 (data.lua)
2.951 Loading mod science-pack-glow-reborn 1.0.4 (data.lua)
3.011 Loading mod Waterfill_v17 2.0.5 (data.lua)
3.073 Loading mod WideChestsLogistic 3.1.1 (data.lua)
3.134 Loading mod DeadlockStackingForVanilla 2.0.3 (data.lua)
3.203 Loading mod ruin-maker_updated_fork 0.1.8 (data.lua)
3.268 Loading mod base 2.0.77 (data-updates.lua)
3.331 Loading mod DarkNight 2.0.0 (data-updates.lua)
3.396 Loading mod AsphaltRoadsPatched 1.4.8 (data-updates.lua)
3.461 Loading mod blueprint-sandboxes 3.2.2 (data-updates.lua)
3.532 Loading mod bobinserters 2.0.3 (data-updates.lua)
3.593 Loading mod bullet-trails 0.7.1 (data-updates.lua)
3.655 Loading mod inventory-repair 20.0.3 (data-updates.lua)
3.713 Loading mod nixie-tubes 2.0.9 (data-updates.lua)
3.774 Loading mod quality 2.0.77 (data-updates.lua)
3.876 Loading mod RPGsystem 2.0.8 (data-updates.lua)
3.960 Loading mod SpidertronEnhancements 1.10.8 (data-updates.lua)
4.042 Loading mod textplates 0.7.2 (data-updates.lua)
4.112 Loading mod Nanobots3 5.8.10 (data-updates.lua)
4.177 Loading mod space-age 2.0.77 (data-updates.lua)
4.243 Loading mod Belt_Glow 2.2.2 (data-updates.lua)
4.309 Loading mod deadlock-beltboxes-loaders 2.6.0 (data-updates.lua)
4.375 Loading mod SchallEndgameEvolution 2.0.1 (data-updates.lua)
4.440 Loading mod squeak-through-2 0.1.5 (data-final-fixes.lua)
4.514 Loading mod vehicle-corpses 0.1.4 (data-final-fixes.lua)
4.580 Loading mod AsphaltRoadsPatched 1.4.8 (data-final-fixes.lua)
4.650 Loading mod better-belt-balancer 0.2.2 (data-final-fixes.lua)
4.813 Loading mod blueprint-sandboxes 3.2.2 (data-final-fixes.lua)
4.889 Loading mod bobinserters 2.0.3 (data-final-fixes.lua)
4.966 Loading mod combat-mechanics-overhaul 0.7.2 (data-final-fixes.lua)
5.038 Loading mod FluidWagonColorMask 2.0.0 (data-final-fixes.lua)
5.105 Loading mod LargerLamps-2_0 0.2.3 (data-final-fixes.lua)
5.171 Loading mod nixie-tubes 2.0.9 (data-final-fixes.lua)
5.240 Loading mod no-wall-repair 0.0.5 (data-final-fixes.lua)
5.309 Loading mod rso-mod 7.0.26 (data-final-fixes.lua)
5.384 Loading mod show-max-underground-distance 0.1.0 (data-final-fixes.lua)
5.453 Loading mod SpidertronEnhancements 1.10.8 (data-final-fixes.lua)
5.526 Loading mod tree_collision 2.0.0 (data-final-fixes.lua)
5.594 Loading mod Automatic_Train_Painter 2.0.1 (data-final-fixes.lua)
5.663 Loading mod BottleneckLite 1.3.4 (data-final-fixes.lua)
5.736 Loading mod Advanced-Electric-Revamped-v16 0.7.7 (data-final-fixes.lua)
5.807 Loading mod Belt_Glow 2.2.2 (data-final-fixes.lua)
5.881 Loading mod deadlock-beltboxes-loaders 2.6.0 (data-final-fixes.lua)
5.959 Loading mod DeadlockStackingForVanilla 2.0.3 (data-final-fixes.lua)
Sep 14 02:22:38 nsk-1-vm-n89e factorio[251039]:    7.672 Factorio initialised
Sep 14 02:22:39 nsk-1-vm-n89e factorio[251039]:    9.095 Loading script.dat: 4948796 bytes.
Sep 14 02:23:48 nsk-1-vm-n89e factorio[251039]: 2026-09-14 02:23:48 [JOIN] DFG. joined the game
Sep 14 02:23:48 nsk-1-vm-n89e factorio[251039]:   77.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:23:50 nsk-1-vm-n89e factorio[251039]:   79.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:23:52 nsk-1-vm-n89e factorio[251039]:   81.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:23:54 nsk-1-vm-n89e factorio[251039]:   83.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:23:56 nsk-1-vm-n89e factorio[251039]:   85.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:23:58 nsk-1-vm-n89e factorio[251039]:   87.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:00 nsk-1-vm-n89e factorio[251039]:   89.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:02 nsk-1-vm-n89e factorio[251039]:   91.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:04 nsk-1-vm-n89e factorio[251039]:   93.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:06 nsk-1-vm-n89e factorio[251039]:   95.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:08 nsk-1-vm-n89e factorio[251039]:   97.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:10 nsk-1-vm-n89e factorio[251039]:   99.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:12 nsk-1-vm-n89e factorio[251039]:  101.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:14 nsk-1-vm-n89e factorio[251039]:  103.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:16 nsk-1-vm-n89e factorio[251039]:  105.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded
Sep 14 02:24:18 nsk-1-vm-n89e factorio[251039]:  107.323 Script @__stdlib2__/stdlib/area/position.lua:589: WARNING: Area for Position not found in package.loaded

Let me know if you need any additional information or if there's anything else I can test on my end — happy to help however I can.

Thanks again for your work on this mod!

Best regards

15 days ago

Hi DFG!

Thank you for the additional testing — especially the clean-world test. The detail about the warning only appearing when the Nano Emitter is selected was exactly what I needed to track this down.

I found why the 5.8.10 fix wasn't enough. The warning was ultimately being triggered by stdlib2's Position.expand_to_area() implementation. Simply loading the Area module explicitly, as I did in 5.8.10, didn't resolve the way that function looks it up internally.

I've now removed Nanobots3's runtime dependency on Position.expand_to_area() for these operations and replaced it with direct Factorio bounding-box construction.

Nanobots3 5.8.11 for Factorio 2.0 is now available on the Mod Portal.

When you have a chance, could you please test 5.8.11 in the same two scenarios?

fresh world with only Nanobots3 + stdlib2, Nano Emitter selected while moving;
your main ~70-mod server with the Nano Emitter selected.

Hopefully this should eliminate the warning completely this time. If it still appears, please let me know — your testing has been extremely helpful in narrowing this down.

Thanks again!

New response