Cod: Selectaţi tot
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() and app.GetLocalePath() == "locale/ro"):
STATE_NONE = "..."
STATE_DICT = {
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
SERVER01_CHANNEL_DICT = {
1:{"key":11,"name":"CH1 ","ip":"89.46.xxx.xx","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
2:{"key":12,"name":"CH2 ","ip":"89.46.xxx.xx","tcp_port":13002,"udp_port":13002,"state":STATE_NONE,},
}
REGION_NAME_DICT = {
0 : "Italy",
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip":"89.46.xxx.xx", "port":11002, },
}
}
REGION_DICT = {
0 : {
1 : { "name" : "Metin2BaF", "channel" : SERVER01_CHANNEL_DICT, },
},
}
MARKADDR_DICT = {
# Lonca Sembolu Karakter Bug Fix Rtsa
10 : { "ip" : "89.46.xxx.xx", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", }, #wartime Lonca Sembolleri
# Lonca Sembolu Karakter Bug Fix Rtsa
20 : { "ip" : "89.46.xxx.xx", "tcp_port" : 13002, "mark" : "20.tga", "symbol_path" : "20", }, #wartime Lonca Sembolleri
}
TESTADDR = { 'ip' : '89.46.xxx.xx', 'tcp_port' : 50000, 'udp_port' : 50000, }


