Autonomous Player - AI Factory Engineer

by mrhints

WIP NOT READY YET - An AI that plays Factorio

Content
48 minutes ago
2.0
18
Owner:
mrhints
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
23 hours ago
Latest Version:
0.1.18 (48 minutes ago)
Factorio version:
2.0
Downloaded by:
18 users

Autonomous Player - AI Factory Engineer

An AI that plays Factorio for you. From a fresh world to launching a rocket, the AI mines resources, builds factories, researches technology, manages power, defends against biters, and scales production — all without blueprints. Every game produces different layouts based on terrain and resources.

Toggle anytime:

CTRL+SHIFT+A — instant switch between manual and AI mode
/ai on or /ai off — chat commands
/ai status — see what the AI is doing
/ai debug — overlay showing goals, tasks, power, threats
How it works: The AI uses a Goal → Planner → Executor architecture. It analyses your factory, decides what to work on next, breaks it into tasks, and executes them one at a time. When you take control, it stops immediately. When you hand control back, it re-analyses the factory and continues from where things are — it never assumes it built everything itself.

Features:

Starts from a completely new save, no setup required
Mines, smelts, crafts, builds, belts, inserters, power, defence
Procedural factory layouts — no fixed blueprints
Responds to shortages, bottlenecks, power failures, biter attacks
Repairs damaged structures, upgrades old builds
Manages research and science production
Expands to new resource patches when current ones run low
Builds trains when appropriate
Works with Space Age
Designed to feel like an experienced human player: Walks between locations, clears trees, places miners efficiently, leaves walking space, expands naturally. Not a perfect speedrun — a factory engineer that adapts to any map.

Architecture is modular and extensible: Built with clean interfaces (IGoalGenerator, IPlanner, IExecutor) so the planning engine can be swapped for an external AI model in the future — local LLM, cloud AI, or reinforcement learning — without rewriting the rest of the mod.

Debug panel shows: Current goal, current task, power %, iron/copper per science per minute, threat level, inventory, and reasoning like "Need more iron" or "Power low."