1

Topic: Register to Master - Multi-server one account

Hi,

I've got a Debian Lenny who are hosting :
- 1 TDM
- 1 CTF
- 1 Duel
- 1 FFA
- 1 Instagib
All these servers are run by one account "teewars"
Here are one runfile

#!/bin/sh
GAME_PATH="/home/teewars/teeworlds-0.4.2-linux_x86"

cd ${GAME_PATH}
screen -S teeworldsDuel -d -m ${GAME_PATH}/teeworlds_srv \
        -f ~/.teeworlds/duel.cfg

All are working fine, I/you can see these servers on the master list.

I've got another box on Ubuntu 8.04 server
I do the same stuff as other server, except I've create a "teeworlds" user (it's "teewars" on my debian)
When running all of the server, sometime I see it on the master list, sometime no.
After some minutes, only one server is in the master list, other disappear.

Any body got the same issue ?

I've tryed teeworlds binary, and rebuilding from source.
I've tryed to change ports number, server name ...
I've always got that (if no player connect)

[481899d9][engine]: running on unix-linux-ia32
[481899d9][engine]: arch is little endian
[481899d9][console]: executing '/home/teeworlds/.teeworlds/duel.cfg'
[481899d9][console]: failed to open '/home/teeworlds/.teeworlds/autoexec.cfg'
[481899d9][datafile]: datafile loading. filename='data/maps/dm1.map'
[481899d9][server]: data/maps/dm1.map crc is e6991fb3
[481899d9][server]: server name is 'Teeworlds.Net - Duel 1'
[481899d9][datafile]: loading data index=10 size=325
[481899d9][game]: -- Death Match --
[481899d9][server]: version 0.4 1bd7780b0f76307c
[481899d9][engine/mastersrv]: refreshing master server addresses
[481899d9][register]: refreshing ip addresses
[481899d9][engine/mastersrv]: saving addresses
[481899d9][register]: fetching server counts
[481899dc][register]: choosen 'master1.teeworlds.com' as master, sending heartbeats
[481899dc][register]: no firewall/nat problems detected
[481899dc][register]: no firewall/nat problems detected
[481899dc][register]: server registered

And nothing ...

It's doing me crazy.

2

Re: Register to Master - Multi-server one account

Well, my server is doing the same in console, but stays active in the serverbrowser.

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

3

Re: Register to Master - Multi-server one account

But you have only one serv ?

4

Re: Register to Master - Multi-server one account

You need to replace the file path with the new path. Here is the code:

#!/bin/sh
GAME_PATH="/home/teeworlds/teeworlds-0.4.2-linux_x86"

cd ${GAME_PATH}
screen -S teeworldsDuel -d -m ${GAME_PATH}/teeworlds_srv \
        -f ~/.teeworlds/duel.cfg

Alternatively, rename the user.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

5

Re: Register to Master - Multi-server one account

lol, that's not the question Roanoke tongue

6

Re: Register to Master - Multi-server one account

Got the same problem now.

Has something to do with the Provider OVH.

The servers will stop here:

[481899d9][engine/mastersrv]: refreshing master server addresses
[481899d9][register]: refreshing ip addresses

Tested on Debian etch 4, same teewars_srv+settins at a german hosting works fine

7

Re: Register to Master - Multi-server one account

Seem working fine with server debug rlz !

Haaaaaaaarrrrrrrrrrrrrrrrrrrrrrrrrrrrr !!!!

8

Re: Register to Master - Multi-server one account

No ... it's not working in debug mode, server is available for 2 hours on the master list and disappear ;(

9

Re: Register to Master - Multi-server one account

Jeah i startet 9 Teewars servers at first server 1-5 were shown. Past 2 hours only 1 and 5 were left 2,3,4 dissapeared.

Then i restarted #1 and it dissapeared a bit later hmm

10 (edited by Kademlia 2008-05-03 14:38:27)

Re: Register to Master - Multi-server one account

I maybe got it!!
Okay here it is:

i got users Like tw1,tw2,tw3

tw1 worked fine
2 and 3 did not connect to master.

Past some tesing i found out that the ".teeworlds" folder of TW1 was owned by root and in TW2 and 3 it was owned by TW2 and 3....i changed to root and now they start...

EDIT: -.- nope ....

11

Re: Register to Master - Multi-server one account

Sry for tripple post but

GOT IT big_smile this time for real

Its a ugly workaround i think

Change: NUM_LOOKUP_THREADS from 4 to 1 in /src/engine/e_engine.c

12

Re: Register to Master - Multi-server one account

Good NEws, I will try it

13

Re: Register to Master - Multi-server one account

WORKING !

14 (edited by Poil 2008-09-02 20:45:47)

Re: Register to Master - Multi-server one account

This bug is always here in 0.4.3
This temporary fix working : NUM_LOOKUP_THREADS from 4 to 1 in /src/engine/e_engine.c

I'm on a Dedibox/Debian Lenny (before I was on a OVH box)

15

Re: Register to Master - Multi-server one account

my server only works when i leave the teeworlds_srv on how can i get it to always be on?

Bye.