Multiplayer
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 this guide.
中文开服教程请参考:Multiplayer Chinese
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
Locate the file called "StartServer.bat" and double-click it, a new window will appear, this is the dedicated server program.
You will be asked to name the world, type your desired world name into the text box and click "Enter"
If you want custom server options, type in "y" and click "Enter", if you do not, type "n" and click "Enter"
It will ask you to specify the "host port" this is the port we forwarded earlier, so type in 14159 and then click "Enter"
Then, it will ask for the amount of player slots, type in a number between 1 and 250, and click "Enter"
Next, it will ask whether you want a server password, if you do, type in the server password, don't type anything if you don't want a server password, and click "Enter"
It will ask you to specify custom spawn island, leave blank for random or enter a custom spawn island in the format: <x>,<y> and click "Enter"
Then you'll be asked to specify spawn seed, enter a random number or leave blank for random, and click "Enter"
You'll then be asked to choose whether to spawn the guide house, type in "y" for yes or "n" for no, and click "Enter"
Click "Enter" one final time, to start up the server.
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
Run the game from Steam
Click "Multiplayer"
Click "Add Server"
Type a name that will help you remember the server in the "Name" field
Type your public IPv4 address (which can be found here: https://whatismyipaddress.com/) in the "IP address" field
Type your server port which if you've followed this guide is 14159 in the "Port Number" field
Click "Add"
Your server will now appear in the "Multiplayer" menu, double-click it to join (or click it once then click "Join 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.
To navigate to the server's configuration files (and save files) type %appdata% into the Windows search bar, then double-click the "Necesse" folder
The server configuration file is named "server.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\cfg
The world configuration file is named "worldSettings.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\YourWorldNamehere.zip
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.
Then you need to edit the "worldSettings.cfg" file.
Then right-click the YourWorldNameHere folder, and hover over "Send to" and click "Compressed (zipped) folder"
File Locations
By default
The server configuration file is named "server.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\cfg
The world configuration file is named "worldSettings.cfg" and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\YourWorldNamehere.zip
The save data is the .zip named according to the world name, and is located at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\saves\
The server logs are found at C:\Users\YourPCUsernameHere\AppData\Roaming\Necesse\logs
Customizations
Forcing configs to the game directory can be done with the -localdir parameter in bat file