[FRAGE]2010 serverinfo.py

12/20/2010 19:54 Kevke1996#1
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????
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"] 
12/20/2010 20:02 DigghaBoom#2
Wo haste die her?
Nimm mal meine
12/20/2010 20:08 KaMeR1337#3
all serverinfo.py works with 2010 client
05/06/2011 14:06 'BestKilla#4
Das prenziep ist eigendlich eine gute serverinfo.py, denn die ip adresse wird darin verschlüsselt. im client verzeichniss sind channel2 und channel3 datein darin ist die ip gecrypt. aber wie mann das macht kp:D