|
|
@@ -20,18 +20,22 @@ class gsquery:
|
|
|
sourcequery=[ 'avalanche3.0','madness','quakelive','realvirtuality','refractor','source','goldsource','spark','starbound','unity3d', 'unreal4' ]
|
|
|
idtech3query=['idtech3','quake','iw3.0']
|
|
|
idtech2query=['idtech2','iw2.0']
|
|
|
+ minecraftquery=['minecraft','lwjgl2']
|
|
|
if self.option.engine in sourcequery:
|
|
|
self.query_prompt_string = b'\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
elif self.option.engine in idtech2query:
|
|
|
self.query_prompt_string = b'\xff\xff\xff\xffstatus\x00'
|
|
|
elif self.option.engine in idtech3query:
|
|
|
self.query_prompt_string = b'\xff\xff\xff\xffgetstatus'
|
|
|
+ elif self.option.engine in minecraftquery:
|
|
|
+ self.query_prompt_string = b'\xFE\xFD\x09\x3d\x54\x1f\x93'
|
|
|
elif self.option.engine == 'avalanche2.0':
|
|
|
self.query_prompt_string = b'\xFE\xFD\x09\x10\x20\x30\x40'
|
|
|
elif self.option.engine == 'unreal':
|
|
|
self.query_prompt_string = b'\x5C\x69\x6E\x66\x6F\x5C'
|
|
|
elif self.option.engine == 'unreal2':
|
|
|
self.query_prompt_string = b'\x79\x00\x00\x00\x00'
|
|
|
+
|
|
|
self.connected = False
|
|
|
self.response = None
|
|
|
self.sanity_checks()
|
|
|
@@ -100,7 +104,7 @@ if __name__ == '__main__':
|
|
|
action='store',
|
|
|
dest='engine',
|
|
|
default=False,
|
|
|
- help='Engine type: avalanche2.0, avalanche3.0, goldsource, idtech2, idtech3, iw2.0, iw3.0, realvirtuality, quake, quakelive, refractor, spark, source, unity3d, unreal, unreal2.'
|
|
|
+ help='Engine type: avalanche2.0, avalanche3.0, goldsource, idtech2, idtech3, iw2.0, iw3.0, minecraft, quake, quakelive, realvirtuality, refractor, spark, source, unity3d, unreal, unreal2.'
|
|
|
)
|
|
|
parser.add_option(
|
|
|
'-v', '--verbose',
|