Register for your free account! | Forgot your password?
Rust Cheats

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 10:48

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

Advertisement



[2010-Client]Serverinfo mit 2 Server'n

Discussion on [2010-Client]Serverinfo mit 2 Server'n within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1



 
sLay.'s Avatar
 
elite*gold: 80
The Black Market: 121/0/1
Join Date: Feb 2010
Posts: 4,407
Received Thanks: 2,857
[2010-Client]Serverinfo mit 2 Server'n

ahoi.
Ich denke jeder darf mal bisschen 'noobig' sein ;p
Also ich scheitere schon seit 2 Tagen daran eine einfache Serverinfo für den 10er Client mit 2 Servern zu machen.
Es sollte aber halt die akutelle Serverinfo sein mit der man auf die 10er Files connecten kann.

Hier meine jetzige Serverinfo mit einem Server & 4 Channels:

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''MEINEIP''symbol_path''10''mark''10.tga'
            
}
        },
        
'GAMEADDR': {
            
0: {
                
1: {
                    
'name''MEINSERVERNAME',
                    
'channel':
                {
                    
1: {'state''...''name''channel1''key'11'ip''MEINEIP''tcp_port'MEINPORT'udp_port'MEINPORT},
                    
2: {'state''...''name''channel2''key'12'ip''MEINEIP''tcp_port'MEINPORT'udp_port'MEINPORT},
                    
3: {'state''...''name''channel3''key'13'ip''MEINEIP''tcp_port'MEINPORT'udp_port'MEINPORT},
                    
4: {'state''...''name''channel4''key'14'ip''MEINEIP''tcp_port'MEINPORT'udp_port'MEINPORT}
                }
            },
        } }, 
'NAME': { 0'GERMANY' }, 'AUTHADDR': { 0: {
        
1: {
            
'ip''MEINEIP''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"
Wäre echt geil wenn mir jemand einen 2.Server mit 1 oder 2 Channels hinzufügen könnte

Vielen Dank.

sLay.
sLay. is offline  
Old 03/25/2011, 15:17   #2
 
elite*gold: 26
Join Date: Feb 2011
Posts: 654
Received Thanks: 244
Kenne mich nicht wirklich mit Client aus, aber könnte man den Text nicht einfach Copy+Paste machen und auf den 2. Server beziehen?

PS: Sry, wenns falsch ist
Quote:
Kenne mich nicht wirklich mit Client aus
'Blutwolf is offline  
Old 03/25/2011, 15:22   #3
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
Quote:
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():
info = {
'MARKADDR': {
10: {
'tcp_port': 13000, 'ip': 'MEINEIP', 'symbol_path': '10', 'mark': '10.tga'
}
11: {
'tcp_port': tcpport anderer server, 'ip': 'MEINEIP', 'symbol_path': '11', 'mark': '11.tga'
}
},
'GAMEADDR': {
0: {
1: {
'name': 'MEINSERVERNAME',
'channel':
{
1: {'state': '...', 'name': 'channel1', 'key': 11, 'ip': 'MEINEIP', 'tcp_port': MEINPORT, 'udp_port': MEINPORT},
2: {'state': '...', 'name': 'channel2', 'key': 12, 'ip': 'MEINEIP', 'tcp_port': MEINPORT, 'udp_port': MEINPORT}
}
2: {
'name': 'servername vom 2ten server',
'channel':
{
1: {'state': '...', 'name': 'channel1', 'key': 11, 'ip': '2te server ip', 'tcp_port': tcpport 2ter server, 'udp_port': udpport 2ter server},
2: {'state': '...', 'name': 'channel2', 'key': 12, 'ip': '2te server ip', 'tcp_port': tcpport 2ter server, 'udp_port': udpport 2ter server}
}
},
} }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
1: {
'ip': 'MEINEIP', 'port': 11002
}
2: {
'ip': '2te server ip', 'port': loginport vom 2ten server
}
} }
}

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"]
habs so und beimir gehts ...
probiers einfahc bei dir mal
nur ich hab je server nur 1 channel
lfcmaus is offline  
Old 03/25/2011, 15:28   #4
 
elite*gold: 26
Join Date: Feb 2011
Posts: 654
Received Thanks: 244
So sieht dann bei 4 Channels aus:
'Blutwolf is offline  
Old 03/25/2011, 17:18   #5
 
.Shanks's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 366
Received Thanks: 143
Quote:
Originally Posted by lfcmaus View Post
habs so und beimir gehts ...
probiers einfahc bei dir mal
nur ich hab je server nur 1 channel

Danke erstmal für die Hilfe, aber könntest du es vllt mal in [code] text [/code ] schreiben?
danke im vorraus

Mfg
.Shanks is offline  
Reply


Similar Threads Similar Threads
[2010 Client] Serverinfo.py
05/14/2011 - Metin2 Private Server - 5 Replies
Hallo, wolte fragen ob mir jemand helfen kann. Brauche einen Serverinfo.py mit 3 Servern.
[2010 Client] Serverinfo.py
12/27/2010 - Metin2 Private Server - 8 Replies
Hallo Com, habe ne Frage wegen der Serverinfo.py .. Ich verstehe es nicht wo die im liegt
2010 Client Serverinfo
12/25/2010 - Metin2 Private Server - 8 Replies
Moin, also ich habe mir vorhin den 2010er Client geladen und angefangen zu modden habe LoginScreen und soweiter mal ein bisschen geändert nun habe ich eine Frage: Ich habe in der Serverinfo.py die IP geändert nun will ich so eine Art verknüpfung im Clienten haben damit ich die IP auch änderen kann und die root.e** nicht immer
2010 Client // Serverinfo.py
11/19/2010 - Metin2 Private Server - 2 Replies
Kann mir jemand die Serverinfo.py für den 2010er Client geben? Bitte mit 2 Channels
Serverinfo.py - 2010 Client. Help Need.
09/12/2010 - Metin2 Private Server - 14 Replies
Meine Serverinfo sieht so aus: import os import app import locale import debugInfo CHINA_PORT = 50000 def BuildServerList(orderList):



All times are GMT +2. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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