From ce358e0b38eae70be10d52b492fed45f98c0fe90 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 3 Oct 2014 22:25:00 +0100 Subject: [PATCH] Added Just Cause 2 to gsquery.py gsquery now supports Just Cause 2 dedicated servers --- GameServerQuery/gsquery.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GameServerQuery/gsquery.py b/GameServerQuery/gsquery.py index 02e049a3a..644ce2781 100644 --- a/GameServerQuery/gsquery.py +++ b/GameServerQuery/gsquery.py @@ -1,9 +1,9 @@ #! /usr/bin/env python # -*- coding: utf-8 -*- -# Source Game Server Query +# Game Server Query # Author: Anonymous & Daniel Gibbs # # Website: http://danielgibbs.co.uk -# Version: 011014 +# Version: 031014 import optparse import socket @@ -29,6 +29,8 @@ class GameServer: self.query_prompt_string = '\x5C\x69\x6E\x66\x6F\x5C' elif self.option.engine == 'unreal2': self.query_prompt_string = '\x79\x00\x00\x00\x00' + elif self.option.engine == 'avalanche': + self.query_prompt_string = '\xFE\xFD\x09\x10\x20\x30\x40' self.connected = False self.response = None self.sanity_checks()