Author Topic: Dedicated server for v21  (Read 3153 times)

Hey guys, I've tried searching the forums but I haven't really found any ways to make a dedicated server for v21 (I'm probably just not looking hard enough). If you would, please tell me how to. I've tried the dedicated.bat making stuff but I'm probably doing it all wrong. Thanks for any help I get!

You could reinstall Blockland and activate the dedicated servers so they are made automatically.
Not sure if this can be done with the Steam version of Blockland (no way of testing)


Otherwise, your best bet is to make a dedicated.bat

Just create a txt file and write:
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe" -dedicated -map Custom
(or to wherever you installed Blockand, maybe an other drive)

Then change the [whatevername].txt to [whatevername].bat

To  be able to do this, you need to be able see common extensions.
This is turned off by default on Windows 7 (not sure why as it can lead to security issues when it is off)
To turn it on, just change this setting:
http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-7

If you're on Steam you can't, if you're not on steam you can just re-install and it'll ask you if you want to make a shortcut for dedicated server launching.

Quote
Creating a Dedicated Server (for Windows)

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.

Thanks all, I figured it out! Locking.