4 days 16 hours ago - 4 days 16 hours ago#1by Stern
Here is a program to use as a server monitor.
It loads servers listed in Qtracker, refresh in 300s (5min).
After loading it sends query request to every server and fills all info in listbox.
User can select server by clicking the line in upper listbox, then additional info will be displayed about server and players.
User can select "Refresh server info" to monitor selected server, (request interval is selectable).
If user selects other server from upper listbox, while the automatic refresh is active, the automatic refresh is de-activated and must be re-selected again if user wishes to monitor another server.
This is not completed version, the custom server list is not finished, but the Qtracker part can be used and it is the main part anyway.
BoundPort uses 5 ports (this http connection does not allow to refresh on used port and it takes some time to free up the port)
this means if program is started, it will load info from Qtracker (turning this off is useful when using custom server list, if Qtracker is offline...)
LocalHost=127.0.0.1 local host ip for UDPsocket (server info request)
LocalPort=8050 local port for UDPsocket
Interval=20 "Refresh server info" interval. (if user changes interval value from program, it saves the value)
Looks like this:
In its own environment, the piranha is a ferocious killer, in mine, just a helpless little fish.
There is a lesson to be learned from that ! Don't you think ?
Custom list added.
Now user can activate/deactivate Qtracker list update and can refresh Qtracker list and custom list.
To use custom list change: "UseCustomList=0" to "UseCustomList=1" (0 to 1) in settings.ini and add ip:port (main port !, not +3 port, it adds +3 itself).
Example line is added to CustomList.ini, this line can be deleted, its just a example.
Qtracker list update is in every 10 minutes (if active, little green box indigates it with light green color), user can click RefreshQtrackerList to refresh list.
BoundPort and LocalPort might need to be changed when they are used by other programs, thats why they are changeable from settings.ini.