1

Topic: I cant start a teeworlds Server on Linux

Hello I have a Little problem, I cant start the Teeworlds_srv (application/x-executable).
If I kick it, it do nothing on screen. Only I can see that my computer do some for a sec.
I can`t start too the gamer client (https://www.teeworlds.com/forum/viewtopic.php?id=6279).
But I can start the Teeworlds. What is it happens ?
(the port is open (I have run the server on Windows some times Online!))

2

Re: I cant start a teeworlds Server on Linux

Can you run it from the terminal and paste the output it gives?

3

Re: I cant start a teeworlds Server on Linux

Are you sure you made the autoexec.cfg? or it can be wrongly written (sv_map_ctf_2) (sv_game_type_ctf), if you've written them like that or something, (they are wrong).

- Proud member of Inspire!
  - I make my own gfx :>
    - Developing a zombiemap that's gon' b huuuge!

4

Re: I cant start a teeworlds Server on Linux

Renekton wrote:

Are you sure you made the autoexec.cfg? or it can be wrongly written (sv_map_ctf_2) (sv_game_type_ctf), if you've written them like that or something, (they are wrong).

That won't stop the server from being started.

5

Re: I cant start a teeworlds Server on Linux

heinrich5991 wrote:
Renekton wrote:

Are you sure you made the autoexec.cfg? or it can be wrongly written (sv_map_ctf_2) (sv_game_type_ctf), if you've written them like that or something, (they are wrong).

That won't stop the server from being started.

For me it does on linux, if i type the commands wrongly it doesen't even start the terminal :(

- Proud member of Inspire!
  - I make my own gfx :>
    - Developing a zombiemap that's gon' b huuuge!

6

Re: I cant start a teeworlds Server on Linux

Try to use the Windows executable with Wine. (It will work with many mods and official gametypes... I know it cuzz' I use it smile)

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

7 (edited by TeePhoenix 2012-06-10 16:13:31)

Re: I cant start a teeworlds Server on Linux

Deleted.

The face of terrorism is called United States of America!

8

Re: I cant start a teeworlds Server on Linux

TeePhoenix wrote:

Start it from the terminal. Navigate to the correct directory (with cd) and use this "./teeworlds_srv -f config_file"

You should replace config_file with the real path of the config_file. If this still doesnt work, copy and paste the output of the terminal into this thread.

what do you mean by "navigate to the correct directory (with cd)" ?

- Proud member of Inspire!
  - I make my own gfx :>
    - Developing a zombiemap that's gon' b huuuge!

9

Re: I cant start a teeworlds Server on Linux

Renekton wrote:
TeePhoenix wrote:

Start it from the terminal. Navigate to the correct directory (with cd) and use this "./teeworlds_srv -f config_file"

You should replace config_file with the real path of the config_file. If this still doesnt work, copy and paste the output of the terminal into this thread.

what do you mean by "navigate to the correct directory (with cd)" ?

That means you use the following command in your terminal:

cd /path/to/your/teeworlds_folder

Just to remember you, this is done on linux. On Windows the syntax may be different, but in this topic we are talking about using the teeworlds_srv binary on linux.

HeroiAmarelo wrote:

Try to use the Windows executable with Wine. (It will work with many mods and official gametypes... I know it cuzz' I use it wink

I strongly recommend you NOT to do that. It is totally NOT necessary and from my experience, the teeworlds server runs much better on linux than on windows.
As it has been suggested before, try running the teeworlds_srv binary from the terminal. This will give you the error messages, if the server fails to start. It my be possible, that the binary is not executed from the correct path, if you just klick it in your file browser, which means the server won't find the data/maps folder, and thus won't find the map  you want to load and thus will not start (happened to me before). I believe this is the problem here and executing teeworlds_srv from the terminal after changing to the correct path will solve your problem.

10 (edited by shock 2012-11-24 09:53:50)

Re: I cant start a teeworlds Server on Linux

Hey, I seem to have the same problem with my stuff, what i did was:

I made a file called: Launch Server.sh and put:

./Speed -f speed.cfg

in it (The speed stuff is right, it's a mod im making..)

But it didnt work, so i ran it in console and got:

[50b07c70][server]: starting...
[50b07c70][datafile]: loading. filename='maps/Western.map'
[50b07c70][datafile]: allocsize=2244
[50b07c70][datafile]: readsize=1940
[50b07c70][datafile]: swaplen=1960
[50b07c70][datafile]: item_size=1572
[50b07c70][datafile]: loading done. datafile='maps/Western.map'
[50b07c70][server]: maps/Western.map crc is cad92fa4
[50b07c70][net]: failed to bind socket with domain 2 and type 2 (98 'Address already in use')
[50b07c70][net]: failed to bind socket with domain 10 and type 2 (98 'Address already in use')
[50b07c70][server]: couldn't open socket. port might already be in use

I seem to be able to run it, but i dont understand anything what is there, and it just closes if i use my .sh file...

Please help me aswell.. I hope it will help "black" aswell.

11

Re: I cant start a teeworlds Server on Linux

There's already a server running on that port.

12

Re: I cant start a teeworlds Server on Linux

shock wrote:

Hey, I seem to have the same problem with my stuff, what i did was:

I made a file called: Launch Server.sh and put:

./Speed -f speed.cfg

in it (The speed stuff is right, it's a mod im making..)

But it didnt work, so i ran it in console and got:

[50b07c70][server]: starting...
[50b07c70][datafile]: loading. filename='maps/Western.map'
[50b07c70][datafile]: allocsize=2244
[50b07c70][datafile]: readsize=1940
[50b07c70][datafile]: swaplen=1960
[50b07c70][datafile]: item_size=1572
[50b07c70][datafile]: loading done. datafile='maps/Western.map'
[50b07c70][server]: maps/Western.map crc is cad92fa4
[50b07c70][net]: failed to bind socket with domain 2 and type 2 (98 'Address already in use')
[50b07c70][net]: failed to bind socket with domain 10 and type 2 (98 'Address already in use')
[50b07c70][server]: couldn't open socket. port might already be in use

I seem to be able to run it, but i dont understand anything what is there, and it just closes if i use my .sh file...

Please help me aswell.. I hope it will help "black" aswell.

You need a hashbang:
put this on the first line of your bash script:

#!/bin/env bash

Also you may need to make the script executable. Like this:

$ chmod u+x Server.sh

And about that error messages: I guess you're running another server on that port. Try changing the port for on of these two servers. add this line in config file of one of them:

sv_port 8304
But... what if we tried more power?

13

Re: I cant start a teeworlds Server on Linux

Hello how i set upp server on Linux i dont know how hope somewon other do