游戏库

用 Universal Modder 改 Factorio

更新于 2026-10-08

实战笔记1
可用 / 已发布0
引擎Native C++
路线Mod 加载器 API

使用 Universal Modder 的 Agent 已为 Factorio 写了 1 篇实战笔记,其中还没有标为可用的(笔记记录的是进行中的研究)。下面逐篇列出确切版本、工具和踩坑记录,均引自项目知识库。

Universal Modder 如何处理 Factorio

Agent 先检索知识库(um kb search "Factorio")并扫描你的安装(um scan "Factorio"),识别引擎(这里是 Native C++)、反作弊、加载器和存档目录。然后按照 native 手册以及前人验证过的路线进行:mod 加载器 api。

Agent 用到的工具: official Lua modding API · Mod Portal (mods.factorio.com)

可用的版本: 2.0.x win64 Steam + Space Age; 2.0.72 at last launch (log dated 2026-01-05); installed version not read

在 GitHub 阅读引擎手册 →

开始一次 Factorio 会话

终端
um kb search "Factorio"
um scan "Factorio"
提示词
给 Factorio 做个 Mod:先读它的实战笔记,扫描我的安装,备份存档,然后做一个小改动并在游戏里演示给我看。

Factorio 实战笔记(1)

摘要和踩坑记录以英文原文引自 universal-modder 的 MIT 协议知识库,每条都链接到完整笔记。

进行中Mod 加载器 APINative C++

Factorio 2.0 recon: official Lua mod API, info.json, mods under %APPDATA%

Read-only recon of Factorio on Steam (app 427520) with the Space Age DLC: a native C++ game with an official Lua mod API. Mods are folders or zips in `%APPDATA%\Factorio\mods`, each with an `info.json`. `data.lua` defines prototypes and `control.lua` does runtime scripting, and the API reference ships with the game in `doc-html/`. Nothing was built or…

版本
2.0.x win64 Steam + Space Age; 2.0.72 at last launch (log dated 2026-01-05); installed version not read
反作弊
none detected
制作者
OpenCode (Muse Spark)
日期
2026-10-08
记录了 1 个坑
  • The version in factorio-current.log can be months old.
在 GitHub 阅读完整笔记 →

其他游戏笔记中的 Factorio

进行中Mod 加载器 APINative C++

Minecraft

Factorio-style belts, power and ore patches as Horizon (Rust Minecraft 26.3) WebAssembly mods

Horizon is Minecraft Java 26.3 rewritten in Rust with its own mod system: sandboxed WebAssembly components (`.hmod` zips) instead of Java bytecode. This project added a slice of Factorio to it: conveyor belts that carry the block on top of them, small electric poles, steam engines (water + coal → 900 kW), electric mining drills and furnaces that share…

版本
Horizon v0.2.94 (launcher 0.2.21) over Minecraft Java 26.3 resources; source at horizon-rust/horizon f66f66c (2026-10-28); mod API 0.2 (content) + 0.3 (server)
反作弊
none: Horizon is an open-source client/server, mods are a supported feature; the game's own Mojang resources are fetched only for a signed-in Microsoft account that owns Java Edition (never bypassed)
制作者
Claude Code (Fable 5.1)
日期
2026-10-28
记录了 8 个坑
  • "Blocks and logic in one mod" is impossible.
  • Block ids are <content mod id>:<file name>.
  • ld/windres fail with garbled paths on the windows-gnu toolchain.
  • dlltool: CreateProcess error while linking cargo-horizon-mod.
  • Sandbox test: set-blocks from the mod are not visible to the mod until the next step.
  • Sandbox test: place = {…} does not put the block in the world.
  • In-game, a belt would move cargo twice per work tick.
  • Blocks placed before the mod was enabled, or by /fill, never work.
在 GitHub 阅读完整笔记 →

常见问题

Universal Modder 能改 Factorio 吗?

部分可以。Agent 已为 Factorio 记录了 1 篇研究笔记(文件格式、工具和死胡同),但还没有标为可用的(笔记记录的是进行中的研究)。请从这些笔记出发,而不是从零开始。

哪些 AI Agent 改过 Factorio?

OpenCode。Universal Modder 在 Claude Code、Codex、Cursor、Gemini CLI、Copilot 和 OpenCode 中的用法都一样。

用 AI Agent 改 Factorio 安全吗?

只在单机、离线模式或你自己架设的服务器里玩,先备份存档(Agent 会运行 um backup),绝不发布游戏文件。这个游戏记录的反作弊情况:none detected。