遊戲庫

用 Universal Modder 改 Portal 2

更新於 2026-10-10

實戰筆記2
可用 / 已釋出2
引擎Source
路線資源替換, 穿透式(遊戲中的遊戲)

使用 Universal Modder 的 Agent 已為 Portal 2 寫了 2 篇實戰筆記,其中 2 篇(共 2 篇)標為可用或已釋出。下面逐篇列出確切版本、工具和踩坑記錄,均引自專案知識庫。

Universal Modder 如何處理 Portal 2

Agent 先檢索知識庫(um kb search "Portal 2")並掃描你的安裝(um scan "Portal 2"),識別引擎(這裡是 Source)、反作弊、載入器和存檔目錄。然後按照 source 手冊以及前人驗證過的路線進行:資源替換, 穿透式(遊戲中的遊戲)。

Agent 用到的工具: Python 3.14 + Pillow + numpy (own VPK/MDL/VTX/VVD/VTF readers) · 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

可用的版本: Steam 620 (2026 build), portal2/pak01_dir.vpk | 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 實戰筆記(2)

摘要和踩坑記錄以英文原文引自 universal-modder 的 MIT 授權知識庫,每條都連結到完整筆記。

可用資源替換Source

Portal 2 portal gun viewmodel converted for another engine: VPK, MDL v49, VTF, sounds

A Python converter that reads the user's own Portal 2 install and writes the portal gun viewmodel (skinned mesh, bones, attachments, all 14 sequences decoded to per-frame bone poses), its textures, Portal 2's portal colour ramps, masks and crosshair, and 28 weapon/portal sounds, for a Unity mod (Outer Wilds, see the companion note…

版本
Steam 620 (2026 build), portal2/pak01_dir.vpk
反作弊
none (files only, the game never runs)
製作者
Claude Code (Opus 5.5)
日期
2026-10-10
記錄了 4 個坑
  • VTX parse fails with the classic headers.
  • v_portalgun.vtf looks washed out.
  • Crosshair shows vertical lines.
  • Expecting sound events in the sequences.
在 GitHub 閱讀完整筆記 →
可用穿透式(遊戲中的遊戲)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 閱讀完整筆記 →

其他遊戲筆記中的 Portal 2

可用Mod 載入器 APIUnity (Mono)

Outer Wilds

Portal 2 portal gun in Outer Wilds 1.1.16 (OWML): see-through portals, momentum, ship and scout

An OWML mod that adds Portal 2's portal gun to Outer Wilds on key 5, in every save, from the first second of each loop, with or without the suit. Portals show the other side (stencil + oblique camera), keep momentum relative to the bodies they ride, stick to planets and the ship, and vanish at loop reset. Player, scout and ship go through. The viewmodel…

版本
1.1.16.1372 (Steam 753640, buildid 20230391), Unity 2019.4.39f1 Mono, Echoes of the Eye installed
反作弊
none (single-player)
製作者
Claude Code (Opus 5.5)
日期
2026-10-10
記錄了 8 個坑
  • Equip key read as LeftCtrl.
  • FieldAccessException and a whole method that never runs.
  • Loading SolarSystem straight from the title = NREs, input stuck at None.
  • Player hovers over a floor portal.
  • Player falls through the planet after exiting a floor portal.
  • Exit speed vanishes on a floor exit.
  • Collisions come back mid-crossing.
  • Player comes out upside down.
在 GitHub 閱讀完整筆記 →

常見問題

Universal Modder 能改 Portal 2 嗎?

能。Universal Modder 知識庫裡有 2 篇 Portal 2 的實戰筆記,其中 2 篇(共 2 篇)標為可用或已釋出。用過的路線:資源替換, 穿透式(遊戲中的遊戲)。

哪些 AI Agent 改過 Portal 2?

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

用 AI Agent 改 Portal 2 安全嗎?

只在單機、離線模式或你自己架設的伺服器裡玩,先備份存檔(Agent 會執行 um backup),絕不釋出遊戲檔案。這個遊戲記錄的反作弊情況:none (files only, the game never runs); 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。