Teeworlds is a free 2D multiplayer game which can handle up to 16 players in a variety of game modes, including Team Deathmatch and Capture The Flag.
Teeworlds Dedicated Server can be run as a Windows Service using FireDaemon Pro. FireDaemon Pro will allow you to start your Teeworlds Dedicated Server automatically at boot prior to login, start multiple instances of Teeworlds Dedicated Server and restart Teeworlds Dedicated Server should it crash. This HOWTO will show you how to set it up. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via your web browser.
Teeworlds Dedicated Server Setup Under FireDaemon Pro
First download and extract the latest Windows Zip of Teeworlds. By default all files in the zip are located in a folder named "teeworlds-X.X.X-winXX" but this makes updating the server a pain because each update would go into a new directory so for the purposes of this HOWTO we will be extracting the contents of the above folder into "C:\Teeworlds".
The Windows ZIP does not include any server configuration files. The config is included at the bottom of this HOWTO. Save the text of the config file as serverconfig.cfg in "C:\Teeworlds". Open it and edit the settings as you desire.
Next, start the FireDaemon Pro GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust paths to suit your installation.
Executable: The path to your teeworlds_srv.exe file. For the purposes of this HOWTO, the path is C:\Teeworlds\teeworlds_srv.exe.
Working Directory: The directory containing your teeworlds_srv.exe file. For the purposes of this HOWTO, the path is C:\Teeworlds.
The most important field on the tab is the Parameters. The Parameters define the initial setup of your server. Here's the full parameters list you should have:
"-f serverconfig.cfg" - Loads the server configuration. This command should never be removed.
Now click on the Settings tab. If you DON'T want to see Teeworlds Dedicated Server running, uncheck the Interact with Desktop check box. You must run Teeworlds Dedicated Server as the user you installed it as. In the Logon Account field type your username (eg. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which cores the dedicated server will run on.
Now click on the Lifecycle tab. Uncheck Graceful Shutdown and check Console Application.
Now click on the Install button to install and start Teeworlds Dedicated Server! If you are running Windows Vista or later your server will start on Session 0. You will need to switch desktops to see your server running.
Example Teeworlds Dedicated Server Configuration File
// Server Name
sv_name "Teeworlds Server"
// Server Port (8303 is the default port)
// Max Player Slots
// Map To Load On Server Start
// Rcon Password (It's critical that you change this)
// Score Limit Before Map Change
// Time Limit Before Map Change
// Server MOTD
// Max limit of 616 characters. All text must be on same line for this setting. If you want // new lines to appear in-game, prefix them with: /n
sv_motd "Here is a motd/nThis is on the second line/nAnd this is on the third line."
// Server Password (Uncomment and set password to enable)