Creates and controls AI character entities directly via LuaControl API. Autonomous character controller with built-in behavior engine. AI characters can patrol-collect resources, build ghosts, auto-craft items, follow the player in combat mode, and execute one-shot movement or crafting commands - all without external dependencies.
Providing the player with new tools or adjusting the game interface, without fundamentally changing gameplay.
Version: 0.1.2
Date: 2026-07-16
Features:
- GUI: title bar with close button (frame_title / close_button styles, Informatron-like)
- GUI: drag-to-move frame via title bar drag_target
- GUI: multi-select checkboxes in character list, Select All / Deselect All buttons
- GUI: multi-character selection: checkbox → "选择选中" → send commands to all selected
- GUI: "选择选中 / 删除选中 / 全选 / 取消全选" buttons with locale support
- GUI: on_gui_checked_state_changed event for checkbox state tracking
- i18n: new locale keys for select-selected, delete-selected, select-all, deselect-all (zh-CN + en)
Changes:
- Title font enlarged from default-bold to heading
- Unified ✓ suffix for both single-active and multi-selected characters
- Close button reduced to close_button style (20×20)
Bugfixes:
- Fixed GUI error: duplicate chat_ai_player_body element after /reload
- Fixed LuaStyle error: horizontally_stretch → horizontally_stretchable
Version: 0.1.1
Date: 2026-07-14
Features:
- English UI support via Factorio locale system (auto-adapts to player language)
- Minimap chart tags showing AI character positions with robot icon and name
- On-load callback preservation: GUI buttons now work after loading a save
- /reload console command for hot-reloading mod scripts
- English keyword commands: mine, spawn, stop, status, follow, build patrol, goto, craft
- English short resource names: iron, copper, coal, stone, uranium
Changes:
- All GUI labels, console messages, and behavior notifications now localized
- shooting_state corrected to use defines.shooting enum format
- Weapon range check uses AMMO_RANGE distance instead of can_reach_entity
Bugfixes:
- Fixed AI character not shooting despite having weapon and ammo
- Fixed GUI buttons unresponsive after save load
- Fixed count must be positive error in combat ammo refill
- Fixed "Unknown key" errors: all locale references must use {"text.key"} format
- Fixed "LuaPlayer doesn't contain key language" crash
- Fixed "attempt to concatenate a table value" in GUI append_output and refresh_chat
- Fixed chat history showing locale key names instead of readable text
- Fixed double-print on depot assign (Actions.print + execute_command both printed)
- Fixed hardcoded Chinese text in tooltips, console messages, GUI labels
Version: 0.1.0
Date: 2026-07-13
Features:
- AI character lifecycle: spawn, associate to player, respawn on death
- Patrol-collect behavior: scan resources, move, mine, return to depot
- Build-patrol behavior: scan ghosts/deconstruction, fetch materials, build/remove
- Auto-craft behavior: ghost-driven material calculation and crafting
- Combat-follow behavior: follow player, detect enemies, shoot, refill ammo
- Custom A* pathfinding with collision avoidance and stuck retry
- In-game GUI panel with character management and command input
- Dual-mode command parsing: keyword matching + optional LLM fallback
- Zone-restricted depot system for sorted ore deposits
- On-demand crafting command with material check
Changes:
- Ammo threshold lowered from 25% to 10% for combat behavior