HD2 server info view

7 years 4 weeks ago - 7 years 4 weeks ago #1 by Stern
HD2 server info view was created 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:

Attachment not found


The one who hesitates is lost !
The following user(s) said Thank You: NL, Sasha

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

7 years 3 weeks ago - 7 years 2 weeks ago #2 by Stern
Replied by Stern on topic HD2 server info view
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/

The one who hesitates is lost !
The following user(s) said Thank You: snowman

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

7 years 2 weeks ago #3 by Stern
Replied by Stern on topic HD2 server info view
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:

The one who hesitates is lost !
The following user(s) said Thank You: snowman

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

7 years 2 weeks ago #4 by Maletzki
Replied by Maletzki on topic HD2 server info view

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.

7 years 2 weeks ago - 7 years 2 weeks ago #5 by Stern
Replied by Stern on topic HD2 server info view
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.

The one who hesitates is lost !

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

7 years 5 days ago #6 by Stern
Replied by Stern on topic HD2 server info view
Does anybody else get a empty line here ?
Its a Justice server, its online, but it shows empty.

Attachment not found


The one who hesitates is lost !

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

  • 43 birthday is in 1 day (57)
Powered by Kunena Forum