====== Local Dedicated Server ====== If for some reason you need a local server to test things on (scenes with bots for example), this is the guide for you. You can still control your character loadout on the normal [[https://nordinvasion.com|NordInvasion]] website but you will not receive any xp or loot. ===== Installation ===== - Download the [[https://www.taleworlds.com/en/Games/Warband/Download|Dedicated Server Files]]. - Extract them to whatever directory you wish. - Create a ''WSE'' folder in the directory you just created (the same folder that ''mb_warband_dedicated.exe'' is in). - Download [[https://forums.taleworlds.com/index.php/topic,324890.0.html|WSE]] and the matching Warband exes provided there. - Extract the WSE files (but not folders) into the ''WSE'' folder. - Extract the ''mb_warband_dedicated.exe'' file and replace your existing copy. - Put a copy of the NordInvasion mod into the dedicated server's ''Modules'' folder. - Save a config file in the dedicated server's folder. For this example, we'll use the [[config|sample config]] and save it as ''nordinvasion.cfg''. ===== Starting the Server ===== There are a few different options for how to start the server. You only need to choose one of them. - From a shortcut (recommended) - Open File Explorer to the directory you want to store the shortcut in. - While holding Shift, right-click an empty space in the folder. - Right-click an empty space, point at ''New'' and choose ''Shortcut''. - Browse to the location you chose for the server, WSE, and select ''WSELoaderServer.exe''. - Before clicking ''Next'', add '' -r nordinvasion.cfg -m NordInvasion -p ..\mb_warband_dedicated.exe'' outside the ''"'' marks. - Click ''Next'', type a name for the shortcut, and click ''Finish''. - Run the shortcut to start the server. - From a bat file - Create a bat file (''NordINvasion_Start.bat'' for example). - Store ''WSE\WSELoaderServer.exe -r nordinvasion.cfg -m NordInvasion -p mb_warband_dedicated.exe'' in the bat file. - Run the bat file to start the server. - From CMD / PowerShell (very manual) - Open File Explorer to the directory containing your copy of mb_warband_dedicated.exe. - While holding Shift, right-click an empty space in the folder. - Click ''Open PowerShell window here'' or ''Open CMD window here''. - Run ''WSE\WSELoaderServer.exe -r nordinvasion.cfg -m NordInvasion -p mb_warband_dedicated.exe'' to start the server. ===== Notes ===== * When you load the Warband client, choose "Local Area Network" on the server list. * If you change the port away from 7240, Warband will have problems finding the server in the Local Network list. * If you would like others to join your server, you will need to set up TCP and UDP port forwarding on your OS, router, and modem. Unless you change the config, the only port that requires forwarding is 7240. ===== Troubleshooting ===== * My server does not show up on the internet list. * Make sure that you have forwarded both TCP and UDP. * You need to forward through several points of your network. * Router * OS firewall * Modem (if you don't have a modem/router combo device) * You may need to restart the firewall after making the necessary changes.