mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #258] [MERGED] kb: Working two-player co-op in AC4 Black Flag: spawn a peer puppet, and bind UDP in the live game (Assassin's Creed IV Black Flag) #257
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rehan-remade/universal-modder/pull/258
Author: @Davidoff-byte
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @rehan-remade
Base:
main← Head:kb/ac4-coop-udp-bind📝 Commits (4)
212e063kb(ac4): working two-player co-op - spawn the peer puppet, bind UDP in the live gameb24acd0kb: AC4 co-op UDP bind: review fixesba47bacMerge remote-tracking branch 'origin/main' into land/pr-25838b120akb: regenerate the index📊 Changes
4 files changed (+238 additions, -2 deletions)
View changed files
📝
knowledge/INDEX.md(+2 -1)📝
knowledge/games/assassin-s-creed-iv-black-flag/coop-ghost-avatar.md(+4 -1)➕
knowledge/games/assassin-s-creed-iv-black-flag/coop-two-player-udp-bind-in-the-live-game.md(+190 -0)📝
knowledge/index.json(+42 -0)📄 Description
What: Field note — working two-player co-op in AC4 Black Flag single-player: Kamzik123/AC4Coop spawns a real peer puppet (built from the local player's cached
EntityBuilder) and animates it by action replication, plus the launch-chain UDP double-bind bug (WSAEADDRINUSE 10048) that killed the net, and its 3-part fix.Field note: Working two-player co-op in AC4 Black Flag: spawn a peer puppet, and bind UDP in the live game
Checked with
um kb check; index regenerated withum kb index.Checklist
um kb checkpasses (field notes) /uv run --with pytest pytest -q testspasses (code)um kb indexregenerated (field notes)Why it is worth a note. The co-op itself is Kamzik123's work; the reusable finding is the transport trap — starting the UDP link in
DllMainlets a transient process from AC4's launch chain bind the port and die, so the live game'sbind()fails and it has no net at all (puppet spawns, never moves;netstatshows the port held by a PID that is not the live game). The fix is to start the net on the first in-world frame and addSO_REUSEADDR— and the warning thatSO_REUSEADDRalone regresses, because the transient's corpse is then the last binder and steals the incoming datagrams.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.