Repository navigation
Releases
Muck Ascendant v3.5.0 - Multiplayer Sync & Stability Update
Muck Ascendant v3.5.0 — Bugfix & Multiplayer Sync
Release type: stability and multiplayer · New content: none · New config entries: none
Requires: BepInEx 5.4.23.2 (x64) · Lobby: every player needs v3.5.0 · Mod protocol: 2
v3.0.0 was built and tested from the host's point of view. In a real lobby that showed: connected players silently got
a random powerup instead of the three-card chest choice, a player leaving made the host throw an exception every
second, a lagging player could hurt the Void Sovereign while it was immune, players who were still loading never saw
some shrines and crystals, and the mod trusted every network message it received.
v3.5.0 fixes all of that and makes the host the single authority for every multiplayer decision. The chest choice,
shrines, boss phases, abilities and loot now work and stay in sync for every player, not only the host.
Contents
- At a glance
- Upgrade and compatibility
- 1. Chest powerup choice for every player
- 2. Handshake
- 3. Disconnects: no more exception loop in the progression scaler
- 4. Void Sovereign: immunity enforced by the host
- 5. Players who load late: shrine and Astral Crystal resync
- 6. Two players, one drop (VanillaGuards)
- 7. Network hardening
- 8. Mini-boss shrines
- 9. Chests, charms and the choice window
- 10. Loot and balance caps
- 11. Armor UI and cooldowns
- 12. Stability
- Quality assurance: 90 of 90 checks passed
- Install
- Reporting problems
At a glance
| Area | v3.0.0 | v3.5.0 |
|---|---|---|
| Chest choice | Host only; connected players silently got a random powerup | Every player picks on their own screen; host-authoritative, paid out exactly once |
| Player leaves mid-match | Host threw a NullReferenceException every second; scaling froze |
Empty slots are skipped everywhere; open chest choices of the leaver are paid out |
| Void Sovereign immunity | Checked only on the attacking player's game | Enforced on the host; hits during intro and transition are dropped |
| Late or loading players | Missed shrines and crystals announced before their world existed | Buffered while loading, resent after the handshake, never built twice |
| Same drop, two players | Exception inside the host's packet handling | Late pickup dropped; nothing lost, nothing doubled |
| Incoming mod messages | Read raw, no limits | Length, range, world-bounds and enum checks; per-player rate limits |
| Harmony patches | An exception could break the game's own method | Each patch body isolated; the game's method keeps running |
Upgrade and compatibility
- Replace
BepInEx/plugins/MuckIlkMod.dll. YourMuckIlkMod.cfgand existing worlds keep working; there are no new
config entries. - Everyone in the lobby needs v3.5.0. Config entries marked
[All]must still match.
Mixed versions are not supported, but they degrade instead of breaking:
| Host | Connected player | Result |
|---|---|---|
| 3.5.0 | 3.5.0 | Full feature set. |
| 3.5.0 | 3.0.0 | The old game never sends the handshake, so the host treats it as "protocol 0": its chests give the game's normal random powerup (never a window it could not answer) and it gets no resync. Everything else behaves as in 3.0.0. |
| 3.0.0 | 3.5.0 | The old host does not know the handshake message; it logs Unknown mod message 11 and ignores it. Chests stay random for connected players, as in 3.0.0. |
1. Chest powerup choice for every player
What changed
Before, only the host could pick one of three powerups from a loot chest. Now the player who opens a chest gets the
three-card window (Bir özellik seç) on their own screen, wherever they are in the lobby.
Root cause
The choice was started in a Harmony prefix on LootContainerInteract.ServerExecute, which only runs on the host. The
prefix opened the host's own local window and stepped aside whenever fromClient was not the host, so the game's
vanilla ServerExecute dropped a random powerup for everybody else. There was no network message that could carry
three cards to another machine, or carry the answer back.
How it works now
- A player opens a chest. The game routes the interaction to the host (
LootContainerInteract.ServerExecute). - The host rolls three distinct, non-charm powerups with that chest's own white/blue/gold weights
(ItemManager.GetRandomPowerup(chest.white, chest.blue, chest.gold), up to 24 attempts; a chest without weights
falls back to any distinct non-charm powerup). The offer (id, the owner'sPlayerobject, the three powerup ids,
chest position and deadline) is stored on the host only. Nothing is dropped yet. - The host sends
ChestOffer(mod message 12) to that player only (ModNet.SendTo), inside the mod's to-player
packet 9001. - The player's game checks the offer, maps the ids to its own powerups and opens the window.
- The answer,
ChestPick(mod message 13: offer id and card index, or-1for "no choice"), goes back inside the
mod's to-host packet 9002. - The host checks the answer and drops the chosen powerup at the chest with the game's own
DropPowerupAtPosition/ServerSend.DropPowerupAtPosition. Every player sees the same orb, and the game's normal
pickup sync hands it out.
About the 9001/9002 bridge: these are the mod's two packet ids (unchanged since 3.0.0), registered next to the
game's handlers in LocalClient.packetHandlers and Server.PacketHandlers. The game's own packet ids are all below
100, so they can never collide. Inside each packet the first value is the mod's message type; types are append-only,
so older messages keep their numbers (Hello = 11, ChestOffer = 12, ChestPick = 13).
Closing the window, Escape and the queue
- While the window is open it owns the input (
ModalLock): Escape, Tab, map and interact are blocked, so the pause
menu or the inventory cannot open underneath it. Escape therefore does not dismiss the window; it closes through
a choice, the timeout or the end of the match. - In multiplayer the world keeps running while the window is open (only single player pauses), which is why every
offer has a deadline. - Any close without a choice (timeout, match ended, window cancelled) immediately sends
-1to the host. The host
never waits for an answer that cannot come. - Several chests in a row are queued on the player's side (up to 4 waiting) and shown one after the other. If the
Void Heart window is open, the chest offer waits behind it. An offer that expires while still queued is answered
with-1without being shown. - The host accepts at most 4 open offers per player. A fifth chest while four are open gives the game's random
powerup. - The host's own chests use the local window as before. A second chest opened while the host's window is open gives
the normal random powerup.
Timeout and disconnect fallback
- The player has 60 seconds. Then the window closes itself and answers
-1. - The host waits 75 seconds: 15 seconds of grace for an answer that is still on its way. Offers are checked every
0.5 seconds. - When the deadline passes, or the slot no longer holds the player the offer was made to (left, kicked, or a new
player took the slot), the host drops one of the three offered cards at random at the chest. - An offer is removed from the host's table before it is paid out, and offer ids are never reused, not even across
matches. A late, repeated or replayed answer finds no offer and is ignored.
What this prevents
- A paid chest that gives nothing: the player closed the window, timed out, alt-tabbed, crashed or disconnected.
- A chest that pays twice: a double answer, an answer that arrives after the timeout payout, a repeated packet.
- Answering someone else's chest: an answer from any other slot is rejected as a malformed message.
- Invalid answers: only card indexes
-1..2are accepted; a powerup id the player's game does not know (another
version) makes that player answer-1at once, and the host picks. - A stuck offer: a malformed offer whose id could still be read is answered with
-1immediately, so the host
settles it instead of waiting 75 seconds. - A window that can never be answered: a player whose mod has not announced protocol 2 (older version, or still
loading) gets the game's random powerup instead.
2. Handshake
- What: when a match starts, each player's game sends
Hello(mod message 11) once, with protocol2and its mod
version. The host logs<name> joined with Muck Ascendant 3.5.0 (protocol 2)and warns when the versions differ. - Why it was needed: in 3.0.0 the host had no way to know what a player's copy of the mod could handle, so any new
message type could reach a game that does not understand it. The chest choice and the resync are only used with
players that have announced protocol 2. - Slot reuse: the handshake is bound to the player object, not only the slot number. A new player who takes over a
slot is not trusted with the previous player's handshake and must announce itself again.
3. Disconnects: no more exception loop in the progression scaler
Root cause
When a player leaves in the middle of a match, Server.clients keeps the slot's key while the slot itself is empty
(a null Client, or a Client withou...
v3.0.0 - Muck Ascendant
Phasium alloy & armor set, legendary weapons/tools (Soulrender Katana / Tek Atan Katana, Titan Cleaver Axe / Efsane Balta, Starbreaker Pickaxe / Efsane Kazma), beacon-lit mini-boss shrines, and Void Sovereign raid boss.