|
|
| This article covers the complete setup process for a Necesse Dedicated server. | | This article covers the complete setup process for a Necesse Dedicated server. |
|
| |
|
| If you want to set up a Linux dedicated server specifically, you can follow [[Multiplayer-Linux|this guide]].
| | This page is for setting up a dedicated server in Microsoft Windows. To set up a dedicated server in Linux go to [[Multiplayer-Linux|this guide]]. |
|
| |
|
| 中文开服教程请参考:[[Multiplayer Chinese]] | | 中文开服教程请参考:[[Multiplayer Chinese]] |
|
|
| == Purchase a dedicated server == | | == Purchase a dedicated server == |
| If you'd rather purchase a dedicated game server hosted by a 3rd party, some of them are: | | If you'd rather purchase a dedicated game server hosted by a 3rd party, some of them are: |
| www.CitadelServers.com
| | * https://citadelservers.com/game-servers/necesse-hosting Citadel Servers |
| * [https://pingperfect.com/gameservers/necesse-game-server-hosting.php Pingperfect] | | * https://pingperfect.com/gameservers/necesse-game-server-hosting.php Pingperfect |
| * Any VPS hosting service, like AWS EC2 | | * Any VPS hosting service, like AWS EC2 |
|
| |
|
| == Downloading Server Files == | | == Downloading Server Files == |
|
| |
|
| Downloading the server files can be performed in two different ways, which are:
| | There are several ways to download the dedicated server files. |
| | |
| | '''Through Necesse's Official Website''' |
| | |
| | You can download server files for both the current game version and previous game versions at https://necessegame.com/server/ |
|
| |
|
| '''Through Steam''' | | '''Through Steam''' |
|
|
|
| |
|
| To change where the dedicated server is installed, use the command force_install_dir C:\Necesse | | To change where the dedicated server is installed, use the command force_install_dir C:\Necesse |
| | |
| That would tell SteamCMD to install the Necesse Dedicated server files to a folder called Necesse on your PC's C drive | | That would tell SteamCMD to install the Necesse Dedicated server files to a folder called Necesse on your PC's C drive |
|
| |
|
|
|
|
| |
|
| <code>quit</code> | | <code>quit</code> |
|
| |
| '''Through download'''
| |
|
| |
| You can also download the server files located at https://necessegame.com/server/
| |
|
| |
|
| == Port Forwarding == | | == Port Forwarding == |
|
| |
|
| The protocol and default port for Necesse is UDP and port 14159. You will need to open these ports on your router and server's Windows Firewall. | | The protocol and default port for Necesse is UDP and port 14159. You will need to open these ports on your router and the server's firewall. You can also use any port of your choosing. |
|
| |
|
| '''Router''' | | '''Router''' |
|
|
|
| |
|
| == Running the server == | | == Running the server == |
| | |
| To run the server, navigate to wherever you installed the server files, if you've followed the exact steps from this guide, it would be C:\Necesse | | To run the server, navigate to wherever you installed the server files, if you've followed the exact steps from this guide, it would be C:\Necesse |
|
| |
|
|
|
| Leave the dedicated server program window open to keep the server running, when you want to shut down the server, type "quit" into the text box and click "Enter" or click the X at the top right of the window. | | Leave the dedicated server program window open to keep the server running, when you want to shut down the server, type "quit" into the text box and click "Enter" or click the X at the top right of the window. |
|
| |
|
| == How to join the server == | | == Joining the Server == |
| Run the game from Steam | | |
| | Run the game from Steam. |
| | |
| | Click ''Multiplayer''. |
| | |
| | Click ''Add Server''. |
| | |
| | Type a name that will help you remember the server in the ''Name'' field. |
|
| |
|
| Click "Multiplayer"
| | Type your public IPv4 address in the ''IP address'' field. You can find that by going to https://whatismyipaddress.com/. |
|
| |
|
| Click "Add Server"
| | Type your server port which if you've followed this guide is 14159 in the ''Port Number'' field. |
|
| |
|
| Type a name that will help you remember the server in the "Name" field
| | Click ''Add'' |
|
| |
|
| Type your public IPv4 address (which can be found here: https://whatismyipaddress.com/) in the "IP address" field
| | Your server will now appear in the ''Multiplayer'' menu, double-click it to join or click it once then click ''Join Server'' |
|
| |
|
| Type your server port which if you've followed this guide is 14159 in the "Port Number" field
| | == Default File Locations == |
|
| |
|
| Click "Add"
| | The server configuration file is named ''server.cfg'' and is located at ''%appdata%\Necesse\cfg\''. |
|
| |
|
| Your server will now appear in the "Multiplayer" menu, double-click it to join (or click it once then click "Join Server")
| | The server logs are found at ''%appdata%\Necesse\logs''. Each server start will create a new log file with the log name being the date and time the server started. |
| | |
| | The server's world save data is located at ''%appdata%\Necesse\saves\''. Each world will have its own .zip file based on the name of the world. |
| | |
| | Inside each world save file you will find the worlds configuration file named ''worldsettings.cfg''. |
|
| |
|
| == Configuring the server == | | == Configuring the server == |
| If you want to change the configuration of your server (after the initial setup) you will need to edit some files. They can be edited using any Text Editor program, such as Notepad (pre-installed to all Windows based PC's)
| |
|
| |
|
| Before editing any configuration files, you should ALWAYS stop your server first.
| | After the initial setup and start of your server you can stop your server and then edit the configuration file to your liking using Notepad or a similar text editor. Do not make edits while the server is running. |
| | |
| | To edit the ''worldsettings.cfg'' config file navigate to the save path using the path above. |
| | |
| | ''Identify the world save you want to edit'' → ''Right Click'' → ''Extract Here''. |
| | |
| | Create a backup of your original world save zip file by just renaming it something different or add additional text to the file name to identify it as your original. |
| | |
| | You can now navigate to the world save folder now and edit the ''worldsettings.cfg'' file. |
| | |
| | Once you are done you can recreate your world save. ''Right-click'' the world save folder → ''Send to'' → ''Compressed (zipped) folder''. |
| | |
| | == Command line Arguments == |
|
| |
|
| To navigate to the server's configuration files (and save files) type %appdata% into the Windows search bar, then double-click the "Necesse" folder
| | In your .bat file there are several command line arguments that can be used. The below examples are based on using the "Start Server.bat" file included in the server download from "https://necessegame.com/server/". Specifically version "Windows64 – v0.22.0 build 12012395". The default command line in that file is ''start jre\bin\javaw.exe -jar Server.jar %*'' |
|
| |
|
| The server configuration file is named "server.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\cfg
| | '''-localdir''' |
|
| |
|
| The world configuration file is named "worldSettings.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\YourWorldNamehere.zip
| | You can add ''-localdir'' like so: |
|
| |
|
| The world is in a Compressed (zipped) .zip folder by default, meaning you will have to extract the files contained inside by right-clicking and selecting "Extract Here" - rename the original YourWorldNameHere.zip to something different.
| | ''start jre\bin\javaw.exe -jar Server.jar %* -localdir'' |
|
| |
|
| Then you need to edit the "worldSettings.cfg" file.
| | This argument will relocate the default game save path from ''%appdata%\Necesse\saves\'' to whatever folder the batch file was executed from. |
|
| |
|
| Then right-click the YourWorldNameHere folder, and hover over "Send to" and click "Compressed (zipped) folder"
| | For example, if my server is located at ''D:\necesse_server\necesse-server-0-22-0-12012395\'' but my server batch file is ran from ''D:\'' it will create all the save game data at ''D:\''. This can sometimes be undesirable so keep this in mind. If you would like to execute the batch file from outside the server folder a shortcut to the batch file can work to keep the save files within the server directory. |
|
| |
|
| == File Locations ==
| | '''-world worldnamehere''' |
|
| |
|
| '''By default''' | | You can add ''-world worldnamehere'' like so: |
|
| |
|
| The server configuration file is named "server.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\cfg
| | ''start jre\bin\javaw.exe -jar Server.jar %* -world testworld'' |
|
| |
|
| The world configuration file is named "worldSettings.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\YourWorldNamehere.zip
| | This argument will automatically start up the world save you specify in the argument bypassing the need to manually select the save. This is helpful if you have a want/need to automate the startup of your server. It CAN be used to initially setup a new world with default settings which you can then edit after creation. |
|
| |
|
| The save data is the .zip named according to the world name, and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\
| | '''-nogui''' |
|
| |
|
| The server logs are found at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\logs
| | You can add ''-nogui'' like so: |
|
| |
|
| | ''start jre\bin\javaw.exe -jar Server.jar %* -nogui'' |
|
| |
|
| '''Customizations'''
| | This argument is used to remove the GUI interface and run the server from a command prompt window instead. Keep in mind that if you like to see the real time server stats provided via the GUI interface, they are not visible via -nogui. You will have to run game commands for that info. |
|
| |
|
| Forcing configs to the game directory can be done with the -localdir parameter in bat file
| | If you happen to run -nogui AND -world at the same time, your server will be started windowless and in the background. Server commands will need to be ran from in game or some other external program. The server can still be viewed and terminated from within Windows Task Manager under the name ''OpenJDK Platform binary''. |