Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
Delphi 10 Seattle Enterprise
|
AW: Query an Gameserver
24. Feb 2015, 18:05
Ich habe jetzt mal den Beispiel-Response komplett aufgedröselt (Markdown-Format)
Code:
## A2S_INFO RESPONSE
### Example response for [Counter Strike: Source]:
<pre>
FF FF FF FF 49 02 67 61 6D 65 32 78 73 2E 63 6F ÿÿÿÿI.game2xs.co
6D 20 43 6F 75 6E 74 65 72 2D 53 74 72 69 6B 65 m Counter-Strike
20 53 6F 75 72 63 65 20 23 31 00 64 65 5F 64 75 Source #1.de_du
73 74 00 63 73 74 72 69 6B 65 00 43 6F 75 6E 74 st.cstrike.Count
65 72 2D 53 74 72 69 6B 65 3A 20 53 6F 75 72 63 er-Strike: Sourc
65 00 F0 00 05 10 04 64 6C 00 00 31 2E 30 2E 30 e......dl..1.0.0
2E 32 32 00 .22.
</pre>
#### Check for Protocol
Field | Type | Bytes | Info
:-- | --- | :-- | :--
Header | [long] | <pre>FF FF FF FF</pre> | -1 = Simple Response Format
Payload | ∞ | <pre>49 02 67 61 6D 65 32 78 73 2E 63 6F 6D 20 43 6F<br>75 6E 74 65 72 2D 53 74 72 69 6B 65 20 53 6F 75<br>72 63 65 20 23 31 00 64 65 5F 64 75 73 74 00 63<br>73 74 72 69 6B 65 00 43 6F 75 6E 74 65 72 2D 53<br>74 72 69 6B 65 3A 20 53 6F 75 72 63 65 00 F0 00<br>05 10 04 64 6C 00 00 31 2E 30 2E 30 2E 32 32 00</pre> |
#### Payload Data
Field | Type | Bytes | Info
:-- | --- | :-- | :--
Header | [byte] | <pre>49</pre> | I
Protocol | [byte] | <pre>02</pre> |
Name | [string] | <pre>67 61 6D 65 32 78 73 2E 63 6F 6D 20 43 6F 75 6E<br>74 65 72 2D 53 74 72 69 6B 65 20 53 6F 75 72 63<br>65 20 23 31 00</pre> | game2xs.com Counter-Strike Source #1
Map | [string] | <pre>64 65 5F 64 75 73 74 00</pre> | de_dust
Folder | [string] |*<pre>63 73 74 72 69 6B 65 00</pre> | cstrike
Game | [string] | <pre>43 6F 75 6E 74 65 72 2D 53 74 72 69 6B 65 3A 20<br>53 6F 75 72 63 65 00</pre> | Counter-Strike: Source
ID | [short] | <pre>F0 00</pre> | 240
Players | [byte] | <pre>05</pre> | 5
Max. Players | [byte] | <pre>10</pre> | 16
Bots | [byte] | <pre>04</pre> | 4
Server type | [char] | <pre>64</pre> | d = dedicated Server
Environment | [char] | <pre>6C</pre> | l = Linux
Visibility | [byte] | <pre>00</pre> | 0 = public
VAC | [byte] | <pre>00</pre> | 0 = unsecured
Version | [string] | <pre>31 2E 30 2E 30 2E 32 32 00</pre> | 1.0.0.22
[byte]: https://developer.valvesoftware.com/wiki/Byte
[char]: https://developer.valvesoftware.com/wiki/Byte
[short]: https://developer.valvesoftware.com/wiki/Short
[long]: https://developer.valvesoftware.com/wiki/Long
[float]: https://developer.valvesoftware.com/wiki/Float
[string]: https://developer.valvesoftware.com/wiki/String
[Counter Strike: Source]: https://developer.valvesoftware.com/wiki/Counter_Strike:_Source
Im Anhang das gleiche als PDF gerendert
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
Geändert von Sir Rufo (24. Feb 2015 um 18:08 Uhr)
|