Show / Hide Table of Contents

Project Setup

  1. Clone the repository somewhere on your machine.
  2. Submodules will have to be initialized and updated using the command git submodule init && git submodule update --recursive --force.
  3. Run the runmefirst.cmd to dynamically attach your Bannerlord path and resolve references.
  4. If references in projects did not resolved automatically do the following. This can be done in Visual Studio by right-clicking references, going to browse, navigating to your Bannerlord directory through the mb2 shortcut, and selecting all TaleWorld.* .dlls. There are additional .dlls in the Modules folder, being the Native and StoryMode.
  5. Go to project settings for the Coop project and click debug.
  6. Click start external program and browse to your Bannerlord path. You should select the executable for Bannerlord normally located at bin\Win64_Shipping_Client\Bannerlord.exe
  7. For the command line arguments enter this /singleplayer /server _MODULES_*Native*SandBoxCore*CustomBattle*SandBox*StoryMode*Coop*_MODULES_
  8. Now we need to enter the working directory. NOTE: This will select a folder, not a file. The folder you need to select for this is bin\Win64_Shipping_Client. The same path that Bannerlord.exe is located.
  9. (Optional) Setup a client instance.

    1. To run a client instance open the ClientDebug options. Go to debug and do steps 6-8. The difference here is the command line arguments which should be changed to /singleplayer /client _MODULES_*Native*SandBoxCore*CustomBattle*SandBox*StoryMode*Coop*_MODULES_.

    2. Now open the Solution 'Coop' properties -> Startup Projects. Select multiple projects and make sure Coop and ClientDebug are set to start.

  10. Click debug.
  11. Create a new game and save it as "MP".
  12. Click on "host game" at the menu and the game will load the "MP" save file on the host. (and client if that is setup)
  13. If there are any issues contact someone in the discord.
  • Improve this Doc
☀
☾
Back to top Generated by DocFX