1 (edited by wappsify 2013-11-06 20:56:54)

Topic: [MISC] How to set up your own working online server on Windows

http://i.solidfiles.net/647dd.png
If any of the images in this post don't load for you, refresh the page!

I know, that there are several tutorials on how to create a server, but I didn't find one here in the official forum, so I tried my best. It would be cool, if someone could write tutorials for the other operating systems, because I actually have no knowledge with them.
In this tutorial I will show you how to create an homeserver, what means the server will be down, when you shutdown your computer or have no internet connection!

After you have succesfully forwarded a port with this guide, you may now create an online server.


http://i.solidfiles.net/e0703.png
Setting up a server is as simple as logic.

  • First, you may want to create a new folder, so everything has an order. Call the folder 'Server stuff'.

  • In your teeworlds folder should be a file called teeworlds_srv.exe.

  • Copy and paste it in your new created folder.

  • Right-click on it and create a shortcut.Call this shortcut however you want, I called mine 'Start Server'.

Now it gets a little bit more complicated:

  • Right-click your shortcut and press 'Properties'.

  • In the textbox 'Target', there should be some text. Go to the end of it and add:

-f serverconfig.cfg

It should now look like this:http://i.solidfiles.net/88d71.png

  • Apply the changes and close the 'Properties' - window.

  • Create a new text document and name it serverconfig.cfg (if you don't see the file extension, make sure you enable the option to see it:

    • Press 'Organize' http://i.solidfiles.net/7dc3.png

    • Press 'Folder and Search Options'

    • Change to the tab 'View', scroll down and disable 'Hide Extensions for known file types'.

    You should now see the extensions.)

  • Open this serverconfig.cfg and edit it. Here you configure your server, for example the name, maximum of players, gametype, map and so on. To see the full list of what commands you can use with vanilla servers, see the documentation.

http://i.solidfiles.net/0a45.png
Some members wanted me to explain how to create a config file, I'm going to show it here:
These are only the most important commands, there are more, but they are not needed to create a working server.

  • The most important command in a config file is for sure: sv_name
    This will declare the name of your server in the server browser and in most cases the players will decide whether they join your server or not because the name. You should not take a name like wApPs.WaRpAiNt'S uLtRa MeGa CoOl cTf aNd tDm sErVeR!!!!!!!!!!!!!
    This is annoying to read and no player wants to join a server with an annoying name. You should take a name, that contains useful informations about the server: Is it a fun server or a clanwar(or something similar) server? What skill level should the players have? Is it a 1on1,2on2,3on3 (and so on) server?
    For example this would be a good name: 2on2 - CTF - Fun Server - Pro's and Newbie's allowed
    This is just an example, you may want to add some more individual informations.
    Finally your first line in your config file could look like this:
    sv_name 2on2 - CTF - Fun Server - Pro's and Newbie's allowed

  • With sv_port you declare which port the server should use to connect to the master server. You can only take ports above 8303, because the other ports won't connect to the master server.
    When you want to take 8303 you can write sv_port 8303, or just delete the whole sv_port thing as 8303 is the default value.

  • Another important command: sv_max_clients. This declares how much players can join your server. The default value is 12 and the highest is 16. Important: A teeworlds server needs a good upload speed, so when you know, that your internet connection is not the best, it'll be the best to lower sv_max_clients to 8, because with more players your server will definitely start to lag and players will leave.

  • sv_map is the command to define with which maps the server starts. (A mapping tutorial is located here.)

  • One important command is also sv_rcon_password. With this command you define the password used to login to the server. Press F2 ingame to enable the rcon console and then type in your password. After you logged in, you can use these commands.

  • With sv_scorelimit and sv_timelimit you defind how long a game can be or after how many points a game will end. sv_timelimit is declared in minutes.

  • You can define the gametype of your server with sv_gametype. Possible variables are dm, tdm and ctf.

  • Finally you can add the Motto of the Day with sv_motd. This motto will show up when a player joins the server and can contain some advanced information about the server: Who is the hoster? Where is it hosted? Home-or Rootserver?

Here is my example:

sv_name 2on2 - CTF - Fun Server - Pro's and Newbie's allowed
sv_port 8303
sv_max_clients 16
sv_map ctf2
sv_rcon_password yaup //yet another useless password ;)
sv_scorelimit 500
sv_timelimit 60
sv_gametype ctf
sv_motd Hosted by wapps.warpaint. in Germany. It's a homeserver, don't except a low ping.
password 123

You can also download it here.
=================================================================================

  • After editing, save your *.cfg file in the 'Server stuff' folder and doubleclick the shortcut you created. The server should start without showing errors.

http://i.solidfiles.net/e0d51.png
You now have your own server. You can join it in the LAN-tab or just connect to 'localhost:port'!
It is normal, that you cannot see your server in the Internet tab of the server browser.

For mods it's the same procedure, just use the teeworlds_srv_mod.exe, create a shortcut and so on. But most mods have commands, that differ from the vanilla ones, so the official website cannot list these.

wapps.

burn the land and boil the sea, you can't take the sky from me.

2

Re: [MISC] How to set up your own working online server on Windows

I think that it's good that you made such a tutorial, but I don't like that you only show how to host one with the "ServerManager". This is optimal for people that host a server for some friends for a few hours, but it doesn't help you when you are intending to host servers in a professional way. But anyway...

Good Job smile

3

Re: [MISC] How to set up your own working online server on Windows

You maybe should include Teeworlds Server Creator as a simpler way.

