aboutsummaryrefslogtreecommitdiff
path: root/docs/hosting-a-server-with-northstar/server-settings/startup-args.md
blob: 7f5cc094559d455fa157dad4a3636e51239b514c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Startup Arguments

{% hint style="warning" %}
The GitBook based NorthstarWiki has been replaced in favour of the [NorthstarDocs](https://docs.northstar.tf/) where this wiki has been integrated.

Check it out here: [https://docs.northstar.tf/Wiki/](https://docs.northstar.tf/Wiki/)

The same page on the new wiki should be located here: [https://docs.northstar.tf/Wiki/hosting-a-server-with-northstar/server-settings/startup-args](https://docs.northstar.tf/Wiki/hosting-a-server-with-northstar/server-settings/startup-args)

{% endhint %}

Startup arguments can be added in the `ns_startup_args_dedi.txt` file.\
Example: `+setplaylist private_match +mp_gamemode ps`

| Arguments                  | Accepted Values                                                 | Description                                                               |
| -------------------------- | --------------------------------------------------------------  | ------------------------------------------------------------------------- |
| `+setplaylist`             | see [Gamemodes](./#gamemodes) (Should be the same as `mp_gamemode` unless you want a private match) | Set the server type (If it is not `private_match`, make sure you have also included `+map` and NOT `mp_lobby` or else you can't search your server in the game) |
| `+setplaylistvaroverrides` | see [PlaylistOverrides](./#playlist-overrides)                  | Edits the behaviour of the server                                         |
| `-port`                    | int beteween `1-65535`                                          | Determines which UDP port the server will listen to                       |
| `+mp_gamemode`             | see [Gamemodes](./#gamemodes)                                   | Forces the gamemode of the server                                         |
| `+map`                     | see [Maps](./#maps) (`mp_lobby` is the default if not included) | Forces the map of the server at the first start                           |

| Flags                 | Description                                                                    |
| --------------------- | ------------------------------------------------------------------------------ |
| `-maxplayersplaylist` | Allows [PlaylistOverrides](./#playlist-overrides) to override max player count |
| `-enablechathooks`    | Allows send the commands using in-game chat                                    |
| `-allowdupeaccounts`  | Allows the same account joining multiple times                                 |