Author Topic: How to make a dedicated server?  (Read 1099 times)

 So I'm wondering how to make a dedicated server. I haven't been on Blockland for a long time, so I forgot how, and I think it's changed. Help, please?

If you're using steam, it doesn't come with a dedicated server(yet?)

You need to go blockland.us and install the game. When it asks for specific shortcuts, put a check on dedicated server. If you go into User/MyDocuments/Blockland/config/server there are multiple files. If you open prefs.cs with a notepad, you can change the settings of your server. If you want to implement addons on the server, you have to make sure they're in your addons folder, and then open add_on_list.cs with the notepad in the server config files to set values to 1.

Is there a way to do it without reinstalling blockland?

I reinstalled blockland, but there is no dedicated shortcut?

Also, I checked dedicated server shortcut. But there is no shortcut in program files blockland, or in server or in the documents blockland.

Creating a Dedicated Server (for Windows, non-Steam)

First, make a copy of your Blockland shortcut. Then right click on the new copy of the shortcut and go to Properties. Click the Shortcut tab.

The target field will look something like this:
Code: [Select]
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe"
To make this launch a dedicated server, add the -dedicated parameter to the end. It should now look like this:
Code: [Select]
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe" -dedicatedYou can now launch the server using that shortcut, but I recommend that you read below first.

(Optional) If you wish to start a specific game mode, add the -gamemode Name_of_GameMode parameter to the end of the target. If you don't do this, the server will default to the standard/custom mode. (which allows you to set your own add-ons and customize everything)

(Optional, but recommended) Set your dedicated server to use its own directory. (if you don't do this, it will use your current BL directory) Add this parameter to the end of your shortcut's target: -profilePath "C:\path\to\server folder"



Setting Up Your Server

Before you perform these steps, you should start your server at least once and then close it - doing so will create the pref files for you to edit. Note, these steps should be performed while the server is closed.

To change server settings, open the file called "prefs.cs" in the "config/server" folder.

To change which add-ons are enabled, open the file called "ADD_ON_LIST.cs" in the "config/server" folder. A 1 next to an add-on indicates it is enabled while a -1 indicates it is disabled.

To install new add-ons, simply place them in the add-ons folder.



Shutting Down Your Server

This might seem trivial, but most people don't know how to do this properly.

To shut down your server, enter quit(); in the server console.