• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/H03-May-2022-1,8331,278

AUTHORSH A D29-Jun-200442 21

COPYINGH A D29-Jun-200417.6 KiB341281

ChangeLogH A D28-Sep-2004412 148

INSTALLH A D29-Jun-20046.8 KiB168129

INSTALL.w32H A D17-Jul-2004338 107

Makefile.amH A D27-Sep-2004206 94

Makefile.inH A D28-Sep-200420.3 KiB659579

READMEH A D28-Sep-20044.9 KiB14195

aclocal.m4H A D28-Sep-2004244.5 KiB7,0106,239

config.guessH A D03-May-202243 KiB1,4811,288

config.h.inH A D28-Sep-20041.4 KiB5637

config.subH A D03-May-202234.8 KiB1,8031,662

configureH A D28-Sep-2004648.2 KiB20,54916,512

configure.inH A D28-Sep-2004154 117

depcompH A D28-Feb-200412.6 KiB442288

install-shH A D28-Feb-20046.2 KiB277169

ltmain.shH A D28-Feb-2004178 KiB6,3444,960

missingH A D28-Feb-200410 KiB337263

mkinstalldirsH A D28-Feb-20041.9 KiB11285

quaqut.1H A D28-Sep-20042.5 KiB6864

README

1  ___  _   _   _    ___  _   _ _____
2 / _ \| | | | / \  / _ \| | | |_   _|
3| | | | | | |/ _ \| | | | | | | | |
4| |_| | |_| / ___ \ |_| | |_| | | |
5 \__\_\\___/_/   \_\__\_\\___/  |_|  0.2.0
6
7-----------------------------------------------------------------------------
8
9This simple program has been written to query Unreal Tournament 2004 (TM)
10servers and retrieve information like those available while browsing
11servers in the game.
12That means: server name, game type and current map, names and scores of
13players, and much more.
14
15Quaqut is written in C, it compiles and runs on most UNIX-like systems
16(Linux and BSD for example) and on Windows systems as well.
17
18I wrote this program so I could check what is being played on servers
19without launching the game each time (expecially useful when I have many
20other programs running).
21
22It can be also useful for generating some live stats by monitoring a server
23at regular intervals and displaying output on a PHP page or such.
24
25This software is released under GNU GPL (version 2 or upper).
26
27Special thanks go to M.Hendriks for writing this nice page about
28unrealengine2 server query protocol:
29http://unreal.student.utwente.nl/UT2003-queryspec.html
30That page and the wonderful software called Ethereal really helped me a lot.
31
32The program has been planned to be quite scalable, it could be extended to
33support other games someday :)
34
35
36-----------------------------------------------------------------------------
37USAGE INSTRUCTIONS
38
39Quaqut is a command line program.
40It works like this:
41
42quaqut SERVERHOSTNAME
43
44in example:
45quaqut some.ut2004server.tld
46
47If server listens for player connections on port different from 7777 (standard
48ut2004 port), you have to specify it, as shown in the examples below.
49
50quaqut -p 7777 some.ut2004server.tld
51quaqut -p 12345 some.ut2004server.tld
52
53
54Remeber, what you specify is the game port (the one you alway use to play),
55which is not the query port.
56Normally the query port is the one immediately after game port
57(so if game port is 7777, query port will be 7778).
58I don't know if this may come useful, but if you ever need to specify
59directly the server query port, you can do it this way:
60
61quaqut -q 7778 some.ut2004server.tld
62
63
64By default, quaqut will show all information available for a server.
65That includes server information, game information and players information
66(if there are players). If you want to display only one between server, game
67and players info, you'll use these flags, respectively:
68
69quaqut -s some.ut2004server.tld
70quaqut -g some.ut2004server.tld
71quaqut -y some.ut2004server.tld
72
73
74By default, quaqut will wait 10 tenths of second (one second) for server
75replies (their number is not always predictable).
76If you feel you have a very slow connection and need more time, or otherwise
77have a fast connection or you are playing in a LAN game, you may want to tune
78this timeout to your needs.
79You can do it this way:
80
81quaqut -t XXX some.ut2004server.tld
82
83where XXX are tenths of second that quaqut must wait before returning.
84XXX must be a number between 1 and 999.
85In example:
86quaqut -t 20 some.ut2004server.tld
87will wait 20 tenth of second (2 seconds), and
88quaqut -t 5 some.ut2004server.tld
89will wait 5 tenth of second (half of second).
90
91
92Version 0.2.0 introduces the daemon mode, which is expecially useful to
93create php web pages with live stats. When quaqut is launched in daemon mode,
94it doesn't exit after displaying information, but it keeps running.
95So it retrieves and displays information at regular intervals, which are
96user-definable. This is the syntax:
97
98quaqut -d XXXX some.ut2004server.tld
99
100where XXXX is the duration of interval between each query, in seconds.
101XXXX must be a number between 10 and 9999.
102
103
104Instead of printing information to standard output, you can write them
105in a file, by using this option:
106
107quaqut -f filename some.ut2004server.tld
108
109Remember that the file gets rewritten each time there are new information
110(so it works best with daemon mode). In order to append new information
111to an existing file, simply use output redirection instead of this option.
112
113
114Last but not least, by default information are returned in a human-readable
115form, nicely formatted for being read.
116If you want to parse the output yourself (within a frontend or script),
117then you'll love the raw option:
118
119quaqut -r some.ut2004server.tld
120
121which will return each value for server/game/player on a single line.
122You may find Hendriks' page useful if you need the meaning of each value.
123
124
125Of course parameters can be combined (but you may specify only one between
126a, s, g and y).
127In example, here's the classic setup for a quaqut daemon, that writes
128information to a file and updates them every 30 seconds.
129
130quaqut -d 30 -f /home/bar/foo.log -r some.ut2004server.tld
131
132
133If you need a quick view of available options, just type quaqut without
134any parameter and you'll get to know everything :)
135Information can be found in quaqut man page too.
136
137
138I hope quaqut will be useful for you!
139
140  Giacomo Lozito
141