XServerQuery

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

XServerQuery

Post by (G)ott »

XServerQuery v211

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 210 to 211
    - fixed server will not shown, when ACE is installed and bShowProtection=true.
    
    from 201 to 210
    - added optional timestamp log.
    - added config bShowTimeStamp & bShowAdvancedTimeStamp.
    - fixed time check on query request.
    - added config iNumSecToBlockIP.
    - changed config iNumPacketsBeforLog to iNumPacketsBeforBlock !!
    - fixed players country memory.
    - removed querytype "NewNet".
    - changed config bShowProtection is now by default "hidden".
    - changed querytype "Protection" - it has now only focus to ACE.
    - some small changes and cleanups.
    
    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.
    - 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:
XServerQuery211.zip
(154.49 KiB) Downloaded 148 times
Last edited by (G)ott on Mon Jan 24, 2022 7:56 pm, edited 16 times in total.
User avatar
Chamberly
Godlike
Posts: 1963
Joined: Sat Sep 17, 2011 4:32 pm
Personal rank: Dame. Vandora
Location: TN, USA
Contact:

Re: XServerQuery

Post by Chamberly »

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: 362
Joined: Sun Aug 01, 2010 12:15 pm
Personal rank: Proud Terrorist

Re: XServerQuery

Post by noccer »

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 »

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: 38
Joined: Wed Jun 15, 2011 5:34 pm
Personal rank: bullet eater

Re: XServerQuery

Post by (G)ott »

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 »

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 »

[rev]rato.srt wrote:Now work add dns to favorites ?
Hey (G)ott is this script still working for you?
Last edited by WilsonCar on Tue Oct 19, 2021 11:57 pm, edited 6 times in total.
User avatar
(G)ott
Average
Posts: 38
Joined: Wed Jun 15, 2011 5:34 pm
Personal rank: bullet eater

Re: XServerQuery

Post by (G)ott »

Like my car. It runs ;)
User avatar
[rev]rato.skt
Adept
Posts: 438
Joined: Mon Aug 16, 2010 1:09 pm

Re: XServerQuery

Post by [rev]rato.skt »

Now work add dns to favorites ?
Brazilian Server:
Alma Negra - 34.95.189.187:7777
Classic - madruga.utbr.cf:7777
Duel - x1.utbr.cf:6666
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

Re: XServerQuery

Post by UT Sniper (SJA94) »

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: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: XServerQuery

Post by Barbie »

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
Average
Posts: 37
Joined: Fri Jul 10, 2020 9:22 am

Re: XServerQuery

Post by Deaod »

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

Attached is version 2.02 that fixes that Problem.
Attachments
XServerQuery.u
(49.63 KiB) Downloaded 24 times
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: XServerQuery

Post by sektor2111 »

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: 438
Joined: Mon Aug 16, 2010 1:09 pm

Re: XServerQuery

Post by [rev]rato.skt »

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:
Alma Negra - 34.95.189.187:7777
Classic - madruga.utbr.cf:7777
Duel - x1.utbr.cf:6666
Eternity
Skilled
Posts: 166
Joined: Sat Nov 30, 2019 10:56 pm

Re: XServerQuery

Post by Eternity »

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