fstd / teeworlds

A retro multiplayer shooter
http://teeworlds.com
Other
32 stars 13 forks source link

No Masters Servers Linux 32 Bit #90

Open lordraz0r opened 9 years ago

lordraz0r commented 9 years ago

Hi I use the Linux 32 bit build but it always reports no master servers. I tried running a DM server on the same server and it worked perfectly and reported to master servers. Also verified if it is a firewall issue and it is not. Please assist

fstd commented 9 years ago

Okay, I hope this isn't because I'm using getaddrinfo() from a statically linked binary. Could you try whether compiling OpenFNG from source gives something that works for you? Thanks for reporting

cleme29 commented 9 years ago

I don't know how to compile it so, The bug still exist, no news ?

fstd commented 9 years ago

@BloodMan29 I'd like to fix it, but what am I supposed to do, it (obviously) worked in my own tests. Someone affected by this bug needs to compile OpenFNG from source, otherwise there is little to no chance of isolating the problem. @lordraz0r didn't provide any more feedback. Compiling OpenFNG isn't difficult. I can even guide you through the process.

Catch me on IRC. #OpenFNG on irc.quakenet.org

fstd commented 9 years ago

It seems like my original guess was correct and this is in fact due to using getaddrinfo() in a statically linked binary. Apparently, static linking isn't really supported by the GNU idi^H^H^Hpeople anymore.

There's nothing i can do about it (other than perhaps trying to avoid all DNS resolutions in the server, although this would mean the master servers have to be hardwired. Not a good idea.)

So i'll probably use this fact as an excuse to drop support for binary releases altogether. I mean, why are people using prebuilt binaries on Linux anyway.. Oh right, compiling form source is 'too difficult'.

I might replace the binary releases with a script that tries to automate as much as possible of the build process.

fstd commented 9 years ago

I might replace the binary releases with a script that tries to automate as much as possible of the build process.

74cac2f08275fbfa15a533d59547374f17df0fb6 adds that (openfng.sh). When run, it will attempt to build and then launch openfng, arguments given to it are passed on to OpenFNG.

This means the correct procedure to run OpenFNG on Linux is now: git clone https://github.com/fstd/teeworlds.git cd teeworlds ./openfng.sh -f openfng.cfg #(or any other config file)

This will update (if there are new commits), then build and run teeworlds. Unnecessary rebuilds are avoided.

This renders the prebuilt linux binaries obsolete.