-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a dedicated Hosting on windows file #223
Open
NoCatt
wants to merge
18
commits into
R2Northstar:main
Choose a base branch
from
NoCatt:hosting-on-windows
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b312ddd
add hosting on windows file
NoCatt 0117b90
Merge branch 'main' into hosting-on-windows
NoCatt b4ca586
remove "best practices"
NoCatt 08c76d6
move information from best practices
NoCatt 7c42922
delete best pracitice file
NoCatt 8a376b2
Merge branch 'hosting-on-windows' of https://github.com/NoCatt/Norths…
NoCatt dc083e4
Merge branch 'main' into hosting-on-windows
NoCatt 7a14166
re add file
NoCatt c5c50f2
re add content to file
NoCatt da21cdd
Merge branch 'hosting-on-windows' of https://github.com/NoCatt/Norths…
NoCatt 68d9462
re add to SUMMARY
NoCatt 32485fd
Merge branch 'main' into hosting-on-windows
NoCatt e272c02
remove .md
NoCatt 0ed80a6
Update docs/hosting-a-server-with-northstar/dedicated-server/hosting-…
NoCatt d047813
Merge remote-tracking branch 'origin/main' into hosting-on-windows
GeckoEidechse 3b2aeaa
Update source file based on main
GeckoEidechse b36f81b
Update source file based on main
GeckoEidechse 7ef8600
Merge branch 'main' into hosting-on-windows
GeckoEidechse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
docs/hosting-a-server-with-northstar/dedicated-server/hosting-on-windows.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Hosting on Windows | ||
|
||
## Hardware | ||
|
||
{% hint style="info" %} | ||
TODO: If you have experience in hosting Northstar servers and want to share your knowledge, please open a [pull request](https://github.com/R2Northstar/NorthstarWiki/pulls). | ||
{% endhint %} | ||
|
||
## Minimum requirements | ||
|
||
The current minimum requirements are as follows: | ||
|
||
**Requirements per server:** | ||
|
||
- 8GB free disk space (5GB of the game and 3 for Origin/EA app) | ||
- 3+ cores (2 might work, though) | ||
- 3GB+ total memory (RAM or swap will do) | ||
- Windows 8.1 | ||
|
||
**Per instance:** | ||
|
||
- 2GB RAM (this is what's actually used; it does drop to ~1.2GB after a bit) | ||
- 15 Mbps network upload, but 10 is workable, 25 if you want to avoid players getting disconnected when going back to the lobby after a match | ||
|
||
**Note:** It is recommended to surpass the listed requirements. Currently the number of available servers covers the daily playerbase more than enough. If you're planning to host public servers for the community it is therefore recommended to either fill a niche (like a gamemode that is so popular that all existing servers are full) or provide a better service than existing hosts (less lag, more stable, etc.). | ||
|
||
|
||
## Setup | ||
|
||
Dedicated servers allow you to host a Northstar server without having to use a full client, making them more lightweight and easier to host for longer periods of time.\ | ||
To start a dedicated server on Northstar, launch NorthstarLauncher.exe with the argument `-dedicated`, this can be done manually, but releases also provide the batch file `r2ds.bat`, which will also do this.\ | ||
When using a dedicated server, arguments are read from `ns_startup_args_dedi.txt`, rather than `ns_startup_args.txt`. | ||
|
||
#### Useful configuration files | ||
|
||
* `ns_startup_args_dedi.txt`\ | ||
contains the [startup arguments](../server-settings/README.md/#startup-arguments) | ||
* `R2Northstar\mods\Northstar.CustomServers\mod.json`\ | ||
contains [ConVars](../server-settings/convars.md) default values | ||
* `R2Northstar\mods\Northstar.CustomServers\mod\cfg\autoexec_ns_server.cfg`\ | ||
contains [ConVars](../server-settings/convars.md) and [overrides](../server-settings/playlistvars.md) | ||
|
||
### Dedicated Server Caveats | ||
|
||
At the moment, dedicated servers still require DirectX 11 to work, which typically requires a physical GPU, though they use almost no GPU processing power while in use, this can be an issue especially on GPU-less setups, so the launch argument `-softwared3d11` can be used to force DirectX to run in software mode.\ | ||
While this is absolutely not ideal, it's the best solution for truly headless dedicated servers at the moment, and surprisingly hardly uses any CPU time, though it can use roughly up to 1GB of RAM.\ | ||
Regarding RAM usage, dedicated servers also use significant amounts of RAM at the moment, often requiring 1.5-2GB, though I expect this to lower as development continues. | ||
|
||
## Optimization Commands (Optional) | ||
|
||
| Command | Description | | ||
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | ||
| `net_compresspackets 1` | Enable compress packets | | ||
| `net_compresspackets_minsize 64` | Decrease usage from ~12-16 mbps to ~6-8 mbps on 20 player PVP server and ~9-12mbps to ~5-7 mbps on 12 player gun game server | | ||
| `sv_maxrate 127000` | Sets the maximum bandwidth rate allowed (both incoming/outcoming) per second (in bytes) | | ||
|
||
**Note:** The effect is dependent on your network, system, etc. Therefore, you should really add the command one by one and test it to see if there is any benefit for your server. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't feel fitting for Windows hosting page tbh ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tooooo much copy paste