tjensen / dayz-dev-tools

Useful tools for DayZ mod developers
https://dayz-dev-tools.readthedocs.io/
MIT License
7 stars 1 forks source link

Add command and APIs for querying DayZ server status #17

Open tjensen opened 3 years ago

tjensen commented 3 years ago

Is your feature request related to a problem? Please describe. It would be nice to be able to query a DayZ server's status (server name, number of players, map name, required mods and DLC, etc.) from the command line and from Python code.

Describe the solution you'd like There should be a command line tool that takes a server's IP address and port number as input and prints the server's status information in a human-readable format.

There should also be a single Python function or class for getting the same information by server address and port number.

Describe alternatives you've considered There are existing tools, like steamctl, for reading some standard Steam protocol server statuses (A2S_INFO and A2S_RULES) but they don't know (nor should they need to know) how to parse DayZ-specific information, like mod and DLC data, in-game time, etc.

Additional context I would prefer to use steam to implement this feature, instead of writing my own low-level socket code, but it will require https://github.com/ValvePython/steam/issues/358 to be resolved in order to query server DLC and mod information.

rossengeorgiev commented 3 years ago

but it doesn't provide a command-line tool

steamctl hlmaster info would do exactly that