游戏库

用 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)

在 GitHub 阅读引擎手册 →

开始一次 Assassin's Creed IV Black Flag 会话

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

Assassin's Creed IV Black Flag 实战笔记(5)

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

可用原生 HookNative C++

Working two-player co-op in AC4 Black Flag: spawn a peer puppet, and bind UDP in the live game

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.
  • Radmin VPN does carry the co-op UDP.
在 GitHub 阅读完整笔记 →
可用原生 HookNative C++

Spawning a real second player in AC4 Black Flag (the working route, and why the obvious ones fail)

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).
  • RowSelector::Duplicate null-derefs outside DuplicationManager::Begin/End.
  • The builder is often released.
  • +0xAC == 0 on a clone is not "missing graphic".
  • A spawned body that "glides" has no walk children.
在 GitHub 阅读完整笔记 →
进行中原生 HookNative C++

Spawning a new character in AC4 Black Flag single-player: dead ends and the AnvilNext spawn system

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.
在 GitHub 阅读完整笔记 →
可用原生 HookNative C++

A visible, driven second character in AC4 single-player (co-op ghost avatar)

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…

版本
AC4BFSP.exe (Steam), x86, MD5 2058342866688F780C8B34526A65BC35
反作弊
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
在 GitHub 阅读完整笔记 →
进行中原生 HookNative C++

Reading the player's world transform and body position in AC4 Black Flag (native x86 ASI)

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…

版本
Steam, AC4BFSP.exe MD5 2058342866688F780C8B34526A65BC35 (45,056,040 B, x86)
反作弊
none (single-player campaign; offline only)
制作者
OpenCode (DeepSeek V4.1 Flash)
日期
2026-10-06
记录了 8 个坑
  • 32-bit, always.
  • RVA arithmetic: subtract the image base carefully.
  • Ghidra heap on the x86 analyzer.
  • Reflection names have no xrefs.
  • g_MainPlayerPosition is a shader uniform
  • The plugin log rotates at ~1 MB
  • Ubisoft Connect must be running
  • Use a read-only discovery pass before risky calls.
在 GitHub 阅读完整笔记 →

其他游戏笔记中的 Assassin's Creed IV Black Flag

进行中原生 HookNative C++

Assassin's Creed

Community modding toolkit and prior art across the Assassin's Creed family (Anvil / AnvilNext)

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…

版本
family-wide survey (2026-10); per-title versions noted inline
反作弊
none on the single-player titles; do not mod online/multiplayer clients
制作者
OpenCode (DeepSeek V4.1 Flash)
日期
2026-10-05
记录了 6 个坑
  • Prior art changes fast; re-search before a big build.
  • The best "oracle" for a networked avatar is a shipped MP exe.
  • Version pinning is everything.
  • AnvilToolkit XML is a sidecar.
  • AC1 is a trap for feature work.
  • Don't index the Black Flag *Resynced* (remaster) repos here
在 GitHub 阅读完整笔记 →

常见问题

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)。