Serverinfo.py erstellen?

06/27/2011 15:46 Dreamer™#1
Hallo,

habe folgende Ports

config aus auth:
Quote:
HOSTNAME: auth
CHANNEL: 1
PORT: 13373
P2P_PORT: 12000
DB_PORT: 15000
DB_ADDR: localhost
TABLE_POSTFIX:
ITEM_ID_RANGE: 000000001 000000002
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
AUTH_SERVER: master
PLAYER_SQL: localhost mt2 mt2!@# player
COMMON_SQL: localhost mt2 mt2!@# common
LOG_SQL: localhost mt2 mt2!@# log
LOCALE_SERVICE: germany
und die aus der game99 config

Quote:
HOSTNAME: channel99
CHANNEL: 99
PORT: 13001
P2P_PORT: 14001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
COMMON_SQL: localhost mt2 mt2!@# common
LOG_SQL: localhost mt2 mt2!@# log
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org

VIEW_RANGE: 20000
CHECK_MULTIHACK: 1
meine ip ist 109.236.80.122

kann mir die einer machen? der, der es schaafft, würde nen ga platz aufn rootserver bekommen ;)

skype: dreamscape95

lg
06/27/2011 16:27 £αšεℜ™#2
PHP Code:
import os
import app
import locale
import debugInfo

CHINA_PORT 
50000

def BuildServerList
(orderList):
    
retMarkAddrDict = {}
    
retAuthAddrDict = {}
    
retRegion0 = {}

    
ridx 1
    
for regionauthmarkchannels 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 retRegion0retAuthAddrDictretMarkAddrDict

app
.ServerName None


if locale.IsEUROPE():
    
info = {
        
'MARKADDR': {
        
10: {
            
'tcp_port'13000'ip''109.236.80.122''symbol_path''10''mark''10.tga'
            
}
        },
        
'GAMEADDR': {
            
0: {
                
1: {
                    
'name''dein servernamen',
                    
'channel':
                {
                    
1: {'state''...''name''Channel1''key'11'ip''109.236.80.122''tcp_port'13001'udp_port'13001},
                    
2: {'state''...''name''Channel2''key'12'ip''109.236.80.122''tcp_port'13002'udp_port'13002}
                }
            },
        } }, 
'NAME': { 0'GERMANY' }, 'AUTHADDR': { 0: {
        
1: {
            
'ip''109.236.80.122''port'11002
            
}
        } }
    }

    
STATE_NONE "..."

    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
REGION_NAME_DICT info["NAME"]
    
REGION_AUTH_SERVER_DICT info["AUTHADDR"]
    
REGION_DICT info["GAMEADDR"]
    
MARKADDR_DICT info["MARKADDR"
wenn es nicht geht sag es mir ;)
06/27/2011 16:46 Dreamer™#3
da kommt sofort n startfehler ...
06/27/2011 16:50 £αšεℜ™#4
kannst du ihn hir reinschreiben damit ich mir das mal ansehen kann?
06/27/2011 17:05 Fame™#5
Probiere es mal mit damit.
PHP Code:
import os
import app
import locale
import debugInfo

CHINA_PORT 
50000

def BuildServerList
(orderList):
    
retMarkAddrDict = {}
    
retAuthAddrDict = {}
    
retRegion0 = {}

    
ridx 1
    
for regionauthmarkchannels 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 retRegion0retAuthAddrDictretMarkAddrDict

app
.Name None


if locale.IsEUROPE():
    
info = {
        
'MARKADDR': {
        
10: {
            
'tcp_port'13000'ip''109.236.80.122''symbol_path''10''mark''10.tga'
            
}
        },
        
'GAMEADDR': {
            
0: {
                
1: {
                    
'name''Name',
                    
'channel':
                {
                    
1: {
                    
'state''...''name''CH1   ''key'11'ip''109.236.80.122''tcp_port'13000'udp_port'13000
                    
}, 2: {
                    
'state''...''name''CH2   ''key'12'ip''109.236.80.122''tcp_port'16000'udp_port'16000
                    
}
                }
            },
        } }, 
'NAME': { 0'GERMANY' }, 'AUTHADDR': { 0: {
        
1: {
            
'ip''109.236.80.122''port'11002
            
}
        } }
    }

    
STATE_NONE "..."

    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
REGION_NAME_DICT info["NAME"]
    
REGION_AUTH_SERVER_DICT info["AUTHADDR"]
    
REGION_DICT info["GAMEADDR"]
    
MARKADDR_DICT info["MARKADDR"

MfG Fun
06/27/2011 22:34 .Hiяo#6
einfach mal auf die Page von Igor gehen. [Only registered and activated users can see links. Click Here To Register...]
06/27/2011 22:36 'aiiR7#7
Oida Tim.
Ich schick' sie dir morgen in Skype.