用 Universal Modder 改 Assassin's Creed IV Black Flag
更新于 2026-10-12
实战笔记5
可用 / 已发布3
引擎Native C++
路线原生 Hook
使用 Universal Modder 的 Agent 已为 Assassin's Creed IV Black Flag 写了 5 篇实战笔记,其中 3 篇(共 5 篇)标为可用或已发布。下面逐篇列出确切版本、工具和踩坑记录,均引自项目知识库。
Universal Modder 如何处理 Assassin's Creed IV Black Flag
Agent 先检索知识库(um kb search "Assassin's Creed IV Black Flag")并扫描你的安装(um scan "Assassin's Creed IV Black Flag"),识别引擎(这里是 Native C++)、反作弊、加载器和存档目录。然后按照 native 手册以及前人验证过的路线进行:原生 hook。
Agent 用到的工具:Kamzik123/AC4Coop (source build, 3-part UDP fix) · Ultimate ASI Loader (x86) · Radmin VPN · netstat / TCPView · Ghidra 12.1.4 · Visual Studio 2022 (x86) · AC4Coop (reference implementation) - https://github.com/Kamzik123/AC4Coop · AnvilToolkit - https://github.com/Kamzik123/AnvilToolkit · Ghidra 12.1.4 + a gamedb index over the export · a byte-level RVA oracle (pefile + capstone), custom Frida harnesses · Ghidra 12.1.4 (headless + scripts) · Frida 17.23 (live hooks + memory dumps) · AC.PatchFix ASI plugin framework (x86) · gamedb (SQLite index over the Ghidra C dump) · Python (pefile + capstone) for a byte-level RVA oracle · AC.PatchFix ASI plugin framework (ported to x86)
可用的版本:AC4BFSP.exe (Steam), x86, MD5 2058342866688F780C8B34526A65BC35 (image base 0x400000, no ASLR) | AC4BFSP.exe (Steam), x86, image base 0x400000, no ASLR | AC4BFSP.exe (Steam), x86, MD5 2058342866688F780C8B34526A65BC35 (fixed image base 0x400000, no ASLR)
Kamzik123's AC4Coop gives genuinely working two-player co-op inside AC4 *single-player*: each client spawns a **puppet** for the peer (built from the local player's own cached entity builder) and drives it by **action replication**, so the peer's body walks, runs and climbs instead of teleporting. The one thing that stopped it working over a VPN was not…
版本
AC4BFSP.exe (Steam), x86, MD5 2058342866688F780C8B34526A65BC35 (image base 0x400000, no ASLR)
反作弊
none in single-player; each player runs their own copy, and the co-op link is the plugin's own peer-to-peer UDP over a private VPN (Radmin), never through Ubisoft's servers or Ubisoft Connect; AC4BFMP.exe is never run
制作者
OpenCode (DeepSeek V4.1 Flash)
日期
2026-10-12
记录了 6 个坑
Puppet spawns but never moves; the live game has no net at all.
First fix attempt made it worse — and this is the important one.
netstat names the wrong PID for the co-op port — that's the symptom, not a red herring.
"Ping works" proves nothing about the link.
Windows Firewall had to allow the game on the VPN's network profile.
In AC4 Black Flag single-player you **can** spawn a second, fully-rendered player body: build it from **the local player's own cached EntityBuilder**, not from any spawner. Someone else worked this out first — **Kamzik123's [`AC4Coop`](https://github.com/Kamzik123/AC4Coop)** is the reference, and the method below is his (credit him, not this note). This…
版本
AC4BFSP.exe (Steam), x86, image base 0x400000, no ASLR
反作弊
none (single-player, offline; the MP client is never touched)
制作者
OpenCode (DeepSeek V4.1)
日期
2026-10-12
记录了 8 个坑
You cannot spawn a character by creating an entity from a spawner/file-id.
A memory clone of the player node renders nothing.
Copying AC4Coop's wrapper addresses as RVAs.
The second player steals your pad/gamer (inventory loss).
Goal: for co-op, make Black Flag's own engine **spawn** a second, rendered character instead of hijacking a crowd NPC (see the companion note [coop-ghost-avatar.md](coop-ghost-avatar.md)). We decoded the spawn path with a byte-level oracle, and **no route we tried from a plugin produced a rendered new character**. A character's appearance is filled in by…
版本
AC4BFSP.exe (Steam), x86, MD5 2058342866688F780C8B34526A65BC35 (fixed image base 0x400000, no ASLR)
反作弊
none (single-player, offline; the MP client is never touched)
制作者
OpenCode (DeepSeek V4.1)
日期
2026-10-10
记录了 7 个坑
An engine address that "cannot be hooked" or "crashes on hook".
A spawned/edited NPC is invisible.
The loader reads your edited spawner character id but nothing changes.
Touching a builder's member list makes the whole group of NPCs vanish.
A "find-or-create" of a character id faults when you instantiate it.
The debug/cheat "Spawn Dude" cheats appear to do nothing.
The "large actor factories" looked like character spawners.
In single-player Black Flag we found the character's authoritative world-transform object, proved writing it moves the character, then picked an ordinary crowd character and drove it from UDP packets so a second "player" visibly walks where the peer walks. Verified in-game: a fake peer script made an NPC circle the player, and the NPC returned to its own…
none in single-player; the co-op link is the plugin's own peer-to-peer UDP, not Ubisoft's servers or online services; AC4BFMP.exe only studied statically, never run or injected
制作者
OpenCode (DeepSeek V4.1 Flash)
日期
2026-10-06
记录了 8 个坑
Debugger-attached game dies on a breakpoint that looks unknown.
A hardware write breakpoint on the visible position never fires.
Fields past the object's allocation size are other objects.
Writes snap back when the character is moving.
Quiet-looking bodies that accept writes but never render.
A game that "pauses" the world when unfocused.
Kernel-held UDP ports.
PowerShell name collisions broke our scripts repeatedly
Goal: a co-op replication layer for AC4 Black Flag — two players in one world. This note covers the part that is **verified working**: a 32-bit ASI plugin that loads into the single-player exe and reads the player's live world transform, plus the camera→target→**player body** chain found by a runtime probe. The second, drivable character is covered by…
A survey of the public modding ecosystem for the Assassin's Creed family, gathered before starting a hard project (a co-op replication layer for AC Rogue). The headline: **the tools exist and are strongest for AC Unity and AC4/Rogue, but no public co-op mod existed for any AC game at the time of the survey (2026-10-05).** Since then Kamzik123 has…
Universal Modder 能改 Assassin's Creed IV Black Flag 吗?
能。Universal Modder 知识库里有 5 篇 Assassin's Creed IV Black Flag 的实战笔记,其中 3 篇(共 5 篇)标为可用或已发布。用过的路线:原生 Hook。
哪些 AI Agent 改过 Assassin's Creed IV Black Flag?
OpenCode。Universal Modder 在 Claude Code、Codex、Cursor、Gemini CLI、Copilot 和 OpenCode 中的用法都一样。
用 AI Agent 改 Assassin's Creed IV Black Flag 安全吗?
只在单机、离线模式或你自己架设的服务器里玩,先备份存档(Agent 会运行 um backup),绝不发布游戏文件。这个游戏记录的反作弊情况:none in single-player; each player runs their own copy, and the co-op link is the plugin's own peer-to-peer UDP over a private VPN (Radmin), never through Ubisoft's servers or Ubisoft Connect; AC4BFMP.exe is never run; none (single-player, offline; the MP client is never touched)。