Created
October 15, 2022 19:20
-
-
Save Nithanim/8450df2409a9ea3fab96175cbdb1e9c5 to your computer and use it in GitHub Desktop.
010Editor Steam Server Query Response Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 010Editor templatefor steam server query response | |
//https://developer.valvesoftware.com/wiki/Server_queries | |
int32 prefix; | |
byte header<format=hex>; | |
byte protocol<format=hex>; | |
string name; | |
string map; | |
string folder; | |
string game; | |
short id; | |
byte players; | |
byte maxPlayers; | |
byte bots; | |
char serverType; | |
char os; | |
byte visibility; | |
byte vac; | |
string version; | |
byte extraData<format=binary>; | |
if(extraData & 0x80) { | |
ushort port; | |
} | |
if(extraData & 0x10) { | |
ulong serverSteamId; | |
} | |
if(extraData & 0x40) { | |
ushort spectatorServerPort; | |
string spectatorServerName; | |
} | |
if(extraData & 0x20) { | |
string tags; | |
} | |
if(extraData & 0x01) { | |
ulong serverGameId; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment