Modname:	XServerQuery
Version:		1.1.0
Release date:	13. November 2011
Autor:		(G)ott



Index:
------
1. what is it?
2. Installation
3. Update
4. Settings
5. Changelog
6. Thanks



1. What is it:
--------------

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.

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


Warning (this is important): XServerQuery is to be installed on
servers *only*. DO NOT INSTALL IT ON A CLIENT! You have been warned!

NOTE: 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.


You can test your Server's query result on this page:

http://www.unitedunreal.de/utquery/

Note: this query script was created from Jointy, i only modified it
to show old and new ut query results.



2. Installation:
----------------

- Extract the XServerQuery.u file to your Server's System directory.

- Stop your Server.

- Open your server's UnrealTournament.ini and then locate this
line in the ServerActors. When you do simply add a ';' at the front, so
your line looks like this:

;ServerActors=IpServer.UdpServerQuery


- Maybe watch, that you dont have the following line (if so, remove it, or XSQ will not work correctly):

ServerActors=SecureValidate.SVUdpServerQuery

--> You dont need to remove SecureValidate.SVUdpServerUplink if installed (XSQ dosnt support or use Uplink).


- Now add the following new actor to your ServerActors list:

ServerActors=XServerQuery.UdpXServerQuery


- a) Add the following lines at the end of your server's UnrealTournament.ini:

[XServerQuery.UdpXServerQuery]
bShowProtection=True
bShowCPName=True
bShowSpectators=True
bShowPlayerCountry=True
bSendMailURL=False
Homepage=www.example-hp.com
bLogSpecialQuerys=True
bLogUnknownQuerys=False
ServerIP=
ServerCountry=


- b) Start and stop your server for short time. This will auto install default
settings in your server's UnrealTournament.ini.

- Change the settings as you want them.

- If you want to use IpToCountry to show the current country of the players
and server, then you need to install IpToCountry from the included .zip file.
If you already are running IpToCountry then you are fine.

- Save your server's UnrealTournament.ini and restart your Server as usual.



3. Update:
----------

- Stop your Server.

- Overwrite the XServerQuery.u in your Server's System directory with the new one
in this zip file.

- Update your settings (4. Settings). Note, that new config lines will auto saved after restart.

- Save your server's UnrealTournament.ini and restart your Server as usual.



4. Settings:
------------

bShowProtection		// Returns True if the server is protected.
bShowCPName		// If bShowProtaction=True it returns the protection name.
bShowSpectators		// Returns spectator information.
bShowPlayerCountry	// Returns the player's country.
bSendMailURL		// If True, adding "mailto:" in front of the
			   e-mail (link-support for the new XBrowser > 110).
Homepage		// Returns your homepage if set. (optional: add "http://" at front of your page
			   for link-support for the new XBrowser > 110).
bLogSpecialQuerys		// Log query errors & 'secure' querys.
bLogUnknownQuerys	// Log unknown querys.
ServerIP			// This is optional and will only needed if the server dont
			    returns the real networkaddress for ITC.
ServerCountry		// Default "". Add your servers country prefix (e.g.: de, en, fr, uk, ...), if ServerIP dosnt work.
			   Please, PLEASE!! use the real prefix of your servers country, or you will confuse everyone.

NOTE: The server will set ServerIP automatically, if found. ELSE you can set ServerCountry manually!!



6. Changelog:
-------------

from 100 to 101
- added new optional config -> ServerAddress, to bypass a unknown bug with the
  servers networkaddress.
- fixed some problems with the country support.

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 102 to 103
- fixed a bug with hidden spectators (part 1).

from 103 to 104
- fixed a bug with hidden spectators (part 2).
- fixed problems with server country.
- fixed some minor bugs.

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 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.



6. Thanks:
----------

- A big thanks goes to gopostal for creating the readme.
- The Crash-Protection of SecureValidate is now working with XSQ. Thanks goes to JustDoIt.
- For the suggestion to add SecureValidate, big thanks to Face.
- Added \teams\ as QueryType to support the UT Watcher program. Thanks goes to El Muerte.
- Last but not least, the UT community.
