hi
habe mal eine frage
ich will mit meinem 2010 clienten auf meinen server connecten.
ich wollte die serverinfo.py anpassen aber wo muss die ip hin????
habe mal eine frage
ich will mit meinem 2010 clienten auf meinen server connecten.
ich wollte die serverinfo.py anpassen aber wo muss die ip hin????
PHP Code:
import os
import app
import locale
import debugInfo
import binascii
CHINA_PORT = 50000
f = open('channel2.inf','r')
channel2 = binascii.a2b_base64(f.readline())
f = open('channel3.inf','r')
channel3 = binascii.a2b_base64(f.readline())
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
ridx += 1
return retRegion0, retAuthAddrDict, retMarkAddrDict
app.ServerName = None
if locale.IsEUROPE():
info = {
'MARKADDR': {
20: {
'tcp_port': 22000, 'ip': channel2, 'symbol_path': '10', 'mark': '10.tga'
},
30: {
'tcp_port': 22000, 'ip': channel3, 'symbol_path': '20', 'mark': '20.tga'
}
},
'GAMEADDR': {
0: {
2: {
'name': "Sirius",
'channel':
{
1: {
'state': 'NORM', 'name': 'Channel 1 ', 'key': 11, 'ip': channel2, 'tcp_port': 22000, 'udp_port': 22000
}
}
},
3: {
'name': "Legend",
'channel':
{
1: {
'state': 'NORM', 'name': 'Channel 1 ', 'key': 21, 'ip': channel3, 'tcp_port': 22000, 'udp_port': 22000
}
}
}
} }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
2: {
'ip': channel2, 'port': 11002
},
3: {
'ip': channel3, '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"]