Register for your free account! | Forgot your password?

You last visited: Today at 05:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Serverinfo.py

Discussion on Serverinfo.py within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
.Despero's Avatar
 
elite*gold: 75
Join Date: Mar 2012
Posts: 2,655
Received Thanks: 742
Serverinfo.py

ja ich habe eben mal den serverinfo.py von .DE gezogen

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() and app.GetLocalePath() == "locale/vn"):
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"CH1   ","ip":"25.23.177.100","tcp_port":13002,"udp_port":13002,"state":STATE_NONE,},    
    }
    
    
REGION_NAME_DICT = {
        
"Vietnam",        
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"25.23.177.100""port":11002, },
    
        }        
    }

    
REGION_DICT = {
        
: {
            
: { "name" :"Vietnam1""channel" SERVER01_CHANNEL_DICT, },                        
        },
    }

    
MARKADDR_DICT = {
        
10 : { "ip" "25.23.177.100""tcp_port" 13002"mark" "10.tga""symbol_path" "10", },
    }

    
TESTADDR = { "ip" "210.123.10.153""tcp_port" 50000"udp_port" 50000, }

if (
locale.IsEUROPE() and app.GetLocalePath() == "locale/sg"):
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"CH1   ","ip":"120.29.208.231","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        
2:{"key":12,"name":"CH2   ","ip":"120.29.208.232","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        
3:{"key":13,"name":"CH3   ","ip":"120.29.208.233","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        
4:{"key":14,"name":"CH4   ","ip":"120.29.208.234","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
    }
    
    
REGION_NAME_DICT = {
        
"Singapore",        
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"120.29.208.227""port":11000, },
    
        }        
    }

    
REGION_DICT = {
        
: {
            
: { "name" :"Singapore""channel" SERVER01_CHANNEL_DICT, },                        
        },
    }

    
MARKADDR_DICT = {
        
10 : { "ip" "120.29.208.231""tcp_port" 13000"mark" "10.tga""symbol_path" "10", },
    }

    
TESTADDR = { "ip" "210.123.10.153""tcp_port" 50000"udp_port" 50000, }

