Kann mir wer die serverinfo von xXDemonenXx
so machen ?
Ich möchte 2ch
1ch port 13000
2ch 13001
da wo die ip hinkommt einfach ip hinschreiben ...
Wer dass macht bekommt ein fettes Thx
Hier die serverinfo
import os
import app
import locale
import debugInfo
CHINA_PORT = 50000
def BuildServerList(orderList):
retMarkAddrDict = {}
retAuthAddrDict = {}
retRegion0 = {}
ridx = 1
for region, auth, mark, channels in orderList:
cidx = 1
channelDict = {}
for channel in channels:
key = ridx * 10 + cidx
channel["key"] = key
channelDict[cidx] = channel
cidx += 1
region["channel"] = channelDict
retRegion0[ridx] = region
retAuthAddrDict[ridx] = auth
retMarkAddrDict[ridx*10] = mark
ridx += 1
return retRegion0, retAuthAddrDict, retMarkAddrDict
app.ServerName = None
if locale.IsEUROPE():
info = {
'MARKADDR':
{
10: {'tcp_port': 13000, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#20: {'tcp_port': 15102, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#30: {'tcp_port': 13001, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#40: {'tcp_port': 16099, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#50: {'tcp_port': 13000, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'}
},
'GAMEADDR':
{0: {
1: {'name': 'Server 1','channel':{
1: {'state': '...', 'name': 'CH1 ', 'key': 11, 'ip': '0.0.0.0', 'tcp_port': 13000, 'udp_port': 13000}
}},
#2: {'name': 'Server 2','channel':{
#1: {'state': '...', 'name': 'CH1 ', 'key': 21, 'ip': '0.0.0.0', 'tcp_port': 15109, 'udp_port': 15109}
#}},
#3: {'name': 'Server 3','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 31, 'ip': '0.0.0.0', 'tcp_port': 13001, 'udp_port': 13001}
#}},
#4: {'name': 'Server 4','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 41, 'ip': '0.0.0.0', 'tcp_port': 16000, 'udp_port': 16000},
# 2: {'state': '...', 'name': 'CH2 ', 'key': 42, 'ip': '0.0.0.0', 'tcp_port': 16001, 'udp_port': 16001}
#}},
#5: {'name': 'Server 5','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 51, 'ip': '0.0.0.0', 'tcp_port': 13099, 'udp_port': 13099}
#}}
}
},
'NAME': { 0: 'GERMANY' },
'AUTHADDR':
{0: {
1: {'ip': '0.0.0.0', 'port': 13373},
#2: {'ip': '0.0.0.0', 'port': 1338},
#3: {'ip': '0.0.0.0', 'port': 11002},
#4: {'ip': '0.0.0.0', 'port': 21002},
#5: {'ip': '0.0.0.0', 'port': 11002}
} }
}
STATE_NONE = "..."
STATE_DICT = {
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
REGION_NAME_DICT = info["NAME"]
REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
REGION_DICT = info["GAMEADDR"]
MARKADDR_DICT = info["MARKADDR"]
import app
import locale
import debugInfo
CHINA_PORT = 50000
def BuildServerList(orderList):
retMarkAddrDict = {}
retAuthAddrDict = {}
retRegion0 = {}
ridx = 1
for region, auth, mark, channels in orderList:
cidx = 1
channelDict = {}
for channel in channels:
key = ridx * 10 + cidx
channel["key"] = key
channelDict[cidx] = channel
cidx += 1
region["channel"] = channelDict
retRegion0[ridx] = region
retAuthAddrDict[ridx] = auth
retMarkAddrDict[ridx*10] = mark
ridx += 1
return retRegion0, retAuthAddrDict, retMarkAddrDict
app.ServerName = None
if locale.IsEUROPE():
info = {
'MARKADDR':
{
10: {'tcp_port': 13000, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#20: {'tcp_port': 15102, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#30: {'tcp_port': 13001, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#40: {'tcp_port': 16099, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'},
#50: {'tcp_port': 13000, 'ip': '0.0.0.0', 'symbol_path': '10', 'mark': '10.tga'}
},
'GAMEADDR':
{0: {
1: {'name': 'Server 1','channel':{
1: {'state': '...', 'name': 'CH1 ', 'key': 11, 'ip': '0.0.0.0', 'tcp_port': 13000, 'udp_port': 13000}
}},
#2: {'name': 'Server 2','channel':{
#1: {'state': '...', 'name': 'CH1 ', 'key': 21, 'ip': '0.0.0.0', 'tcp_port': 15109, 'udp_port': 15109}
#}},
#3: {'name': 'Server 3','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 31, 'ip': '0.0.0.0', 'tcp_port': 13001, 'udp_port': 13001}
#}},
#4: {'name': 'Server 4','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 41, 'ip': '0.0.0.0', 'tcp_port': 16000, 'udp_port': 16000},
# 2: {'state': '...', 'name': 'CH2 ', 'key': 42, 'ip': '0.0.0.0', 'tcp_port': 16001, 'udp_port': 16001}
#}},
#5: {'name': 'Server 5','channel':{
# 1: {'state': '...', 'name': 'CH1 ', 'key': 51, 'ip': '0.0.0.0', 'tcp_port': 13099, 'udp_port': 13099}
#}}
}
},
'NAME': { 0: 'GERMANY' },
'AUTHADDR':
{0: {
1: {'ip': '0.0.0.0', 'port': 13373},
#2: {'ip': '0.0.0.0', 'port': 1338},
#3: {'ip': '0.0.0.0', 'port': 11002},
#4: {'ip': '0.0.0.0', 'port': 21002},
#5: {'ip': '0.0.0.0', 'port': 11002}
} }
}
STATE_NONE = "..."
STATE_DICT = {
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
REGION_NAME_DICT = info["NAME"]
REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
REGION_DICT = info["GAMEADDR"]
MARKADDR_DICT = info["MARKADDR"]