User:Barrowisp/Draft2: Difference between revisions

From Vintage Story Wiki
standardized
No edit summary
(standardized)
Line 12: Line 12:
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 C:\Users\YourUsername\AppData\Roaming
# 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
# Open that folder and select the entire path from the address bar of File Explorer.  (example: C:\Users\YourUsername\AppData\Roaming\VintagestoryServer\VSserverData)
# Open that folder and select the entire path from the address bar of File Explorer.  (example: <code>C:\Users\YourUsername\AppData\Roaming\VintagestoryServer\VSserverData</code>)
# Open the game's application folder, it is <code>%appdata%/VintageStory</code> by default.
# Open the game's application folder, it is <code>%appdata%/VintageStory</code> by default.
# Create a shortcut of <code>VintagestoryServer.exe</code>.  This can usually be accomplished through the right-click menu; google instructions specific to your operating system version if needed.
# Create a shortcut of <code>VintagestoryServer.exe</code>.  This can usually be accomplished through the right-click menu; google instructions specific to your operating system version if needed.
# Open the Properties of the new shortcut.  This can usually be accomplished through the right-click menu.
# Open the Properties of the new shortcut.  This can usually be accomplished through the right-click menu.
# Click in the Target field of the shortcut's Properties, then go to the very end of what's written there.  Add one space, then <code>--dataPath=</code>, then Paste the folder path you copied earlier, in quote.  The entire contents of the Target field should now be something like this: <code>"C:\Users\YourUsername\AppData\Roaming\Vintagestory\VintagestoryServer.exe" --dataPath="C:\Users\YourUsername\AppData\Roaming\VintagestoryServer\VSserverData"</code>  
# Click in the Target field of the shortcut's Properties, then go to the very end of what's written there.  Add one space, then <code>--dataPath=</code>, then Paste the folder path you copied earlier, in quotes.  The entire contents of the Target field should now be something like this: <code>"C:\Users\YourUsername\AppData\Roaming\Vintagestory\VintagestoryServer.exe" --dataPath="C:\Users\YourUsername\AppData\Roaming\VintagestoryServer\VSserverData"</code>  
* 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 %appdata%/Vintagestory/VintagestoryServer.exe --dataPath "[PATH]"  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.   
Running the script will run the server with the alternate datapath, and will generate its own collection of config files there.  This is functionally equivalent to the modified link.  
Running the script will run the server with the alternate datapath, and will generate its own collection of config files there.  This is functionally equivalent to the modified link.  


Confirmedusers, editor
1,283

edits