================================================================================
             HEADLESS CAMPAIGN SERVER - COOP MOD v1.0.0
                for Mount & Blade II: Bannerlord
================================================================================

WHAT IS THIS?
-------------
A cooperative multiplayer mod for Bannerlord's campaign map.
Multiple players share the same campaign world on a dedicated server.

Features:
  - Shared campaign world with real-time synchronization
  - See other players on the campaign map
  - Join/leave notifications
  - Auto-save when entering towns/castles
  - Time flows continuously (online mode)


AUTOMATIC INSTALLATION (RECOMMENDED):
--------------------------------------
1. Right-click "Install.bat"
2. Select "Run as administrator"
3. Follow the on-screen instructions
4. Done!

The installer will:
  - Find your Bannerlord installation automatically
  - Copy mod files to the correct location
  - Unblock DLL files (fixes "Cannot load DLL" error)


MANUAL INSTALLATION:
--------------------
If the automatic installer doesn't work:

1. IMPORTANT: Before extracting, right-click on the ZIP file you downloaded
   -> Properties -> Check "Unblock" at the bottom -> Click OK

2. Copy the "HeadlessCampaignServer" folder to your Bannerlord Modules folder:
   [Your Bannerlord Path]\Modules\HeadlessCampaignServer\

   Example paths:
   - C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules\
   - D:\SteamLibrary\steamapps\common\Mount & Blade II Bannerlord\Modules\

3. Make sure the folder structure looks like this:
   Modules\HeadlessCampaignServer\SubModule.xml
   Modules\HeadlessCampaignServer\bin\Win64_Shipping_Client\HeadlessCampaignServer.dll
   Modules\HeadlessCampaignServer\bin\Win64_Shipping_Client\0Harmony.dll


HOW TO PLAY:
------------
1. Launch Mount & Blade II: Bannerlord
2. In the launcher, go to "Mods" and enable these in order:
   - Native
   - SandBoxCore
   - Sandbox
   - Headless Campaign Server
3. Click "Play"
4. In the main menu, click "Online Campaign"
5. Click "New Online" to create a character and join the server
   - OR select your "CoopCampaign" save to rejoin
6. You're in! Other players will appear on the campaign map.


SERVER INFO:
------------
Server IP: 159.203.92.147
Port: 7210
(Already configured in the mod - no setup needed!)


CONTROLS:
---------
The game plays like normal single-player Bannerlord, except:
  - Time cannot be paused (it's always flowing)
  - Other players appear as parties on the map
  - Your progress saves when entering towns/castles
  - ESC menu has limited options (no save/load)


TROUBLESHOOTING:
----------------
Problem: Mod doesn't appear in the launcher
Solution: Make sure you unblocked the ZIP file BEFORE extracting it.
          Or run Install.bat as administrator.

Problem: "Cannot load DLL" error
Solution: Run Install.bat as administrator to unblock DLL files.

Problem: "Connection refused" when joining
Solution: The server might be offline. Contact the mod author.

Problem: Game crashes on startup
Solution: Make sure mod load order is correct:
          Native > SandBoxCore > Sandbox > Headless Campaign Server

Problem: I can't see other players
Solution: Make sure you are connected (check the status messages).
          Other players must also be connected to the server.


REQUIREMENTS:
-------------
- Mount & Blade II: Bannerlord (Steam version, v1.2.x)
- Windows 10/11
- Internet connection


================================================================================
                         Enjoy cooperative Bannerlord!
================================================================================
