Gamespy Protocol 2

Status Query

Query

FE FD 00 43 4F 52 59 FF FF 00                   ;þý.CORYÿÿ.

Key

(int64) Header
(byte) Delimiter
(string) Ping Value
(byte) Return server info and rules if 0xFF.
(byte) Return player information if 0xFF.
(byte) Return team information if 0xFF.

Comments

The ping value can be anything you want, use it to make sure the response is valid.

You can set any of the flags to 0x00 if you don't want that information returned.

Response

00 43 4F 52 59 68 6F 73 74 6E 61 6D 65 00 55 53 ;.CORYhostname.US
20 2D 20 54 68 65 20 50 72 6F 66 65 73 73 69 6F ; - The Professio
6E 61 6C 73 20 5B 50 52 46 5D 00 68 6F 73 74 70 ;nals [PRF].hostp
6F 72 74 00 31 35 35 36 37 00 6D 61 70 6E 61 6D ;ort.15567.mapnam
65 00 43 41 4D 42 4F 44 49 41 4E 20 49 4E 43 55 ;e.CAMBODIAN INCU
52 53 49 4F 4E 00 67 61 6D 65 74 79 70 65 00 63 ;RSION.gametype.c
6F 6E 71 75 65 73 74 00 6E 75 6D 70 6C 61 79 65 ;onquest.numplaye
72 73 00 31 30 00 6D 61 78 70 6C 61 79 65 72 73 ;rs.10.maxplayers
00 31 34 00 67 61 6D 65 6D 6F 64 65 00 6F 70 65 ;.14.gamemode.ope
6E 70 6C 61 79 69 6E 67 00 70 61 73 73 77 6F 72 ;nplaying.passwor
64 00 30 00 67 61 6D 65 76 65 72 00 76 31 2E 31 ;d.0.gamever.v1.1
00 64 65 64 69 63 61 74 65 64 00 31 00 73 74 61 ;.dedicated.1.sta
74 75 73 00 34 00 67 61 6D 65 5F 69 64 00 62 66 ;tus.4.game_id.bf
76 69 65 74 6E 61 6D 00 6D 61 70 5F 69 64 00 42 ;vietnam.map_id.B
46 56 69 65 74 6E 61 6D 00 73 76 5F 70 75 6E 6B ;FVietnam.sv_punk
62 75 73 74 65 72 00 31 00 74 69 6D 65 6C 69 6D ;buster.1.timelim
69 74 00 75 6E 6C 69 6D 69 74 65 64 00 6E 75 6D ;it.unlimited.num
62 65 72 5F 6F 66 5F 72 6F 75 6E 64 73 00 32 00 ;ber_of_rounds.2.
73 70 61 77 6E 5F 77 61 76 65 5F 74 69 6D 65 00 ;spawn_wave_time.
31 30 73 00 73 70 61 77 6E 5F 64 65 6C 61 79 00 ;10s.spawn_delay.
35 73 00 73 6F 6C 64 69 65 72 5F 66 72 69 65 6E ;5s.soldier_frien
64 6C 79 5F 66 69 72 65 00 30 25 00 76 65 68 69 ;dly_fire.0%.vehi
63 6C 65 5F 66 72 69 65 6E 64 6C 79 5F 66 69 72 ;cle_friendly_fir
65 00 30 25 00 67 61 6D 65 5F 73 74 61 72 74 5F ;e.0%.game_start_
64 65 6C 61 79 00 31 30 73 00 74 69 63 6B 65 74 ;delay.10s.ticket
5F 72 61 74 69 6F 00 31 35 30 25 00 61 6C 6C 6F ;_ratio.150%.allo
77 5F 6E 6F 73 65 5F 63 61 6D 00 79 65 73 00 65 ;w_nose_cam.yes.e
78 74 65 72 6E 61 6C 5F 76 69 65 77 00 6F 6E 00 ;xternal_view.on.
75 73 5F 74 65 61 6D 5F 72 61 74 69 6F 00 31 00 ;us_team_ratio.1.
6E 76 61 5F 74 65 61 6D 5F 72 61 74 69 6F 00 31 ;nva_team_ratio.1
00 62 61 6E 64 77 69 64 74 68 5F 63 68 6F 6B 65 ;.bandwidth_choke
5F 6C 69 6D 69 74 00 30 00 66 72 65 65 5F 63 61 ;_limit.0.free_ca
6D 65 72 61 00 6F 6E 00 61 75 74 6F 5F 62 61 6C ;mera.on.auto_bal
61 6E 63 65 5F 74 65 61 6D 73 00 6F 66 66 00 6E ;ance_teams.off.n
61 6D 65 5F 74 61 67 5F 64 69 73 74 61 6E 63 65 ;ame_tag_distance
00 31 35 00 6E 61 6D 65 5F 74 61 67 5F 64 69 73 ;.15.name_tag_dis
74 61 6E 63 65 5F 73 63 6F 70 65 00 30 00 6B 69 ;tance_scope.0.ki
63 6B 62 61 63 6B 00 30 25 00 6B 69 63 6B 62 61 ;ckback.0%.kickba
63 6B 5F 6F 6E 5F 73 70 6C 61 73 68 00 30 25 00 ;ck_on_splash.0%.
73 6F 6C 64 69 65 72 5F 66 72 69 65 6E 64 6C 79 ;soldier_friendly
5F 66 69 72 65 5F 6F 6E 5F 73 70 6C 61 73 68 00 ;_fire_on_splash.
30 25 00 76 65 68 69 63 6C 65 5F 66 72 69 65 6E ;0%.vehicle_frien
64 6C 79 5F 66 69 72 65 5F 6F 6E 5F 73 70 6C 61 ;dly_fire_on_spla
73 68 00 30 25 00 63 70 75 00 32 31 32 30 00 62 ;sh.0%.cpu.2120.b
6F 74 5F 73 6B 69 6C 6C 00 00 72 65 73 65 72 76 ;ot_skill..reserv
65 64 73 6C 6F 74 73 00 30 00 61 63 74 69 76 65 ;edslots.0.active
5F 6D 6F 64 73 00 00 61 6C 6C 5F 61 63 74 69 76 ;_mods..all_activ
65 5F 6D 6F 64 73 00 62 66 76 69 65 74 6E 61 6D ;e_mods.bfvietnam
00 67 61 6D 65 5F 69 64 5F 6E 61 6D 65 00 42 46 ;.game_id_name.BF
56 69 65 74 6E 61 6D 00 00 00 0A 70 6C 61 79 65 ;Vietnam....playe
72 5F 00 73 63 6F 72 65 5F 00 64 65 61 74 68 73 ;r_.score_.deaths
5F 00 70 69 6E 67 5F 00 74 65 61 6D 5F 00 6B 69 ;_.ping_.team_.ki
6C 6C 73 5F 00 00 41 72 6D 61 6E 64 65 20 48 61 ;lls_..Armande Ha
6D 6D 65 72 00 32 30 00 35 00 38 30 00 31 00 35 ;mmer.20.5.80.1.5
00 42 2E 43 2E 52 20 54 77 69 74 63 68 00 31 34 ;.B.C.R Twitch.14
00 39 00 37 34 00 32 00 35 00 5B 50 52 46 5D 4D ;.9.74.2.5.[PRF]M
61 64 2E 42 76 33 2E 31 00 32 32 00 34 00 35 33 ;ad.Bv3.1.22.4.53
00 31 00 31 30 00 28 4D 41 29 4E 61 74 65 00 31 ;.1.10.(MA)Nate.1
30 00 39 00 34 33 00 32 00 36 00 54 68 65 20 43 ;0.9.43.2.6.The C
6F 6C 6F 6E 65 6C 00 32 36 00 31 31 00 34 32 00 ;olonel.26.11.42.
31 00 38 00 42 2E 43 2E 52 20 4B 67 00 31 39 00 ;1.8.B.C.R Kg.19.
35 00 34 36 00 32 00 37 00 42 2E 43 2E 52 2E 47 ;5.46.2.7.B.C.R.G
6E 53 74 72 69 6B 65 00 37 00 34 00 32 38 00 32 ;nStrike.7.4.28.2
00 32 00 42 2E 43 2E 52 20 44 65 61 74 68 00 31 ;.2.B.C.R Death.1
30 00 34 00 31 30 36 00 32 00 33 00 42 69 67 64 ;0.4.106.2.3.Bigd
61 64 64 79 20 6C 6F 76 65 20 79 6F 75 00 30 00 ;addy love you.0.
30 00 33 38 00 31 00 30 00 49 63 79 44 61 72 6B ;0.38.1.0.IcyDark
6E 65 73 73 34 32 30 00 39 00 31 35 00 34 38 00 ;ness420.9.15.48.
31 00 35 00                                     ;1.5.

Key

(byte) Delimiter
(string) Ping Value
(string) Key
(string) Value
(strings) Empty key/value (end of key/value pairs)
(byte) Player count
(strings) Player info description
(string) Empty string (end of player info description)
(strings) Player info

Comments

The player info description contains what strings the player info contains and the order they come in.

All strings are null-terminated. An empty string will be a single null (0x00) byte.

Team information isn't in this response, but can be parsed exactly like the player data.
Get Firefox! int64.org - When 4GiB of RAM just isn't enough. SourceForge.net Logo
Creative Commons License
This work is licensed under a Creative Commons License.