Skip to content

Commit e2ff95a

Browse files
authored
Merge pull request #123 from DejanM4/master
Updated "Hosting a Custom Server" page
2 parents 86c5912 + cb5e207 commit e2ff95a

7 files changed

Lines changed: 301 additions & 127 deletions

File tree

docs/content/english/Multiplayer/hosting_server.md

Lines changed: 78 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can administrate your server by typing commands in your server’s console (
4040

4141
By typing `list` and pressing `enter`, you will get all the available commands in the dedicated server:
4242

43-
<img src="/img/hosting_server/hosting_server_5.png" width="800px" />
43+
<img src="/img/hosting_server/consolecommands.png" width="600px" />
4444

4545
For example, to get a simple server running, you can type the following commands into your console:
4646

@@ -91,37 +91,100 @@ By using the command `set_automated_battle_count` before `enable_automated_battl
9191

9292
For example, `set_automated_battle_count 10` will have the server play 10 missions and shut down. If you would like to have an unlimited number of missions, set it to `-1`.
9393

94-
#### Helper Modules
95-
We supply the optional `DedicatedCustomServerHelper` module to help server hosts. There are several submodules within for distinct purposes. For the server side modules to be usable from the outside, you will need to make TCP port 7210 accessible as well.
94+
#### Additional Features
95+
With patch v1.2.x the below striken through text is no longer relevant. The `DedicatedCustomServerHelper` module and its functionality has been merged into the base game.
9696

97-
Note that although the module is optional for server hosts, if you as the host do load the module, the players will also need to have it loaded. Otherwise, a mismatch in modules will prevent players from joining.
97+
~~We supply the optional `DedicatedCustomServerHelper` module to help server hosts. There are several submodules within for distinct purposes.~~ For the server side modules to be usable from the outside, you will need to make TCP port 7210 accessible as well.
98+
99+
~~Note that although the module is optional for server hosts, if you as the host do load the module, the players will also need to have it loaded. Otherwise, a mismatch in modules will prevent players from joining.~~
98100

99101
##### Administration Web Panel
100102
This module launches a web panel to interact with your custom server, through a general management page and a terminal page:
101103

102104
<img src="/img/hosting_server/hosting_server_6.png" width="900px" />
103105

104-
You can find the URL for the web panel in your server console once it has been initialized.
106+
You can access the web panel with your server's IP address and port once it has been initialized.
105107

106108
The web panel is password protected by the server’s configured `AdminPassword` option. **By default, this option is left blank, so be sure to change it to a secure password**.
107109

108110
If you do not want the web panel to be accessible from outside the local network or machine, and also do not need the map download feature below, you are free to block TCP port 7210 from external access.
109111

110-
##### In-Game Map Downloads
111-
We also present a way to allow players to download your servers map files through an in-game panel. As the server host, there are some conditions you must ensure to get this functioning:
112+
##### In-Game Map Downloads [Map Downloader]
113+
We also present a way to allow players to download your server's map files through an in-game panel. As the server host, there are some conditions you must ensure to get this functioning:
112114

113-
* The maps to be served must be located within **ONLY** the `DedicatedCustomServerHelper` modules `SceneObj` directory, in the same way a typical module contains scenes. You can create the directory by hand if it is missing.
114-
* The maps to be served must be registered through either the `Map` configuration option or the `add_map_to_automated_battle_pool` command. In other words, only maps playable on the server are served.
115+
* The maps to be served must be located within ONLY the Multiplayer module's `SceneObj` directory, in the same way a typical module contains scenes. You can create the directory by hand if it is missing.
116+
* The maps to be served must be "registered" through either the `Map` configuration option, the `add_map_to_automated_battle_pool` or `add_map_to_usable_maps` commands. In other words, only maps playable on the server are served.
115117

116118
Note that having the scene loaded in multiple modules will cause issues such as the scene not being shown on the download panel.
117119

118-
For the players to be able to open the download panel, they will need to launch the game with the `DedicatedCustomServerHelper` module loaded. Now, they can right click on a custom server list entry, which will open a context menu with the option to open the download panel for the server. Once a map is successfully downloaded, there is no need to restart the game, they should be able to join your server as is.
120+
Players will then get prompted to download all of the missing maps as they try to join the server or they can right click on the custom server list entry, which will open a context menu with the option to open the download panel for the server. Once all missing maps are successfully downloaded, there is no need to restart the game, they should be able to join your server as is.
119121

120-
<img src="/img/hosting_server/hosting_server_7.png" width="600px" />
122+
<img src="/img/hosting_server/downloadpanel.png" width="600px" />
121123

122124
Note that this feature is intended to support simple use cases. This is not a module manager feature, and will not be able to support maps that require other assets (ModuleData, Prefabs, etc.) spread throughout a given module. Only the `SceneObj` directory contents are transferred between the server and the client.
123125

124-
If the lack of prefab support is a concern, you may be able to make the scene usable through the helper module by breaking the prefabs. Open the scene in the editor, select all entity objects, right click and select *Break Prefab*.
126+
If the lack of prefab support is a concern, you may be able to make the scene usable through the Map Downloader by breaking the prefabs. Open the scene in the editor, select all entity objects, right click and select *Break Prefab*.
127+
128+
##### In-game admin panel & admin features
129+
The in-game admin panel provides an easy way to organize and moderate events.
130+
131+
The admin features are only available to those that enter the server as an admin by providing the admin password (right-click on the server and then `Join as Admin`). You can then access the admin panel via the Escape menu. The `AdminPassword` can be set from the server config.
132+
133+
| | |
134+
| ------ | ----------- |
135+
| <img src="/img/hosting_server/adminpanel1.png"/ width="400px"> | <img src="/img/hosting_server/adminpanel2.png" width="400px"/> |
136+
137+
The in-game panel has two main operational buttons:
138+
139+
* `Apply and Start Mission` -> This will apply all of the changes made and start a new mission immediately.
140+
* `Apply Changes` -> This will apply all of the changes made. The ones that are listed under Immediate Effects will go into effect right away. Those that are listed under Mission Options will be applied on the next mission.
141+
142+
The in-game admin panel comes with the following options:
143+
144+
###### Require mission restart
145+
* Game Type
146+
* Lists all available game types (Siege, TeamDeathmatch, Captain, Skirmish, Duel, Battle)
147+
* Map
148+
* Lists all the maps that have been passed to the server inside the config with the `add_map_to_usable_maps [MapName] [GameType],[GameType]` command
149+
* For example: `add_map_to_usable_maps mymap Siege,Skirmish` (please note that the GameType must be correctly capitalized)
150+
* Attacker & Defender Cultures
151+
* Number of Rounds
152+
* Map Time Limit
153+
* Round Time Limit
154+
* Warmup Time Limit
155+
* Maximum Number of Players
156+
157+
###### Have immediate effect
158+
* Welcome Message
159+
* Team Balance Threshold
160+
* Friendly Damages
161+
* Class Limits (Allow, Disallow)
162+
163+
###### Others
164+
* End Warmup
165+
* Overrides the warmup timer and ends the warmup in 30 seconds.
166+
* Mute/Unmute Player
167+
* Mutes a player, preventing them from using chat.
168+
* Kick Player
169+
* Kicks a player from the server. Kicked players are able to immediately rejoin the server.
170+
* Ban Player
171+
* Bans a player from the server. Banned players are not able to rejoin the server until it restarts.
172+
173+
Here are some behaviours you should expect while changing Game Types, Maps and Cultures:
174+
175+
* If you leave Game Type, Map and Cultures UNSELECTED -> The game will run the current Game Type being played and give the players the option to vote on the available maps (those passed with `add_map_to_automated_battle_pool`) and cultures.
176+
* If you leave Game Type, Map and Cultures UNSELECTED AND the Game Type isn't the one that the server initially launched with -> The game will run the current Game Type being played and use a random map from the available maps (those passed with `add_map_to_usable_maps`) and give the players the option to vote on cultures.
177+
* If you select a Game Type but leave Map and Cultures UNSELECTED AND the selected Game Type isn't the one that the server initially launched with -> The game will run the current Game Type being played and use a random map from the available maps (those passed with `add_map_to_usable_maps`) and give the players the option to vote on cultures.
178+
* If you select a Game Type and Map but leave Cultures UNSELECTED -> The game will run the selected Game Type with the selected Map and give the players the option to vote on cultures.
179+
* If you select a Game Type, Map and Cultures -> The game will run the selected Game Type, Map and Cultures with no voting screen.
180+
* If you provide no maps for a specific Game Type using the `add_map_to_usable_maps` parameter, that specific Game Type will be disabled in the admin panel.
181+
* Official maps will only work with the intended Game Types. Trying to use them with another Game Type with `add_map_to_usable_maps` will not display them in the admin panel.
182+
183+
###### Admin Announcements
184+
You can also make use of the admin announcements system which pushes out text to everyone on the server by typing the following into chat:
185+
186+
* `/ab [text]` - Admin Broadcast - Displays the announcement in the middle of the screen as well as in chat alongside a sound notification.
187+
* `/ac [text]` - Admin Chat - Displays the announcement in chat.
125188

126189
## FAQ
127190
##### Does Steam need to stay open for hosting?
@@ -134,13 +197,13 @@ Yes.
134197
Right now, Steam is the only way to download it. We are planning to add it to other game platforms and are also discussing using a Docker host for distributing the server files in the future.
135198

136199
##### Will you provide Linux support?
137-
Yes. In fact, we are using Linux servers on our backend, but the system requires further development to make it publicly available.
200+
Linux server files are already available!
138201

139202
##### Will my server be accessible by everyone?
140203
Yes, your server will be accessible by everyone unless you make it password protected.
141204

142205
##### How many servers can I host?
143-
There is a limit to the number of servers you can host simultaneously. Currently, you can host up to 5 servers.
206+
There is a limit to the number of servers you can host simultaneously. Currently, you can host up to 50 servers.
144207

145208
##### What are the hardware requirements?
146209
It depends on the game mode and the player count. With the default configurations, we are hosting our games:
@@ -156,10 +219,4 @@ You can also try to host a very small game with a single core machine as well bu
156219
It depends on the player count. By default, we are sending 60 packets to each player and each packet is less than 1.5 kilobytes. For most configurations, any dedicated server provider should be able to provide a sufficient network connection.
157220

158221
##### Is there any modification support?
159-
Yes!
160-
161-
##### What about anti-cheat with modifications?
162-
Anti-cheat is disabled for modified games. Note that any player who has modified their game will not be able to join the official servers.
163-
164-
##### Will there be an in-game administration panel for quicker and easier administration?
165-
We are planning to make one.
222+
Yes! Go to https://moddocs.bannerlord.com/multiplayer/custom_game_mode/ to learn more.

0 commit comments

Comments
 (0)