[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
current game query with wave number and number of monsters left  XML
Forum Index -> UT2004 DisastrousConsequences.com
Author Message
greg11

Wicked Sick!

Joined: 02/10/2008 20:00:40
Messages: 526
Location: Hood River, OR
Offline

I am not sure what method disastrousconsequences.com uses for the current game query, but I figured how to get the current wave number and number of monsters left using the query protocall.

I think the most common way to query a server is to send a udp packet saying "\status\" to port 7787
you can use "\info\" to get a more abbreviated server status.
"\players\" to get a detailed player listing

To get the wave number use "\game_property\WaveNum\"
To get the number of monsters use "\game_property\NumMonsters\"

if you are using linux you can use this command:
Code:
 echo -n "\\game_property\\NumMonsters\\\\game_property\\WaveNum\\\\players\\" | nc -uw 1 127.0.0.1 7787 

where 127.0.0.1 is the local ip, change it to the ip address of the server you want to query.

notice you can give multiple commands if you separate them with two backslashes (four is shown because you have to escape the backslash)

also the wavenumber starts at 0 so you have to add 1 to make it correct.
 
Forum Index -> UT2004 DisastrousConsequences.com
Go to: