这是异星工厂的一个mod,不过其已经停止维护了,帮我将它更新到支持最新的测试版2.1.9,使用git...

Created on: July 10, 2026

Answered using GPT-5.6 Thinking by Chat01

Question

TeleportFavorites_0.0.99.zip

这是异星工厂的一个mod,不过其已经停止维护了,帮我将它更新到支持最新的测试版2.1.9,使用git diff补丁方式给我最后更新补丁

Thought

undefined

Thought

undefined

Thought

Preparing final patch and summary for user

I need to finalize and ensure everything’s correct before sending the patch and an updated zip. The user asked for that git diff patch, so I'll provide the link, a summary, and list validations. I'll mention the official 2.1.9 docs, notable changes, and explain compatibility, including runtime testing limitations.

Providing concise summary and patch validation

I don’t need to mention download policy but should clarify that proper game testing didn’t happen due to sandbox limitations. I’ll offer minimal details and citations—such as the version numbers and updates from the official 2.1.9 API documentation. I’ll share the patch tests with a concise list and avoid being too verbose.

Thought for 6m 49s

Answer

已完成更新,补丁目标为 Factorio 2.1.9 实验版。官方当前 API 文档版本为 2.1.9;Mod 的 factorio_version 只能声明一个大版本,因此必须从 2.0 改为 2.1

下载 Git Diff 补丁:TeleportFavorites 0.1.0 / Factorio 2.1.9

补丁内容

  • Mod 版本由 0.0.99 更新为 0.1.0
  • factorio_version 更新为 2.1
  • 最低依赖更新为 base >= 2.1.9
  • 针对 Factorio 2.1 中 LuaPlayer.teleport() 不再自动退出远程视图的变化,增加显式、安全的 exit_remote_view() 处理。(Official Factorio Wiki)
  • 保留右键地图打开标签编辑器的逻辑;2.1 中与地图拖拽冲突的自定义输入改为“未发生拖拽时在鼠标释放后触发一次”,现有 mouse-button-2 绑定仍是合法名称。(Official Factorio Wiki)
  • 更新 README 和 changelog

应用方法

在解压后的 Mod 根目录运行:

bash
git apply --check TeleportFavorites_0.1.0-factorio-2.1.9.patch git apply TeleportFavorites_0.1.0-factorio-2.1.9.patch

应用后用于打包的目录或 ZIP 文件名建议改为:

text
TeleportFavorites_0.1.0 TeleportFavorites_0.1.0.zip

已完成以下验证:

  • git apply --check 通过
  • 补丁应用后文件与修改源树完全一致
  • 全部 Lua 文件语法加载检查通过
  • 2.1 已移除 API 的静态扫描通过
  • 自定义快捷键名称检查通过
  • 模拟测试覆盖普通传送、远程视图传送、载具传送和远程视图退出异常,均通过
  • 补丁 SHA-256:23284c82c0a6d98ad7421591462d6869b1a4b6093f2561183e904be23051c8b9

当前环境无法实际启动 Factorio 2.1.9 客户端或服务器,因此尚未进行真实存档加载、GUI 操作及多人联机运行测试。

Share this Q&A