Chat AI Player - Autonomous Character Controller

by sumfeng

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.

Utilities
a month ago
2.1
64
Character Cheats

b Can't goto negative coordinates

a month ago
(updated a month ago)

It seems that the "goto" command doesn't work with negative coordinates. For example, "!ai goto -20,15" will cause the ai to go to (20,15), and "!ai goto 20,-15" throws the following parse error in Chinese: "缺少必要参数: x (X 坐标)".

a month ago

Version: 0.1.3
Date: 2026-08-13
Features:
- Pathfinding: replaced A* with async request_path + waypoint following
- Pathfinding: stuck detection (30-tick progress check) with teleport fallback
- Pathfinding: NO_PATH / unreachable targets now teleport 10-20 tiles toward goal
- Pathfinding: long waypoint lists simplified to max 50 waypoints
- Build-patrol: single-target loop (one ghost/deconstruct at a time)
- Build-patrol: multi-worker zone division to reduce path overlap
- Build-patrol: skipped-target tracking with auto-clear to avoid scan deadlock
- Build-patrol: active ghost.revive() building and mining_state deconstruction
- Build-patrol: move_deposit phase sorts deconstructed items into matching chests
- Patrol-collect: skip ores covered by buildings; blocked-resource quick timeout
- Combat-follow: zigzag movement to reduce hit chance
- Combat: auto-equip weapon from inventory; ammo compatibility check
- Combat: corpse selection prefers the corpse that still has items
- Depot: box classification storage with auto-sort and mark-depot tags
- Stop-crafting command (stop_auto_craft intent)
- i18n: new scripts/i18n.lua async translation module (on_string_translated)
- GUI: quick-command buttons now submit localized command text (zh-CN + en)
Changes:
- GUI button layout updated
- walking_state only set on state change to avoid per-tick animation resets
Bugfixes:
- Fixed malformed locale placeholders (.0f1/2/3) causing
literal ".0f" text in console and chat history
- Fixed English keyword ordering so "Stop crafting" / "Clear mark" match the
correct intent instead of generic stop/clear
- Fixed GUI quick-command buttons inserting hardcoded Chinese text in English mode

New response