Announcement

Collapse
No announcement yet.

Server status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Server status

    Hello ppl

    Hope i can post this here

    I'm not pro at php coding, i just can do some basics things
    I'm hosting 4 ut3 servers and i'd like to show their status (online / offline) on the main page of an internet site.

    Here is the problems,
    When one server is offline it takes more than 3 minutes to laod the page
    so I erased the php files I created.
    Can someone help me with that ?

    Thanks

    #2
    Not sure if this suits your needs... but have you looked at UT3 PHP ServerViewer?

    Comment


      #3
      I'll use that on another page on the website, i juste need help to 'build' a simple query to return the online or offline status

      Comment


        #4
        I posted a series on my blog a while ago - Start with UT3 Server Queries - Part 1

        Some code here - http://www.penetrate.nl/ut3serverquery.phps

        This should get you on the right track... Make sure you're setting the timeout on your queries (which may be all you're missing).

        Comment


          #5
          Already tried it
          But that did not work for me :/
          Perhaps I'm too stupid xD

          the $port is the game port ?
          I'm hosting 4 gameserver
          ports are: 6666 // 7777 // 8888 // 9999
          perhaps it's another query port but i don t know which port to use

          Comment


            #6
            You need to use the query port not the game port. My UT3 Query Port Lookup Tool should help you lookup the query ports for your server instances.

            You can also set the query port for each server in the command line used to start it... Add -queryport=xxxx to the end of each with the ports you want to use. Make sure these udp ports are open in your firewall/router (or the query simply won't work).

            Comment


              #7
              Owkay, but I got another problem with your script
              Code:
              function UT3QueryServer($host,$port,&$return)
              can't be used cause it has been depreciated in php > 4
              Any way to modify it ?

              Comment


                #8
                You can use this script: http://ut3sview.zoneweb.de/_ut3player.phps
                Just change the 'echo' - parts and define your host and port (6500) at the end of page....

                ...but there is another big problem with gamespy. You have to first check serverlist is available.
                In case , it is not, port 6500 is dead but your server is still running.

                Right now, i am posting this, the list is down again.

                The best way for a 100% check is to use webstats by starbuck and take only the xmlsort.php from my package and modify it.
                There will be no page-hangs.
                There will be no port requests like fsock to 6500 and gamespy is not used.
                For this you need php with the xml-libraries on your wwwhost.

                Comment


                  #9
                  owkay, got it.
                  the 'values' are returned with the 'print_r' functions, but i got every thing in one line -_-
                  I tried to get only player on the server with '<br />' at and but it returns nothing or the server name.

                  Any idea to help me?

                  Comment


                    #10
                    just upload the phps to web and rename it to whatever.php
                    open it in your browser and add : ?server=your.server.ip&port=6500

                    there are errors today because gamespy sux again today. better try tomorrow.....

                    and ut3 patch 1.3 is required.....

                    Comment


                      #11
                      Originally posted by kotraeppchen View Post
                      just upload the phps to web and rename it to whatever.php
                      open it in your browser and add : ?server=your.server.ip&port=6500

                      there are errors today because gamespy sux again today. better try tomorrow.....

                      and ut3 patch 1.3 is required.....
                      My god ... patch 1.3 for linux servers sux ... servers are running patch 1.2 -_-

                      Comment


                        #12
                        here is the working 1.2:

                        http://www.penetrate.nl/ut3serverquery.phps

                        Comment

                        Working...
                        X