if (
locale.IsEUROPE() and app.GetLocalePath() == "locale/ca"):
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
SERVER01_CHANNEL = [
        {
"name":"CH11   ","ip":"74.200.6.201","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH12   ","ip":"74.200.6.202","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH13   ","ip":"74.200.6.203","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH14   ","ip":"74.200.6.204","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH15   ","ip":"74.200.6.205","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH16   ","ip":"74.200.6.206","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
    ]
    
SERVER02_CHANNEL =[
        {
"name":"CH21   ","ip":"74.200.6.211","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH22   ","ip":"74.200.6.212","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH23   ","ip":"74.200.6.213","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH24   ","ip":"74.200.6.214","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH25   ","ip":"74.200.6.215","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"CH26   ","ip":"74.200.6.216","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
    ]
    
    
SERVER01_MARK = { "ip" "74.200.6.202""tcp_port" 13000"mark" "10.tga""symbol_path" "10",}
    
SERVER02_MARK = { "ip" "74.200.6.212""tcp_port" 13000"mark" "20.tga""symbol_path" "20",}

    
SERVER01_AUTH = {  "ip":"74.200.6.209""port":11001, }            #Freekingdom
    
SERVER02_AUTH = {  "ip":"74.200.6.209""port":11002, }            #new world

    
SERVER01 = { "name" "FREE KINGDOM" 
    
SERVER02 = { "name" "NEW WORLD" 

    
TESTADDR = { "ip" "210.123.10.153""tcp_port" 50000"udp_port" 50000, }

    
REGION0_ORDER_LIST = [
        (
SERVER02SERVER02_AUTHSERVER02_MARKSERVER02_CHANNEL),
        (
SERVER01SERVER01_AUTHSERVER01_MARKSERVER01_CHANNEL),
        ]
        
    
# BUILD
    
NEW_REGION0NEW_REGION0_AUTH_SERVER_DICTNEW_MARKADDR_DICT BuildServerList(REGION0_ORDER_LIST)

    
# RESULT
    
NEW_REGION_NAME_DICT = {
        
"CANADA",        
    }

    
NEW_REGION_AUTH_SERVER_DICT = {
        
NEW_REGION0_AUTH_SERVER_DICT,
    }

    
NEW_REGION_DICT = {
        
NEW_REGION0,
    }

    
MARKADDR_DICT NEW_MARKADDR_DICT
    REGION_DICT 
NEW_REGION_DICT
    REGION_NAME_DICT 
NEW_REGION_NAME_DICT
    REGION_AUTH_SERVER_DICT 
NEW_REGION_AUTH_SERVER_DICT

if (locale.IsEUROPE() and app.GetLocalePath() == "locale/br"):
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"....",
        
"NORM",
        
"BUSY",
        
"FULL"
    
}

    
SHUNZO_CHANNEL = [
        {
"name":"SHUNZO-1   ","ip":"189.112.1.159","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-2   ","ip":"189.112.1.161","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-3   ","ip":"189.112.1.157","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-4   ","ip":"189.112.1.163","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-5   ","ip":"189.112.1.160","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-6   ","ip":"189.112.1.158","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
        {
"name":"SHUNZO-7   ","ip":"189.112.1.162","tcp_port":13100,"udp_port":13100,"state":STATE_NONE,},    
    ]

    
HORAN_CHANNEL = [
        {
"name":"HORAN-1   ","ip":"189.112.1.157","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-2   ","ip":"189.112.1.158","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-3   ","ip":"189.112.1.159","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-4   ","ip":"189.112.1.160","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-5   ","ip":"189.112.1.161","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-6   ","ip":"189.112.1.162","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"HORAN-7   ","ip":"189.112.1.163","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
    ]

    
RAIZAN_CHANNEL = [

        {
"name":"RAIZAN-1   ","ip":"189.112.1.194","tcp_port":13200,"udp_port":13200,"state":STATE_NONE,},
        {
"name":"RAIZAN-2   ","ip":"189.112.1.195","tcp_port":13200,"udp_port":13200,"state":STATE_NONE,},
        {
"name":"RAIZAN-3   ","ip":"189.112.1.194","tcp_port":13210,"udp_port":13210,"state":STATE_NONE,},
        {
"name":"RAIZAN-4   ","ip":"189.112.1.195","tcp_port":13210,"udp_port":13210,"state":STATE_NONE,},
    ]
    
SHUNZO_MARK = { "ip" "189.112.1.158""tcp_port" 13100"mark" "20.tga""symbol_path" "20", }    
    
HORAN_MARK = { "ip" "189.112.1.158""tcp_port" 13000"mark" "10.tga""symbol_path" "10", }    
    
RAIZAN_MARK = { "ip" "189.112.1.195""tcp_port" 13210"mark" "30.tga""symbol_path" "30", }    
        
    
SHUNZO_AUTH = { "ip":"189.112.1.155""port":11101, }
    
HORAN_AUTH = { "ip":"189.112.1.155""port":11001, }
    
RAIZAN_AUTH = { "ip":"189.112.1.155""port":11201, }
    

    
RAIZAN = { "name" "RAIZAN" }
    
SHUNZO = { "name" "SHUNZO" }                        
    
HORAN= { "name" "HORAN"}                    


    
TESTADDR = { "ip" "210.123.10.153""tcp_port" 50000"udp_port" 50000, }
    
    
REGION0_ORDER_LIST = [
        (
RAIZANRAIZAN_AUTHRAIZAN_MARKRAIZAN_CHANNEL),
        (
SHUNZOSHUNZO_AUTHSHUNZO_MARKSHUNZO_CHANNEL),
        (
HORANHORAN_AUTHHORAN_MARKHORAN_CHANNEL),
        ]
    
# BUILD
    
NEW_REGION0NEW_REGION0_AUTH_SERVER_DICTNEW_MARKADDR_DICT BuildServerList(REGION0_ORDER_LIST)

    
# RESULT
    
NEW_REGION_NAME_DICT = {
        
"BRAZIL",        
    }

    
NEW_REGION_AUTH_SERVER_DICT = {
        
NEW_REGION0_AUTH_SERVER_DICT,
    }

    
NEW_REGION_DICT = {
        
NEW_REGION0,
    }

    
MARKADDR_DICT NEW_MARKADDR_DICT
    REGION_DICT 
NEW_REGION_DICT
    REGION_NAME_DICT 
NEW_REGION_NAME_DICT
    REGION_AUTH_SERVER_DICT 
NEW_REGION_AUTH_SERVER_DICT

if locale.IsNEWCIBN():
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"ά",
        
"",
        
"æ",
        
""
    
}


    
TE1_CHANNELS = [
        {
"name":"һ","ip":"218.240.37.86","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"","ip":"218.240.37.87","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"","ip":"218.240.37.88","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
        {
"name":"ķ","ip":"218.240.37.89","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},    
    ]

    
TE1_MARK = { "ip" "218.240.37.87",    "tcp_port" 13000"mark" "50.tga""symbol_path" "50", }
        
    
TE1_AUTH = { "ip":"218.240.37.85",    "port":11061, }

    
TE1 = { "name" "˫ۺ"}

    
TESTADDR = { "ip" "210.123.10.153""tcp_port" 50000"udp_port" 50000, }

    
# ORDER
    
REGION0_ORDER_LIST = [
        (
TE1TE1_AUTHTE1_MARKTE1_CHANNELS),
    ]

    
# BUILD
    
NEW_REGION0NEW_REGION0_AUTH_SERVER_DICTNEW_MARKADDR_DICT BuildServerList(REGION0_ORDER_LIST)

    
# RESULT
    
NEW_REGION_NAME_DICT = {
        
"CHINA_NEWCIBN",        
    }

    
NEW_REGION_AUTH_SERVER_DICT = {
        
NEW_REGION0_AUTH_SERVER_DICT,
    }

    
NEW_REGION_DICT = {
        
NEW_REGION0,
    }

    
MARKADDR_DICT NEW_MARKADDR_DICT
    REGION_DICT 
NEW_REGION_DICT
    REGION_NAME_DICT 
NEW_REGION_NAME_DICT
    REGION_AUTH_SERVER_DICT 
NEW_REGION_AUTH_SERVER_DICT

elif locale
.IsJAPAN():
    
STATE_NONE "..."
                    
    
STATE_DICT = {
        
"...",
        
"",
        
"G",
        
"FULL"
    
}

    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"CHANNEL1   ","ip":"202.229.16.24","tcp_port":11000,"udp_port":11000,"state":STATE_NONE,},
        
#2:{"key":12,"name":"CHANNEL2   ","ip":"202.229.16.24","tcp_port":12000,"udp_port":12000,"state":STATE_NONE,},
    
}

    
MARKADDR_DICT = {
        
10 : { "ip" "202.229.16.24""tcp_port" 11000"mark" "10.tga""symbol_path" "10", },
    }

    
REGION_NAME_DICT = {
        
"JAPAN",
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"202.229.16.24""port":10001, },
        }
    }

    
REGION_DICT = {
        
: {
            
: { "name" """channel" SERVER01_CHANNEL_DICT, },
        },
    }

    
TESTADDR = { "ip" "202.229.16.4""tcp_port" 50000"udp_port" 50000, }


elif locale.IsYMIR():
    
STATE_NONE "..."
                    
                    
    
STATE_DICT = {
        
"",
        
"",
        
"ȥ",
        
"FULL"
    
}

    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"ä 1   ","ip":"202.31.212.51","tcp_port":50010,"udp_port":50010,"state":STATE_NONE,},
        
2:{"key":12,"name":"ä 2   ","ip":"202.31.212.51","tcp_port":50020,"udp_port":50020,"state":STATE_NONE,},
        
3:{"key":13,"name":"ä 3   ","ip":"202.31.212.51","tcp_port":50030,"udp_port":50030,"state":STATE_NONE,},
        
4:{"key":14,"name":"ä 4   ","ip":"202.31.212.51","tcp_port":50040,"udp_port":50040,"state":STATE_NONE,},
#        5:{"key":15,"name":"ä 5   ","ip":"202.31.212.51","tcp_port":50051,"udp_port":50051,"state":STATE_NONE,},        
#        5:{"key":15,"name":"Ѵ ","ip":"220.95.239.35","tcp_port":50100,"udp_port":50100,"state":STATE_NONE,},        
    
}

    
#6:{"key":16,"name":" ̺Ʈ","ip":"220.95.239.35","tcp_port":50100,"udp_port":50100,"state":STATE_NONE,},

    
REGION_NAME_DICT = {
        
"KOREA",        
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"202.31.212.51""port":51000, },
            
: { "ip":"202.31.212.15""port":51000, },
        }        
    }

    
REGION_DICT = {
        
: {
            
: { "name" "õ *""channel" SERVER01_CHANNEL_DICT, },
        },
    }

    
MARKADDR_DICT = {
        
10 : { "ip" "202.31.212.51""tcp_port" 50040"mark" "01.tga""symbol_path" "10", },
    }

    
TESTADDR = { "ip" "220.95.239.62""tcp_port" 50000"udp_port" 50000, }

elif locale.IsWE_KOREA():
    
STATE_NONE "..."
                    
                    
    
STATE_DICT = {
        
"",
        
"",
        
"ȥ",
        
"FULL"
    
}


    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"ä 1   ","ip":"202.31.212.15","tcp_port":50010,"udp_port":50010,"state":STATE_NONE,},    
        
2:{"key":12,"name":"ä 2   ","ip":"202.31.212.15","tcp_port":50020,"udp_port":50020,"state":STATE_NONE,},    
    }

    
REGION_NAME_DICT = {
        
"KOREA",        
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"202.31.212.15""port":51000, },
        }        
    }

    
REGION_DICT = {
        
: {
            
: { "name" "赵 *""channel" SERVER01_CHANNEL_DICT, },
        },
    }

    
MARKADDR_DICT = {
        
10 : { "ip" "202.31.212.15""tcp_port" 50040"mark" "02.tga""symbol_path" "20", },
    }

    
TESTADDR = { "ip" "220.95.239.62""tcp_port" 50000"udp_port" 50000, }

elif locale.IsTAIWAN():
    
STATE_NONE "..."

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

    
SERVER01_CHANNEL_DICT = {
        
1:{"key":11,"name":"CHANNEL1   ","ip":"203.69.141.201","tcp_port":50010,"udp_port":50010,"state":STATE_NONE,},
        
2:{"key":12,"name":"CHANNEL2   ","ip":"203.69.141.201","tcp_port":50020,"udp_port":50020,"state":STATE_NONE,},
    }

    
MARKADDR_DICT = {
        
10 : { "ip" "203.69.141.201""tcp_port" 50010"mark" "10.tga""symbol_path" "10", },
    }

    
REGION_NAME_DICT = {
        
"TAIWAN",
    }

    
REGION_AUTH_SERVER_DICT = {
        
: {
            
: { "ip":"203.69.141.201""port":51000, },
        }
    }

    
REGION_DICT = {
        
: {
            
: { "name" "ss""channel" SERVER01_CHANNEL_DICT, },
        },
    }

    
TESTADDR = { "ip" "203.69.141.201""tcp_port" 50000"udp_port" 50000, }
    
if 
locale.IsEUROPE():
    
name app.GetLocalePath().replace("/""_") + ".addr"
    
path os.sep.join(("pack"name))
    if 
os.access(pathos.R_OK):
        print 
"load_locale_addr:"path

        data 
app.LoadLocaleAddr(path)

        
import cPickle
        import cStringIO
        info 
cPickle.load(cStringIO.StringIO(data))

        
STATE_NONE "..."

        
STATE_DICT = {
            
"....",
            
"NORM",
            
"BUSY",
            
"FULL"
            
}
        
        
SERVER_ID_DICT info["SERVERID"]
        
REGION_NAME_DICT info["NAME"]
        
REGION_AUTH_SERVER_DICT info["AUTHADDR"]
        
REGION_DICT info["GAMEADDR"]
        
MARKADDR_DICT info["MARKADDR"
Ich will aber das es nur 2 Server gibt und 4 Chs

1 Server: Virtus2
2 Server: Test-Server

Ports von Channels:
Ch1 : 13001
Ch2 : 13002
Ch3 : 13003
Ch4 : 13004
.Despero is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
plz help with serverinfo.py :)
12/13/2012 - Metin2 - 2 Replies
Hi all I tried to bug yang (bot) now I think you know what's that, I have a hack (Metin2Mod_ml_05032011) and as you know hack works with the file which is installed in client serverinfo.py, well I changed that file serverinfo.py one in which we put other IPs and ports, and after I enter hack when I login in my server connection remains and appears to be online ch. What can I do not to remain connecting? esteem and respect for those who help me:handsdown: Forgive me for my...
Need help bei Serverinfo.py
09/13/2011 - Metin2 Private Server - 4 Replies
Hey leute Wie die berschrift es schon sagt, geht es um eine Serverinfo.py. Nun denn mein Problem ist das ich nun wieder anfange nen 2007er Client zu Modden mein Problem dabei ist allerdings, dass ich nichtmehr wei, unter welchem abschnitt ich die Daten verndern muss logisch kam mir "Germany" vor nur selbst dort kam dann LoadLocaleError(locale/hongkong/locale_game.txt) soweit ich nun wei liegt es nicht an der Datei "locale_game.txt sondern an der Serverinfo.py. Wenn jemand wei welchen...
Serverinfo.py
09/03/2011 - Metin2 - 0 Replies
Ich habe ein Problem. Ich will einen Clienten Modden hab davon keine Ahnung. Und ich wollte fragen wie das mit der Serverinfo.py Datei geht. Ich will den Namen von meinem Client ndern aber es klappt nicht. Ich habe es schon versucht. Aber bei mit hat es nicht geklappt. Knnte mir da jemand bitte Helfen?
Help bei serverinfo
05/08/2011 - Metin2 Private Server - 7 Replies
Hey leute ich spiele auf einem p-server und ich brauche die IP von der serverinfo weil ich die in modiclient einfge kann jemand die root dateien entpacken und gucken was die IP ist?? ich krieg sie nicht raus ich wre euch soo dankbar THX
serverinfo.py?
05/16/2010 - Metin2 Private Server - 9 Replies
Hallo, Ich habe den Client von Neonblue (3.0). Jetzt will ich die Serverinfo.py verndern! Hab gelesen dafr muss ich root.eix/epk entpacken. Die sollen angeblich im pack ordner sein. Aber unter dem Ordner "pack" ist nicht. Ich finde die root datein einfach nicht.. Was soll ich machen? Sind die wo anders?



All times are GMT +2. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.