Setting up a Multiplayer Server: Difference between revisions

From Vintage Story Wiki
Marked this version for translation
(update to 1.18.8 net7)
(Marked this version for translation)
Line 29: Line 29:
===== Requirements ===== <!--T:8-->
===== Requirements ===== <!--T:8-->


<!--T:109-->
* [https://dotnet.microsoft.com/en-us/download/dotnet/7.0 .NET Runtime 7.0] This should be all needed to run a Vintagestory server. Everything else is just for convenience to start and manage it.
* [https://dotnet.microsoft.com/en-us/download/dotnet/7.0 .NET Runtime 7.0] This should be all needed to run a Vintagestory server. Everything else is just for convenience to start and manage it.
* install <code>pgrep</code>, <code>screen</code> and <code>wget</code> using your systems package manager.
* install <code>pgrep</code>, <code>screen</code> and <code>wget</code> using your systems package manager.




===== Setup the server =====
===== Setup the server ===== <!--T:110-->


<!--T:17-->
<!--T:17-->
Line 102: Line 103:
----
----


==== Simple Server start command ====
==== Simple Server start command ==== <!--T:111-->
If you want to use a custom script or just manually start your server you can run  
If you want to use a custom script or just manually start your server you can run  
  dotnet VintagestoryServer.dll --dataPath /path/to/data
  dotnet VintagestoryServer.dll --dataPath /path/to/data
Line 190: Line 191:
tar xzf vs_server_linux-x64_1.18.8.tar.gz
tar xzf vs_server_linux-x64_1.18.8.tar.gz


<!--T:112-->
'''4. Change owner'''
'''4. Change owner'''


Line 221: Line 223:
   WantedBy=multi-user.target
   WantedBy=multi-user.target


<!--T:113-->
Make sure the new user has access to the <code>dotnet</code> command or replace the command with the full path to where you installed the dotnet runtime (if you picked a custom install). Or you can also use <code>ExecStart=VintagestoryServer --dataPath /srv/gameserver/data/vs</code> if you have the <code>DOTNET_ROOT</code> environment variable set.
Make sure the new user has access to the <code>dotnet</code> command or replace the command with the full path to where you installed the dotnet runtime (if you picked a custom install). Or you can also use <code>ExecStart=VintagestoryServer --dataPath /srv/gameserver/data/vs</code> if you have the <code>DOTNET_ROOT</code> environment variable set.


Confirmedusers, editor
37,784

edits