Skip to content

Instantly share code, notes, and snippets.

@Nithanim
Created October 15, 2022 19:20
Show Gist options
  • Save Nithanim/8450df2409a9ea3fab96175cbdb1e9c5 to your computer and use it in GitHub Desktop.
Save Nithanim/8450df2409a9ea3fab96175cbdb1e9c5 to your computer and use it in GitHub Desktop.
010Editor Steam Server Query Response Template
// 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