Results 1 to 9 of 9

Thread: Getting server status from Q3 Engine

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Nov 2013
    Posts
    16
    Thanks
    2
    Thanked 17 Times in 6 Posts

    Getting server status from Q3 Engine

    Hello there!

    I'm trying to comunicate with a Call of Duty 2 server ( based on Quake 3 Enigine ), to send some data to it and get some in return.
    So ( using Python - sockets) i was able to send data to the server but i cant get any back. Here is the script i'm curently using.

    Code:
    import socket # Importing module
    # Creating socket File
    sock = socket.socket(socket.AF_INET,  # Internet
    socket.SOCK_DGRAM) # UDP connection
    sock.connect(('master3.idsoftware.com', 27950)) # Connectiong to cod2 UDP server 
    sock.sendto('\xff\xff\xff\xffgetstatus',('80.241.208.55', 28960)) # Server i whoud like to inspect
    data, addr = sock.recvfrom(7000) # Waiting for Replay.
    print "received message:", str(data), addr # Printing out the resoult
    My source was from guy named Aluigi (aluigi.org) : http://aluigi.altervista.org/papers/q3info.txt

    The reason i uploaded this here and not on Python forum is becouze this code works but servers are broke. i saw:

    When we go on the multiplayer option, our client will start to search
    servers on LAN, Mplayer, Internet and Favourites.

    - LAN: 255.255.255.255
    port: 27960, 27961, 27962, 27963
    - Mplayer: 60.242.0.0
    port: 27950
    - Internet: 60.242.0.0 or master3.idsoftware.com
    port: 27950
    that he wrote. and servers do connect but i'm not getting any data in return.

    any sugestions ?
    Last edited by stevomitric; 29th December 2014 at 10:19.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •