HD2 server info view

3 months 5 days ago - 3 months 5 days ago #1 by 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.

HD2 server info view \o/

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

*
Settings.ini:

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)
AutoRefresh=1
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:

Never hate your enemies, it affects your judgment !
Attachments:
The following user(s) said Thank You: NL, Sasha

Please Log in or Create an account to join the conversation.

3 months 1 day ago - 2 months 3 weeks ago #2 by Stern
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.

Completed version \o/

Never hate your enemies, it affects your judgment !
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #3 by Stern
Added Readme (link updated). maybe someone likes to read readme :)

As someone might know, program "HD2 Server Query" have a feature, user can click "JoinServer" to join selected server.
I could not find any documentations how this function is achieved.
Game maybe has to execute with some parameters, but what ?:undecided:

Never hate your enemies, it affects your judgment !
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #4 by ThomasTailor93

Stern wrote: Added Readme (link updated). maybe someone likes to read readme :)

As someone might know, program "HD2 Server Query" have a feature, user can click "JoinServer" to join selected server.
I could not find any documentations how this function is achieved.
Game maybe has to execute with some parameters, but what ?:undecided:

Maybe it's combined with this: https://drive.google.com/open?id=0B9_MKSPcFp3QYWVuSlVIUjlVZlk

With that program you can join a server via hd2c:// (e. g. hd2c://164.132.83.207:10001/)

Playing H&D2 since 2007.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago - 2 months 3 weeks ago #5 by Stern
Yes, something like this. Nothing there about how it works. Maybe its a secret...

*
Here is a small documentation about main part of server info request in Pascal.
https://1drv.ms/t/s!Aj4b71jV4JhLgnctBazR2FIySqks

Recieved info (1 player in server "Player1").
.CORYhostname.=RpR=Campaign.gamever.1.12.hostport.11001.mapname.Arctic4.numplayers.1.maxplayers.10.gamemode.0.gametype.Cooperative.isdedicated.1.password.0.voicechat.0.expansion.2...player_.score_.deaths_.ping_.team_..
Player1.18.1.41.1..team_t.score_t..axis.0.allied.0.
"." is a replacement to zero character.

Never hate your enemies, it affects your judgment !

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago #6 by Stern
Does anybody else get a empty line here ?
Its a Justice server, its online, but it shows empty.


Never hate your enemies, it affects your judgment !
Attachments:

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Next birthdays

  • Nikita birthday is in 3 days (55)
  • xhc birthday is in 3 days (35)
  • samuelfenix birthday is in 5 days (22)
  • jacobston birthday is in 7 days (115)
  • Serkses birthday is in 8 days (16)