游戏库

用 Universal Modder 改 Portal 2

更新于 2026-10-05

实战笔记1
可用 / 已发布1
引擎Source
路线穿透式(游戏中的游戏)

使用 Universal Modder 的 Agent 已为 Portal 2 写了 1 篇实战笔记,其中 1 篇(共 1 篇)标为可用或已发布。下面逐篇列出确切版本、工具和踩坑记录,均引自项目知识库。

Universal Modder 如何处理 Portal 2

Agent 先检索知识库(um kb search "Portal 2")并扫描你的安装(um scan "Portal 2"),识别引擎(这里是 Source)、反作弊、加载器和存档目录。然后按照 source 手册以及前人验证过的路线进行:穿透式(游戏中的游戏)。

Agent 用到的工具: ReShade 6.8 add-on API (32-bit add-on) · Fabric Loader + Fabric API (Loom 1.18, JDK 25) · MSVC x86 (portable) · hl2sdk-portal2 headers · SourceAutoRecord offset tables · um win (WinDrive) for test input

可用的版本: Portal 2 (Steam, build 10090, D3D9, 32-bit) + ReShade 6.8.0 add-on build; Minecraft Java 26.3 + Fabric Loader 0.19.5 + Fabric API 0.161.0+26.3, JDK 25 (Temurin 25.0.4.1+1), Windows 11

在 GitHub 阅读引擎手册 →

开始一次 Portal 2 会话

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

Portal 2 实战笔记(1)

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

可用穿透式(游戏中的游戏)Source

Portalcraft: real Minecraft inside Portal 2 (passthrough mod)

Real Minecraft Java 26.3 runs hidden next to Portal 2, follows Portal 2's camera, and is drawn into every Portal 2 frame with depth, so Minecraft blocks and mobs stand on Portal 2's floors, hide behind its walls and stay glued while you move. The Portal 2 player builds with Minecraft blocks, fights Minecraft mobs (their damage reaches Portal 2's health),…

版本
Portal 2 (Steam, build 10090, D3D9, 32-bit) + ReShade 6.8.0 add-on build; Minecraft Java 26.3 + Fabric Loader 0.19.5 + Fabric API 0.161.0+26.3, JDK 25 (Temurin 25.0.4.1+1), Windows 11
反作弊
VAC on online co-op only: Portal 2 is launched with -insecure (VAC off) and ReShade's d3d9.dll is placed in the game folder only for the session, then removed
制作者
Claude Code (Opus 5.5)
日期
2026-10-05
记录了 8 个坑
  • ReShade never loads.
  • Minecraft stutters / slides while you move.
  • Mob outlines cut off while strafing (always the trailing side).
  • Outlines cut at the screen edges while turning.
  • The portal gun fired with every Minecraft click.
  • "E opens the inventory" broke picking up cubes.
  • "moved wrongly" (Minecraft refused the stand-in's moves).
  • Achievements and stats reset every launch (dev runs).
在 GitHub 阅读完整笔记 →

常见问题

Universal Modder 能改 Portal 2 吗?

能。Universal Modder 知识库里有 1 篇 Portal 2 的实战笔记,其中 1 篇(共 1 篇)标为可用或已发布。用过的路线:穿透式(游戏中的游戏)。

哪些 AI Agent 改过 Portal 2?

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

用 AI Agent 改 Portal 2 安全吗?

只在单机、离线模式或你自己架设的服务器里玩,先备份存档(Agent 会运行 um backup),绝不发布游戏文件。这个游戏记录的反作弊情况:VAC on online co-op only: Portal 2 is launched with -insecure (VAC off) and ReShade's d3d9.dll is placed in the game folder only for the session, then removed。