XServerQuery

Need some nice Mods? Here, you are right!
User avatar
(G)ott
Average
Posts: 34
Joined: Wed Jun 15, 2011 5:34 pm
Personal rank: bullet eater

XServerQuery

Post by (G)ott » Thu Dec 18, 2014 1:19 pm

XServerQuery v201

Description:
  • XServerQuery is a much-improved way of showing your server's current
    information. There are new headings like "Spectators" and "Protection
    Type" as well as the country of the current players. It also does more
    then the same job like SecureValidate.

    To show you your server's new information, you need the latest
    XBrowser for the UT installation. Remember: XServerQuery is for the
    server, XBrowser is for the client. They work together to bring you
    all this new information. Also, if you using a server viewer page
    (like statistics displayed on a webpage), you need to modify it.

    For more information and to see how it works, follow this link:
    http://wiki.beyondunreal.com/XServerQuery
Changelog:
  • Code: Select all

    from 200 to 201
    - fixed a small bug where the server runs in a small loop and gets a timeout while receiving a unknown querytype.
    
    from 110 to 200
    - added query spam security.
    - added config iMaxConnPerIPPerSec & iNumPacketsBeforLog.
    - changed config bShowProtection to a multi bool (doh, what is multi bool?? O.O').
    - removed config bShowCPName.
    - removed config ServerCountry.
    - renamed config ServerIP to NetAddress.
    - added a country memory for players and server. This will stop spamming ItC.
    - added \NewNet\ as QueryType. If found, return the version. eg.: 0.9
    - changed the player time: the time will now return seconds instead minutes.
    - changed "RemainingTime" -> if bOverTime, return ElapsedTime.
    - added log prefix.
    - renamed class "UdpXServerQuery" to "XServerQuery".
    - added new class "XServerUplink".
    --> This does the same like SecureValidate.SVUdpServerUplink.
    --> changed default MasterServerAddress from master0.gamespy.com to utmaster.epicgames.com.
    --> added log prefix.
    
    from 105 to 110
    - added more info logs.
    - added config bLogSpecialQuerys & bLogUnknownQuerys.
    - added config ServerCountry (use it if ServerIP not set).
    - fixed problem, sending players on nexgen servers befor game is started.
    - fixed players time.
    - added auto saving default config on first installation.
    - some small changes.
    
    from 104 to 105
    - added crash-protection of Secure Validate.
    - added \teams\ as QueryType to support the UT Watcher program.
    - added new config "bSendMailURL" (link-support for the new XBrowser > 110).
    - renamed "ServerAddress" to "ServerIP".
    
    from 103 to 104
    - fixed a bug with hidden spectators (part 2).
    - fixed problems with server country.
    - fixed some minor bugs.
    
    from 102 to 103
    - fixed a bug with hidden spectators (part 1).
    
    from 101 to 102
    - added querytype "RemainingTime".
    - added UTPure to the protection list.
    - fixed a mistake with the querytype "Protaction"/"Protection".
    - fixed some minor bugs.
    
    from 100 to 101
    - added new optional config -> ServerAddress, to bypass a unknown bug if the server dont returns the real networkaddress for ITC.
    

IPtoCountry:
  • I've repacked the included IpToCountry-1.6.rar
    Changes are:

    Code: Select all

    - removed file CountryFlags2.utx
    - added file CountryFlags3.utx
    - added file IpToCountry.ini. Feel free to change the hosts as you like.
    - changed some lines in the README.txt file
    - added the download link of the GeoIP.dat at the bottom of the "MasterServer v1.6/GeoIP license.txt" file
    - updated the GeoIP.dat file to the latest one (2014/12/02).
    
    CountryFlags3:
    The new CountryFlags3 file is upgrade compatible for all mods, they
    use CountryFlags2 and where you can change it via ini file.
    Mods like Nexgen must be modified..

    Changelog:

    Code: Select all

    -added over 100 new flags (v2 has 171, v3 now 277).
    -v3 is uptodate with the latest ISO 3166-1 alpha-2.
    -all flags redesigned and now more colorful.
    

Download:
Last edited by (G)ott on Fri Jun 12, 2020 10:52 pm, edited 11 times in total.

User avatar
Chamberly
Godlike
Posts: 1961
Joined: Sat Sep 17, 2011 4:32 pm
Personal rank: Dame. Vandora
Location: TN, USA

Re: XServerQuery

Post by Chamberly » Thu Dec 18, 2014 3:31 pm

Awesome. Will set up a mirror.

MediaFire: https://www.mediafire.com/?pf2hfq25a5avmwr

Some other will add it to their popular site (UT-files, noccer, medor, etc.) ;)
Last edited by Chamberly on Sat Jul 29, 2017 1:24 am, edited 1 time in total.
Image
Image
Image Edit: Why does my sig not work anymore?

noccer
Adept
Posts: 329
Joined: Sun Aug 01, 2010 12:15 pm
Personal rank: Proud Terrorist

Re: XServerQuery

Post by noccer » Thu Dec 18, 2014 5:05 pm

Chamberly wrote: Some other will add it to their popular site (UT-files, noccer, medor, etc.) ;)
True :D

Big Thanks Gott, for one of the best and most usefull Addons for UT :rock:
Image

>>You can't steal any ip (v4)adresses, there are exactly 4294967296 of them, and they will still exist when you wrote down all of them, or are stored in a (master)servers database ;)<<

UT99.org

Re: XServerQuery

