User Tools

Site Tools


general:contributors:servers:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
general:contributors:servers:start [2017/10/28 03:54]
kip added a note about port forwarding
general:contributors:servers:start [2018/03/10 22:19]
kip added a troubleshooting section
Line 1: Line 1:
-====== Local Test Server ======+====== Local Dedicated ​Server ======
  
-If for some reason you need a local server to test things on, this is the guide for you.+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 may equip gear on the normal [[https://​nordinvasion.com|NordInvasion]] website but you will not receive any xp or loot.  For now, it is normal to see unusual text instead of assist messages.+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 ===== ===== Installation =====
  
-  - Download the [[https://​www.taleworlds.com/​en/​Games/​Warband/​Download|Dedicated Server Files]]+  - Download the [[https://​www.taleworlds.com/​en/​Games/​Warband/​Download|Dedicated Server Files]].
   - Extract them to whatever directory you wish.   - Extract them to whatever directory you wish.
-  - Put a copy of the NordInvasion mod into the dedicated server'​s ​modules ​folder. +  ​- Create a ''​WSE''​ folder in the directory you just created (the same folder that ''​mb_warband_dedicated.exe''​ is in). 
-  - Save a config file in the dedicated server'​s folder. ​ For this example, we will use the sample ​below and call it nordinvasion.cfg. +  - Download [[https://​forums.taleworlds.com/​index.php/​topic,​324890.0.html|WSE]] and the matching Warband exes provided there. 
-  - Run the dedicated server with the following parameters: ​''​-r nordinvasion.cfg ​-m NordInvasion''​ +  - Extract the WSE files (but not folders) into the ''​WSE''​ folder. 
-  - When you load Warband, choose "Local Area Network"​ on the server list.+  - 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''​.
  
-Start command example: ''"​D:​\Programs\Mount&​Blade Warband Dedicated\mb_warband_dedicated.exe"​ -r nordinvasion.cfg -m NordInvasion''​\\ +===== Starting ​the Server =====
-You can create a shortcut with the command to make launching easier. ​ (See the instructions below for more help.)+
  
-===== Sample Config =====+There are a few different options for how to start the server. ​ You only need to choose one of them.
  
-<​code>​ +  - From a shortcut (recommended) 
-# Server ​name +    - Open File Explorer to the directory you want to store the shortcut in. 
-set_server_name Local_Server+    - 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 =====
  
-# Server passwords +  * When you load the Warband client, choose "Local Area Network"​ on the server list. 
-set_pass ​ +  * If you change the port away from 7240, Warband will have problems finding the server in the Local Network list. 
-set_pass_admin admin+  * 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.
  
-# Server mission (ni_beginner,​ ni_normal, ni_hard, ni_ragnarok,​ ni_cavalry) +===== Troubleshooting ​=====
-set_mission ni_normal +
- +
-# Manual block +
-#​set_control_block_direction 1 +
- +
-# Map rotations +
-set_map ni_swadian_great_hall +
-add_map ni_old_shire +
-add_map ni_swadian_keep +
-add_map ni_senuzgda_cavern +
-add_map ni_swadian_village +
- +
-# Welcome message +
-#​set_welcome_message Welcome to the server!^^This server, like all the NordInvasion servers, is supported entirely from player contributions.^^If you enjoy the game, please consider donating at nordinvasion.com/​donate. +
- +
-# Factions, bots, and players +
-set_auto_team_balance_limit 7 +
-set_bot_count 2 3 +
-add_factions 21 22 +
-set_max_players 16 16 +
-set_randomize_factions 0 +
- +
-# Voting options +
-set_ban_voteable 0 +
-set_factions_voteable 0 +
-set_maps_voteable 0 +
-set_num_bots_voteable 0 +
-set_valid_vote_ratio 100 +
- +
-# Friendly-fire settings +
-set_friendly_fire 1 +
-set_friendly_fire_damage_friend_ratio 100 +
-set_friendly_fire_damage_self_ratio 0 +
-set_melee_friendly_fire 1 +
- +
-# Since default team point limit is 300, it must be overridden for NordInvasion +
-set_team_point_limit 100000 +
-set_round_max_seconds 1800 +
-set_map_time_limit 10 +
- +
-# If the bottleneck is your server'​s bandwidth, then make sure that you set a correct value for upload limit +
-set_upload_limit 100000000 +
- +
-# If you are running more than one dedicated server on the same computer, you must give different ports to each of them +
-set_port 7240 +
- +
-set_server_log_folder Logs +
-set_server_ban_list_file Logs\ban_list.txt +
- +
-start +
-</​code>​ +
- +
-===== Creating a Shortcut ===== +
- +
-To create a shortcut for launching the server... +
- +
-  - Right-click an empty area, point at ''​New''​ and choose ''​Shortcut''​. +
-  - Browse to the location you chose for the server and select ''​mb_warband_dedicated.exe''​. +
-  - Before clicking ''​Next'',​ add the parameters given in step 5 above. +
-  - Click ''​Next'',​ type a name for the shortcut, and click ''​Finish''​. +
- +
-===== Notes =====+
  
-  ​- If you change the port away from 7240, Warband will have problems finding the server ​in the Local Network ​list. +  ​* My server ​does not show up on the internet ​list. 
-  - If you would like others to join your server, you will need to set up TCP and UDP port forwarding on your OSrouter, and modem. ​ Unless you change the config, the only port that requires forwarding is 7240.+    * 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)
general/contributors/servers/start.txt · Last modified: 2019/06/20 01:49 by terath86