mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-09-29 21:36:37 -05:00
Return server's console information
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@@ -222,4 +222,12 @@ pip-log.txt
|
||||
.idea/workspace.xml
|
||||
gpcm.db
|
||||
.idea/dictionaries/Nagato.xml
|
||||
.idea/modules.xml
|
||||
.idea/modules.xml
|
||||
|
||||
|
||||
# Other
|
||||
*.exe
|
||||
tools/data/*
|
||||
*.db
|
||||
*.db-journal
|
||||
test*.py
|
||||
|
||||
@@ -55,9 +55,6 @@ class GameSpyBackendServer(object):
|
||||
address = ("127.0.0.1", 27500)
|
||||
password = ""
|
||||
|
||||
#self.server_list['mariokartwii'] = []
|
||||
#self.server_list['mariokartwii'].append({'__session__': 1113766873, 'eb': '5000', 'ev': '5000', 'publicport': '61784', 'localip1': '190.190.190.190', 'gamename': 'mariokartwii', 'maxplayers': '11', 'dwc_mtype': '0', 'publicip': '167772642', 'dwc_mver': '90', 'rk': 'vs_123', 'natneg': '1', 'dwc_groupid': '0', 'localip0': '10.0.1.226', 'dwc_pid': '1', 'localport': '61784', 'statechanged': '1', 'dwc_suspend': '1', 'dwc_eval': '1', 'numplayers': '0', 'dwc_hoststate': '0', 'p': '0'})
|
||||
|
||||
logger.log(logging.INFO, "Started server on %s:%d..." % (address[0], address[1]))
|
||||
|
||||
manager = GameSpyServerDatabase(address = address, authkey = password)
|
||||
@@ -332,6 +329,9 @@ class GameSpyBackendServer(object):
|
||||
if '__session__' in server:
|
||||
result['__session__'] = server['__session__']
|
||||
|
||||
if '__console__' in server:
|
||||
result['__console__'] = server['__console__']
|
||||
|
||||
requested = {}
|
||||
for field in fields:
|
||||
if not field in result:
|
||||
|
||||
Reference in New Issue
Block a user