Posts: 12

Topic: [Tutorial] Raspberry Pi Raspian Teeworlds Server in Five Steps

I would recommend using screen ("apt-get install screen"). If you don't know what it is, go through these steps before you run any of the following steps. After you're done with this guide, look up screen tutorials and be amazed. Optional steps:

0.a. Run "apt-get install screen"0.b. Run "screen"

The steps to compile the server from source1. Check to make sure you have a) python3 and b) bam (apt-get install python3 bam)2. Get the source of the TW (for example TW+ zip file is here -- "wget https://github.com/Teetime/teeworlds/archive/v0.7.5.zip")3. Unpack/unzip everything (for example "unzip v0.7.5.zip")4. Go to your unpacked directory and run "bam server_release"5. Now, you have a binary file (for example tw+_srv) so you can run the command "./tw+_srv -f YOUR_CONFIG_FILE.cfg"

I'm not sure how the performances are, but on Pi 2, the server uses less than 5% CPU and 1% RAM (you can check this by using "top") so with ~20 kbps network traffic per player, make sure you tune your sv_max_clients accordingly. You also might be glad to know that previous versions of Pi have very good uptime (450 days of uptime so far).

There is one funny bug I noticed. I use an umlaut in my name (Päthos) and on the Pi server, my name shows up as Qäthos but without umlaut, it would just be Pathos. UTF8 is disallowed in the latest versions, so I'm assuming it has to do with that.

Well, Pi is popular and it's only $35 + SD card + power source, so I thought people might be interested in this instead of buying online services.

Re: [Tutorial] Raspberry Pi Raspian Teeworlds Server in Five Steps

Re: [Tutorial] Raspberry Pi Raspian Teeworlds Server in Five Steps

fisted wrote:

How's this different from building/running teeworlds on any other platform that runs linux, though?

It really isn't, but some Linux distros have different words for same commands. I asked someone if I can host on the Pi and told me to go through so many different unnecessary things "just because it's ARM" (really frustrating to go through chain tools) and really, this was all that was needed. The official tutorial was lengthy too.

Re: [Tutorial] Raspberry Pi Raspian Teeworlds Server in Five Steps

Re: [Tutorial] Raspberry Pi Raspian Teeworlds Server in Five Steps

you have to install a compiler (obviously). apt-get install build-essential

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)