User:Barrowisp/Draft2: Difference between revisions

From Vintage Story Wiki
no edit summary
(standardized)
No edit summary
Line 10: Line 10:
==== Dedicated Servers on Windows ====  
==== Dedicated Servers on Windows ====  


To keep your multiplayer server's settings from interfering with your single-player settings, use a custom --dataPath argument.  Shortcut method:
To keep your multiplayer server's settings from interfering with your single-player settings, use a custom --dataPath argument.   


'''Shortcut method:'''
# Navigate to the location where you will store the server's data, such as a new VintagestoryServer folder created in <code>C:\Users\YourUsername\AppData\Roaming</code>
# Navigate to the location where you will store the server's data, such as a new VintagestoryServer folder created in <code>C:\Users\YourUsername\AppData\Roaming</code>
# Create a folder for the server's data and give it a clear name, such as VSserverData
# Create a folder for the server's data and give it a clear name, such as VSserverData
Line 21: Line 22:
* Optional: you can move/copy the shortcut, to your desktop and/or your new VintagestoryServer folder
* Optional: you can move/copy the shortcut, to your desktop and/or your new VintagestoryServer folder


Batch script method (functionally equivalent to the shortcut method above):
'''Batch script method''' (functionally equivalent to the shortcut method above):
# To create a batch script, simply create a blank text document and rename it with the .bat file extension.   
# To create a batch script, simply create a blank text document and rename it with the .bat file extension.   
# You can edit it by right clicking and selecting edit.  Then just type <code>%appdata%/Vintagestory/VintagestoryServer.exe --dataPath "[PATH]"</code>  replacing [PATH] with the desired path for the server's data, then save and close.   
# You can edit it by right clicking and selecting edit.  Then just type <code>%appdata%/Vintagestory/VintagestoryServer.exe --dataPath "[PATH]"</code>  replacing [PATH] with the desired path for the server's data, then save and close.   
Line 28: Line 29:
Next:  
Next:  
* Run the ''shortcut you made'' of <code>VintagestoryServer.exe</code> or the batch script.
* Run the ''shortcut you made'' of <code>VintagestoryServer.exe</code> or the batch script.
* If Windows Firewall asks for permission, grant any necessary access
* If Windows Firewall asks for permission, grant any necessary access.
* You might need to forward port 42420 on your internet router if you want the server to be accessible from outside of your local network (for example, anyone who isn't on the same WiFi as you).
* You might need to forward port 42420 on your internet router if you want the server to be accessible from outside of your local network (for example, anyone who isn't on the same WiFi as you).  The process for this depends on your router model.


{Where should they turn if the above didn't work as expected?}
{Where should they turn if the above didn't work as expected?}
Confirmedusers, editor
1,073

edits