1

Topic: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Well, I've seen some reports of issues with the server browser and joining server in 0.3.4. As I don't have access to a computer with this bug I'm hunting in the blind pretty much. I have some theories about it but I need some help to nail it down.

So, here is what we are going to do. I want you to perform a couple of small test and report the result in this thread.

1. Make sure that 0.3.3 works. Browsing servers and joining games. It will not display all server but this is expected.
2. Try out 0.3.4. If it works like it should, you are done.
3. If the server browser doesn't display the servers or you can't join a game, try relaunching. If that doesn't work, wait 3 minutes and press refresh.

So, there is the small things that I want to test. And this is the information that I want.

Location: Country
Connection: Wired/DSL/Cable/etc, Downspeed and upspeed.
CPU: Cpu model, if you know,
OS: Linux(dist+kernel) / Windows(xp/vista+servicepack) / OS X(version + intel or ppc)
Network Chip: Name of the network chip, if you know
0.3.3: Works / Describe issue
0.3.4: Works / Describe issue

If you don't wanna give away some info thats ok. Mine would look like this:

Location: Sweden
Connection: Wired, 10mbit down, 10mbit up
CPU: Core 2 Duo E6400
OS: Xubuntu 7.10 Linux (Linux dune 2.6.22-14-generic #1 SMP Tue Dec 18 05:28:27 UTC 2007 x86_64 GNU/Linux)
Network Chip: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
0.3.3: Works
0.3.4: Works

It would be great if you all could help out and nail this bug smile

2

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: Sweden
Connection: Wired, 2mb down 0.5mb up
CPU: AMD Athlon 64 X2 dual core 4600+
OS: Windows XP sp2
Network Chip: Some funky wired stuff. No wireless.
0.3.3: Works
0.3.4: Works


---------------------


Location: Sweden
Connection: Wired, 2mb down 0.5mb up
CPU: Old 1ghz
OS: Linux mint, newest generic kernel, cant check exact version atm.
Network Chip: Some funky wired stuff. No wireless.
0.3.3: Works
0.3.4: Works

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

3

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: USA
Connection: Cable with wireless router, 4.45 MB down 44 KB up
(Note: my findings may be a bit off, trying to work around zypper which is updating my system)
CPU: AMD Turion 64 dual core TL-56
OS: openSUSE 10.3 Linux kernel 2.6.22.17-0.1-default
Network Chip: On my laptop so my wireless card is used, Broadcomm BCM94311MCG wlan mini-pc
0.3.3: Works with no problems
0.3.4: Game locks up when trying to connect to a game server with out waiting about 5 minutes before telling it to connect.

4 (edited by ShootMe 2008-02-22 03:37:56)

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: USA
Connection: Cable 5mb down/ 2mb up
CPU: AMD Athlon XP 2800+
OS: Windows XP SP2
Network Chip: NVIDIA nForce Networking Controller
0.3.3: Works Fine
0.3.4: Works Fine

As well
CPU: Intel Pentium 4 Dual Core 3.2GHz
OS: Windows XP SP2
Network Chip: Realtek RTL8139 Family PCI Fast Ethernet NIC
0.3.3: Works Fine
0.3.4: Works Fine

5

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: Italy
Connection: Wired (ADSL) 4mb down/ 256kb up
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4000+
OS: Arch Linux (Linux light 2.6.24-ARCH #1 SMP PREEMPT Sun Feb 10 15:21:33 UTC 2008 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux)
Network Chip: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0.3.3: Works Fine
0.3.4: Works Fine

Dio Bastardo!

6

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: Netherlands
Connection: DSL: 3.4mbit / 768kbit
CPU: Core Duo 1.83Mhz
OS: Mac OS X 10.5.1 intel
Network Chip: Apple Yukon2
0.3.3: Works
0.3.4: Works

--

Location: Netherlands
Connection: DSL: 3.4mbit / 768kbit
CPU: Core 2 Duo 2.6ghz
OS: Mac OS X 10.5.2 intel
Network Chip: Broadcom BCM4312
0.3.3: Works
0.3.4: Works

7

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

I got a possible fix. If there is anyone who has this problem, I hope that you can compile the game. Open up src/engine/e_system.c and search for net_host_lookup. Replace that function with this.

int net_host_lookup(const char *hostname, unsigned short port, NETADDR4 *addr)
{
    struct addrinfo hints;
    struct addrinfo *result;
    int e;
    
    mem_zero(&hints, sizeof(hints));
    hints.ai_family = AF_INET;

    e = getaddrinfo(hostname, NULL, &hints, &result);
    if(e != 0 || !result)
        return -1;

    sockaddr_to_netaddr4(result->ai_addr, addr);
    freeaddrinfo(result);
    addr->port = port;
    return 0;
}

Compile and try again. You can follow this guide on how to compile it: http://www.teewars.com/?page=docs&id=293
If futher assistance is needed, just ask in this thread.

8 (edited by vendion 2008-02-23 03:14:07)

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

That was fast, I made the correction but I can't seem to find the needed file to compile it, the guide says this

# cd bam
# ./make_unix.sh
# cd ../teewars-0.3.2-src
# ../bam/src/bam TARGET

I can't find the directory bam and I can't find the make_unix.sh file.

9

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

This should help: http://ix.teewars.com/trac/wiki/CompilingEverything

10 (edited by Fritz 2008-02-23 06:39:36)

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

In case you the fix isn't complete, here is my info:

Location: USA
Connection: Cable (6 MB Down, 1.5 MB Up)

Computer 1
  CPU Info:
    model name      : AMD Sempron(tm)   2200+
    cpu MHz         : 1494.386
    cache size      : 256 KB
  Network: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
  OS (Linux):
    Distro: Ubuntu 7.10 (Feisty Fawn)
    Kernel: 2.6.22-14-386 i686
  0.3.3: Works
  0.3.4: Works

Computer 2
  CPU Info:
    model name      : Genuine Intel(R) CPU T2500  @ 2.00GHz (Dual Core)
    cpu MHz         : 1000.000
    cache size      : 2048 KB
  Network: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
  OS (Linux):
    Distro: Ubuntu 7.10 (Feisty Fawn)
    Kernel:  2.6.20-16-generic #2 SMP i686
  OS (OS X )
    Version: 10.4 (Tiger)
  0.3.3: Works (Both Operating Systems)
  0.3.4: Works (Both Operating Systems)

11

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

So, what is bam?  I kind of like to know what I compile onto my system.

12

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Bam is a build system.

http://stalverk80.se/svn/bam/docs/bam.1.txt

13

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Location: Germany
Connection: DSL, 128KiBytes/s down, 16KiBytes/s up
CPU: AMD Athlon64 X2 6000+
Network: NVIDIA nForce Networking Controller, over a Network Bridge and a DLink Router
OS: WinXP Pro SP2
0.3.3: Worked well
0.3.4: Sometimes no servers in the list, but I am not sure if it were the filtering options or a internal problem, since I both clicked refresh and cleared the filterings all the time, but I will check in the future.

greetings Lord Horazont

Servers:
For normal games: /usr/games/teeworlds/teeworlds_srv
For highly tuned and totally freaky games: /usr/games/teeworlds/teeworlds_special

14 (edited by vendion 2008-02-24 20:50:27)

Re: Bug hunt: Serverbrowser / Connect issues with 0.3.4

Linux ¶

You need these packages if you run Debian/Ubuntu/etc.

libasound2-dev, libglu1-mesa-dev, mesa-common-dev and xlibs-dev

Those dependencies only for DEB based distros, the wording on that page has me confused?  If those dependencies are needed for all Linux distro's then might I suggest that the "if you run Debian/Ubuntu/etc." part be removed because that lead me (and may do the same to others) that it is only for distros that use .deb binary packages.