Post by UT99.org » Fri Jan 02, 2015 6:11 am

billybill wrote:O.K dude, I'm going to keep my posts specific. Not post about XBrowser in XServerQuery and vice versa.

Notable bug in XServerQuery, it cannot process multiple requests. If I send a \info\status\ I don't get the reply I expect. It completely breaks a query for specific parameters. The bug has been present since before the latest version. I assumed you had left the project and people would slowly stop using it. The importance is evident when you try using "UT PHP Server Query by Almar Joling"

Please use a search engine on the quoted text, then query a regular server followed by a server running XServerQuery. I'd also recommend splitting \XServerQuery\ into it's own parameter similar to \player_info\, UTPG additions. Please retain the original \info\, \status\ and make yours like the two I named

User avatar
(G)ott
Average
Posts: 34
Joined: Wed Jun 15, 2011 5:34 pm
Personal rank: bullet eater

Re: XServerQuery

Post by (G)ott » Fri Jan 02, 2015 8:02 pm

billybill wrote:If I send a \info\status\ I don't get the reply I expect.
I've tested your script and it works fine with two parameters :tu:

Code: Select all

fputs($sock,"\\basic\\\\info\\");
billybill wrote:It completely breaks a query for specific parameters.
If is understand you right, you mean something like this on a XSQ server ->

Code: Select all

fputs($sock,"\\status\\\\game_property\\ElapsedTime\\");
This is really a bug i have to fix, BUT this bug exist in the original UdpServerQuery too.
The server runs in a small loop and gets a timeout while you send a unknown querytype.

Use for example

Code: Select all

\\status\\\\hello\\
on a vanilla server (a server without XSQ). You'll get no reply too.

I will add something like a "unknown_query_reply".

UT99.org

Re: XServerQuery

Post by UT99.org » Fri Jan 02, 2015 9:20 pm

billybill wrote:Ah okay it does load. I should've checked that better (example in point http://www.unreal-mars.de/ut-server/inf ... vport=7778)

It must be specific parameters don't work. Like the numplayers parameter. I'm going to leave it a few days until I have all my source codes available. Feel free to check this one, as I disagree that the bug was already there. I believe it started with XSQ

WilsonCar
Posts: 1
Joined: Wed Jul 19, 2017 12:25 pm

Re: XServerQuery

Post by WilsonCar » Tue Jul 25, 2017 5:25 pm

[rev]rato.srt wrote:Now this pea protein is great so add it to favorites ?
Hey (G)ott is this script still working for you?
Last edited by WilsonCar on Fri Jan 15, 2021 5:05 pm, edited 5 times in total.

User avatar
(G)ott
Average
Posts: 34
Joined: Wed Jun 15, 2011 5:34 pm
Personal rank: bullet eater

Re: XServerQuery

Post by (G)ott » Thu Jul 27, 2017 10:02 pm

Like my car. It runs ;)

User avatar
[rev]rato.skt
Adept
Posts: 357
Joined: Mon Aug 16, 2010 1:09 pm

Re: XServerQuery

Post by [rev]rato.skt » Sat Jul 29, 2017 2:16 am

Now work add dns to favorites ?
Brazilian Server:
Classic madruga.utbr.tk:7777
Duel x1.utbr.tk:6666
UT2004 2004.utbr.tk:5555

User avatar
UT Sniper (SJA94)
Masterful
Posts: 638
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: XServerQuery

Post by UT Sniper (SJA94) » Sat May 23, 2020 11:50 pm

Image

With http://wiki.beyondunreal.com/XServerQuery always seeming to have problems nowadays, is there an alternative site to look up the serverQuery API as well as XserverQuery?

User avatar
Barbie
Godlike
Posts: 2082
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: XServerQuery

Post by Barbie » Sun May 24, 2020 1:44 am

Page "wiki.beyondunreal.com/wiki/UT_Server_Query" is mirrored here .
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Deaod
Novice
Posts: 9
Joined: Fri Jul 10, 2020 9:22 am

Re: XServerQuery

Post by Deaod » Sat Mar 13, 2021 10:04 am

XServerQuery starts ignoring requests soon after mightnight according to real-time-clock of the server.

Attached is version 2.02 that fixes that Problem.
You do not have the required permissions to view the files attached to this post.

User avatar
sektor2111
Godlike
Posts: 5218
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: XServerQuery

Post by sektor2111 » Sat Mar 13, 2021 11:09 am

This is just an U file having ZERO Information. In two years "downloading-guys" won't know what does it do this package into his/her machine, they will need to search through forum where this file was shared and why.
You should provide more information when you adjust something, otherwise over time everyone will only start guessing what does this file do.

User avatar
[rev]rato.skt
Adept
Posts: 357
Joined: Mon Aug 16, 2010 1:09 pm

Re: XServerQuery

Post by [rev]rato.skt » Sat Mar 13, 2021 11:19 pm

hi,

I'm still hopi that someone will put the option to add dns, only numbers are obsolete....

hope is the last that dies... :agree1: :agree1: :rock:
Brazilian Server:
Classic madruga.utbr.tk:7777
Duel x1.utbr.tk:6666
UT2004 2004.utbr.tk:5555

Eternity
Average
Posts: 48
Joined: Sat Nov 30, 2019 10:56 pm

Re: XServerQuery

Post by Eternity » Sun Mar 14, 2021 7:31 am

It would also worth to fix the problem with "Level.Game.Difficulty" in line #404 in this new version...