The funny about this signature is that you
don't realize until now that it's a useless signature
but it's too late to stop reading.

4

Re: [MISC] How to set up your own working online server on Windows

24Hours wrote:

You maybe should include Teeworlds Server Creator as a simpler way.

This is a very portable, simple way to get your Teeworlds server working with every version / modification. And imo it's really not much different on other OS.

Not Luck, Just Magic.

5

Re: [MISC] How to set up your own working online server on Windows

GBKing wrote:

I think that it's good that you made such a tutorial, but I don't like that you only show how to host one with the "ServerManager". This is optimal for people that host a server for some friends for a few hours, but it doesn't help you when you are intending to host servers in a professional way. But anyway...

Good Job smile

If you're a serious about hosting you do not use Windows.

6

Re: [MISC] How to set up your own working online server on Windows

Kottizen wrote:

If you're a serious about hosting you do not use Windows.

If you're serious about hosting and only have your homeserver with few disk space?

Not Luck, Just Magic.

7

Re: [MISC] How to set up your own working online server on Windows

I wanted to include TSC, but I think it is for 0.5.2 only?!

burn the land and boil the sea, you can't take the sky from me.

8

Re: [MISC] How to set up your own working online server on Windows

TSC works.
Only the addvote command and the implemented mods are outdated.

9

Re: [MISC] How to set up your own working online server on Windows

Okay, when I have time, l'm going to add a second tutorial for TSC in this topic.

burn the land and boil the sea, you can't take the sky from me.

10

Re: [MISC] How to set up your own working online server on Windows

wapps.warpaint. wrote:

Okay, when I have time, l'm going to add a second tutorial for TSC in this topic.

Please do not do so unless you provide a version that is 100%-compatible with 0.6.0. (That's my opinion.)

11

Re: [MISC] How to set up your own working online server on Windows

wapps.warpaint. wrote:

Okay, when I have time, l'm going to add a second tutorial for TSC in this topic.

I think your tutorial is already clear enough and adding an unofficial tool support to make it 'easier' will only make the whole darker.

Not Luck, Just Magic.

12

Re: [MISC] How to set up your own working online server on Windows

Kottizen wrote:

If you're a serious about hosting you do not use Windows.

It didn't say the Windows part in the title yet! wink

13

Re: [MISC] How to set up your own working online server on Windows

Kottizen wrote:

If you're a serious about hosting you do not use Windows.

Well at least set up your own server trough the config file so you get all the details right. There are a few commands that are missing from the documentation, but it's quite complete. Therefore I don't see the use of this. If you wanna make a real tut replace TSC with details about the cfg file and where is it located and stuff. You should get help to make it multiplatform too. IMO it's not complete.

14 (edited by wappsify 2011-06-13 14:34:38)

Re: [MISC] How to set up your own working online server on Windows

So I should not write a tutorial about the TSC (I think, TSC is quite self-explaining, too), but explain the building of a correct config file? I think, you are right with this. smile

€: I added a section about creating a config file, I'm open to suggestions.

burn the land and boil the sea, you can't take the sky from me.

15 (edited by AntonRich 2011-06-25 08:01:06)

Re: [MISC] How to set up your own working online server on Windows

Thanky you, Now I have a home server for my local network battle.

16

Re: [MISC] How to set up your own working online server on Windows

TSC dosen't work in compilation of DDrace. -.-

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

17

Re: [MISC] How to set up your own working online server on Windows

Ever thought that TSC is getting old?

Once in a century...

18

Re: [MISC] How to set up your own working online server on Windows

does it is just Lan ?

Teecrusaders clan
Teenews!
Leefy's blog! Never give up! on the way of becoming a programer! wink

19

Re: [MISC] How to set up your own working online server on Windows

After going through this tutorial you may host a online server or a LAN one.
The command for this is sv_register 0/1, while 1 is for online and 0 for LAN.

burn the land and boil the sea, you can't take the sky from me.

20

Re: [MISC] How to set up your own working online server on Windows

That's wrong.
sv_register 1 means your server is gonna say to the master server of teeworlds he wants to be listed in teeworlds server.
If sv_register 0, then your server won't be in the list, but if you give your IP to someone, he can join it.
So, sv_register isn't a settings for lan/online at all...

21

Re: [MISC] How to set up your own working online server on Windows

sv_register 0/1, while 1 is for online and 0 for LAN.

Does this makes it Lan ?

---

cause I want it Lan

Merged two posts. /Kottizen

Teecrusaders clan
Teenews!
Leefy's blog! Never give up! on the way of becoming a programer! wink

22

Re: [MISC] How to set up your own working online server on Windows

If you do sv_register 0, nobody will know your server exist cause it won't appear in teeworlds server list.
If you only wanna have your server in lan-only you should use
sv_bindaddr localhost

23

Re: [MISC] How to set up your own working online server on Windows

Thanks smile

Teecrusaders clan
Teenews!
Leefy's blog! Never give up! on the way of becoming a programer! wink

24

Re: [MISC] How to set up your own working online server on Windows

Create a new text document and name it serverconfig.cfg

........?????????

Teecrusaders clan
Teenews!
Leefy's blog! Never give up! on the way of becoming a programer! wink

25

Re: [MISC] How to set up your own working online server on Windows

wapps.warpaint wrote:
I will show you how to create an homeserver, what means the server will be down, when you shutdown your computer or have no internet connection!

That my server will go down means that it will be destroyed or that I will not be able to acces it from other computer?

Teecrusaders clan
Teenews!
Leefy's blog! Never give up! on the way of becoming a programer! wink