rumblefrog / a2s-rs

Rust implementation of Source Query
MIT License
20 stars 14 forks source link

Arma 3 and DayZ servers return binary-encoded data in A2S_RULES #15

Open aclist opened 2 years ago

aclist commented 2 years ago

Hi, when using the rules method on Arma 3/DayZ servers, the result comes back improperly as a UTF-8 string, but these servers are actually sending additional binary data in the rules field per these specifications: https://community.bistudio.com/wiki/Arma_3:_ServerBrowserProtocol3

This contains additional data about mod names and IDs.

Here is example output for the server 172.111.51.10:27017:

a2s-rs returns: out.txt

Actual raw output should be: out2.txt

This then needs to be decoded per the specifications linked above to get the human-readable output.