[ut3] Query protocol
Pete
biovore at gmail.com
Wed Mar 5 22:21:50 EST 2008
Yes.. use a combination of gslist and qstat.. should work.. I got a thing
going hooked up though a eggdrop bot.
./gslist -q -n ut3pc | grep 212.42.38.90
Gslist 0.8.3 BETA
by Luigi Auriemma
e-mail: aluigi at autistici.org
web: aluigi.org
212.42.38.90 6503
212.42.38.90 6502
212.42.38.90 6501
212.42.38.90 6504
will list all the active UT3 servers and there query ports at the selected
IP
(Note Query port was suppose to be fixed 6500, but doesn't seem like
everyone is doing it)
Now you have the problem if figuring out what query port is being used.
./qstat -R -gs4 212.42.38.90:6503
you have to qstat each query port untill you find the one with the correct
hostport=... entry in the query..
==== Example Query Response from qstat ====
ADDRESS PLAYERS MAP RESPONSE TIME NAME
212.42.38.90:6503 0/16
OwningPlayerId=123129028,NumPublicConnections=16,bUsesStats=True,bIsDedicated=True,
OwningPlayerName=PlayGround.ru[VCTF-WAR],AverageSkillRating=1000.000000
,EngineVersion=3542,
MinNetVersion=3467,s32779=2,s0=2,s1=0,s6=1,s7=0,s8=0,s9=0,s10=1,s11=0,s12=0,s13=1,s14=1,
p1073741825=WAR-SERENITY,p1073741826=UTGameContent.UTOnslaughtGame_Content
,p268435704=3,
p268435705=20,p268435703=-1,p1073741827=,p268435717=0,p1073741828= 334 /
0 PlayGround.ru[VCTF-WAR]
hostport=7773,hostport=7773,gamemode=openplaying,OwningPlayerId=123129028,NumPublicConnections=16,bUsesStats=True,bIsDedicated=True,OwningPlayerName=
PlayGround.ru[VCTF-WAR],AverageSkillRating=1000.000000
,EngineVersion=3542,MinNetVersion=3467,s32779=2,s0=2,s1=0,s6=1,s7=0,s8=0,s9=0,s10=1,s11=0,s12=0,s13=1,s14=1,p1073741825=WAR-SERENITY,p1073741826=
UTGameContent.UTOnslaughtGame_Content
,p268435704=3,p268435705=20,p268435703=-1,p1073741827=,p268435717=0,p1073741828=
==== End Example =====
As you can see here the hostport is 7773
Since you probably don't know what the query port is ahead of time.. life is
a pain.
--
Peter Fetterer
KB3GTN
The force is like duct tape.
It has a light side and a darkside
and binds the universe together.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/ut3/attachments/20080305/bff8c883/attachment.htm>
More information about the ut3
mailing list