Bubba1650-NineKingsPvP icon

NineKingsPvP

1v1 Synchronous PvP over Steam P2P for 9 Kings! Native Root Menu lobby, simultaneous build & live clashes, 5 synced Hearts, crimson enemy foot rings, Clash auto-speed, version checks, and official server isolation shield.

Last updated 17 minutes ago
Total downloads 0
Total rating 0 
Categories Mods
Dependency string Bubba1650-NineKingsPvP-0.2.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788

README

Nine Kings 1v1 PvP (NineKingsPvP)

A BepInEx 6 (IL2CPP) + Harmony mod for 9 Kings that adds 1v1 Synchronous PvP (Simultaneous Build & Live Clash) over Steam P2P, using 9 Kings' native Gameplay.GameSnapshot and Wave.SpawnWave() board systems.

Official Server Safety & Achievements: All 1v1 PvP lobby and match traffic added by this mod runs over Steamworks Lobbies & Steam P2P (steam_api64.dll). A 5-layer Always-On Isolation Shield blocks 9 Kings' official multiplayer backend hooks (TryGetAuthToken, SubmitMultiplayerRun, SaveMissionSettings, and UnityWebRequest official multiplayer routes) so modded runs never submit to official leaderboards. Steam achievements are also intentionally suppressed during modded 1v1 matches to keep singleplayer progression clean. Never use the official Multiplayer Hub while modded.


How 1v1 Works

Both players build their kingdoms simultaneously through PvE waves, then sync up on every Clash year (every 3 years by default, or every year in Every-Year Duel) to fight each other's live kingdom snapshot head-to-head. Both players start with 5 synced PvP Hearts — first player to lose all 5 Hearts loses the match (with Year 33+ Overtime Clashes until a winner is decided).

Features

  • Native Root Main Menu (1v1 PvP): Adds a native 1v1 PvP button directly onto 9 Kings' Root Main Menu with a Royal Obsidian & Gold uGUI (TauSans Outlined Bold) lobby, 1-click Start 1v1 into King Selection, and an unobstructed in-match HUD placed cleanly between the Gold display and Match Timeline.
  • Steam P2P Lobby & Strict Version Verification: Host Lobby, Invite Friend, Copy/Join by Lobby ID, Find Friends, and automatic mod GUID + version verification (with hardened packet bounds & pre-handshake gating) so mismatched clients never start a desynced match.
  • Host-Authoritative Synced Settings:
    • Clash Format: Every 3 Years (simultaneous PvE build waves between Clashes) or Every Year (Clash every single wave)
    • Difficulty: Synced PvE wave difficulty (Peasant through King, default Knight)
    • Tiebreaker (Double-Win): When both players successfully defend against each other's army on the same Clash year:
      • Draw — neither player loses a Heart
      • Faster Wins — the player who cleared faster wins and the slower player loses 1 Heart (clears within 0.5s count as a Draw)
    • Shop Seed: Random (Independent, default) or Shared (with New reroll)
  • Local QoL & Clash Readability:
    • Clash Speed: Local Auto 1x / Auto 2x / Manual toggle that syncs 9 Kings' native speed buttons during Clashes and restores your saved PvE speed afterward
    • Enemy Foot Rings: Crisp hollow pixel-art crimson foot rings under opponent troops during Clashes (preserves unit pixel art and makes mirror matchups immediately readable)
  • Match Over & Rematch Modal: Non-blocking Clash Result Toasts, Victory confetti/SFX, Clash-by-Clash history, Keep-Lobby Rematch, and clean forfeit detection.
  • Balanced PvE Defeat Penalty: Losing a PvE battle between Clashes restricts that wave's reward shop to 1 random card with no rerolls.
  • Symmetric Clash Castle Auto-Aim: Forced symmetric Auto-Attack during Clashes, 1.5s opening-shot hold, and Smart Cluster + Lead targeting for AoE Castles.

Compatibility & Requirements

  • Game: 9 Kings (Steam, Unity 6000.3.8f1 IL2CPP)
  • Mod Loader: BepInExPack_IL2CPP 6.0.788 (installed automatically via Thunderstore)
  • Multiplayer Version Match: Both players must be running the exact same version of NineKingsPvP (verified automatically on lobby join and handshake).

Playing a 2-Player 1v1 Match

  1. Install NineKingsPvP via Thunderstore Mod Manager / r2modman (recommended), or place NineKingsPvP.dll into BepInEx\plugins\NineKingsPvP\NineKingsPvP.dll alongside BepInEx 6 IL2CPP on both PCs.
  2. Launch 9 Kings via Steam.
  3. Click 1v1 PvP on the Root Main Menu.
  4. Host: Click Host Lobby → Invite Friend (or Copy ID).
  5. Friend: Accept the Steam invite (or click 1v1 PvP → Join by ID / Find Friends).
  6. Host configures Match Settings (syncs automatically to Guest). Both players can set their own Clash Speed.
  7. Click Start 1v1 once connected & verified → pick any King → Start.
  8. During a match, click F9 on the compact top HUD bar (or press F9) anytime to check ping, change Clash Speed, or view > Advanced logs.

Troubleshooting

  • Steam Invite Overlay won't open: Make sure the Steam Overlay is enabled for 9 Kings, or click Copy ID as Host and send the number to your friend to paste via Join by ID.
  • Version Mismatch banner on join: Both players must have the exact same NineKingsPvP version installed (check the version shown in the top-left of the 1v1 PvP menu header).
  • Friend's lobby doesn't appear in Find Friends: Ensure you are Steam Friends and both appear Online (not Invisible), or use Copy ID / Join by ID directly.
  • Reporting a bug: Attach BepInEx\LogOutput.log from your 9 Kings profile folder when opening a GitHub Issue.

Building from Source & Branches

By default, GameDir points to %APPDATA%\Thunderstore Mod Manager\DataFolder\9Kings\profiles\Default. Pass -p:GameDir="C:\path\to\9Kings" if your BepInEx 6 IL2CPP install lives elsewhere.

dotnet build "9 Kings Mod\9 Kings Mod.csproj" -c Release
  • Package GitHub Release ZIP: powershell -ExecutionPolicy Bypass -File .\scripts\release.ps1
  • Package Thunderstore Release ZIP: powershell -ExecutionPolicy Bypass -File .\scripts\package-thunderstore.ps1
  • Branches:
    • main — Public 1v1 Steam P2P release branch only.
    • solo-test — Internal development branch kept in lockstep with main hosting the F10 Solo Bot Test Suite.

License

Released under the MIT License. Not affiliated with or endorsed by the creators of 9 Kings.