From c3e5cd570ca0705897bec3db8de24d0526cea751 Mon Sep 17 00:00:00 2001 From: Pedro Ivo Hudson Date: Wed, 21 Jul 2021 20:10:48 -0300 Subject: [PATCH 1/2] Making `requestRules` more evident --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5dadb2..a553a9d 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ this query port may work instead. (defaults to protocol default port) as the socketTimeout typically fires first. (default 10000) * **givenPortOnly**: boolean - Only attempt to query server on given port. (default false) * **debug**: boolean - Enables massive amounts of debug logging to stdout. (default false) +* **requestRules**: boolean - Valve games only. Additional 'rules' may be fetched into the `raw` field. (default false) ### Return Value @@ -517,4 +518,4 @@ gamedig --type minecraft mc.example.com:11234 ``` The output of the command will be in JSON format. Additional advanced parameters can be passed in -as well: `--debug`, `--pretty`, `--socketTimeout 5000`, etc. +as well: `--debug`, `--pretty`, `--socketTimeout 5000`, `--requestRules` etc. From f44b0adca52a612b8446e9b4550e21ad64d6b39f Mon Sep 17 00:00:00 2001 From: Pedro Ivo Hudson Date: Wed, 21 Jul 2021 20:12:57 -0300 Subject: [PATCH 2/2] Adding DayZ content about tags and mods --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a553a9d..9a36a40 100644 --- a/README.md +++ b/README.md @@ -464,6 +464,9 @@ additional option: `token` ### Valheim Valheim servers will only respond to queries if they are started in public mode (`-public 1`). +### DayZ +DayZ stores some of it's servers information inside the `tags` attribute. Make sure to set `requestRules: true` to access it. Some data inside `dayzMods` attribute may be fuzzy, due to how mods are loaded into the servers. Alternatively, some servers may have a [third party tool](https://dayzsalauncher.com/#/tools) that you can use to get the mods information. If it's installed, you can access it via browser with the game servers IP:PORT, but add up 10 to the port. (eg. if game port is 2302 then use 2312). + ### Valve Protocol For many valve games, additional 'rules' may be fetched into the unstable `raw` field by passing the additional option: `requestRules: true`. Beware that this may increase query time.