|
You last visited: Today at 16:19
Advertisement
Serverinfo.py ein 2 channel einfügen ?
Discussion on Serverinfo.py ein 2 channel einfügen ? within the Metin2 Private Server forum part of the Metin2 category.
11/28/2011, 13:22
|
#1
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
Serverinfo.py ein 2 channel einfügen ?
Hallo Elitepvpers.
Dar ich wenig clientside erfahrung habe ! Frage ich lieber hier ...
Kann mir wer in diese Server info
Ein 2 Channel einfügen mit dem port 13001 ?
Wäre echt nett danke !
Code:
eimport os
import app
import locale
import debugInfo
import binascii
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': "********", 'symbol_path': '10', 'mark': '10.tga'
}
},
'GAMEADDR': {
0: {
1: {
'name': "Cryid2",
'channel':
{
1: {
'state': '...', 'name': 'CH1 ', 'key': 11, 'ip': "*********", 'tcp_port': 13000, 'udp_port': 13000
}
}
},
} }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
1: {
'ip': "*******", '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"]
|
|
|
11/28/2011, 13:38
|
#2
|
elite*gold: 0
Join Date: Jan 2011
Posts: 284
Received Thanks: 87
|
PHP Code:
eimport os
import app
import locale
import debugInfo
import binascii
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': "********", 'symbol_path': '10', 'mark': '10.tga'
}
},
'GAMEADDR': {
0: {
1: {
'name': "Cryid2",
'channel':
{
1: {
'state': '...', 'name': 'CH1 ', 'key': 11, 'ip':"*********", 'tcp_port': 13000, 'udp_port': 13000
'state': '...', 'name': 'CH2 ', 'key': 11, 'ip':"*********", 'tcp_port': 13001, 'udp_port': 13001
}
}
},
} }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
1: {
'ip': "*******", '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"]
|
|
|
11/28/2011, 13:42
|
#3
|
elite*gold: 0
Join Date: Jan 2011
Posts: 2,903
Received Thanks: 1,262
|
PHP Code:
eimport os import app import locale import debugInfo import binascii
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': "********", 'symbol_path': '10', 'mark': '10.tga' } }, 'GAMEADDR': { 0: { 1: { 'name': "Cryid2", 'channel': { 1: { 'state': '...', 'name': 'CH1 ', 'key': 11, 'ip':"*********", 'tcp_port': 13000, 'udp_port': 13000 'state': '...', 'name': 'CH2 ', 'key': 12, 'ip':"*********", 'tcp_port': 13001, 'udp_port': 13001 } } }, } }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: { 1: { 'ip': "*******", '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"]
Bei ch2 musst du doch statts 11 eine 12 machen ist doch ein anderer also so ist das bei den meisten
|
|
|
11/28/2011, 15:25
|
#4
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
Jetzt geht nix mehr -.-
wen ich client starte
kommt da ->
|
|
|
11/28/2011, 15:27
|
#5
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
|
das eimport am anfang sieht Böse aus xD
(ist es auch^^)
Mach import draus
|
|
|
11/28/2011, 16:07
|
#6
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
und was bringt das dan ?
|
|
|
11/28/2011, 16:10
|
#7
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
|
lol..
Grundlagenlehre xD
python kennt den begriff eimport nicht.^^
Es will import
|
|
|
11/28/2011, 17:21
|
#8
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
Achso das meinst du -.- ja das habe ich schon wegemacht aber der fehler is immernoch da ! Sobald ich 2 ch einfüge
|
|
|
11/28/2011, 17:26
|
#9
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
|
na gut, meine Vorposter haben ja auch ohne ende gefailt, sorry .. o:
PHP Code:
import os
import app
import locale
import debugInfo
import binascii
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': "********", 'symbol_path': '10', 'mark': '10.tga'
}
},
'GAMEADDR': {
0: {
1: {
'name': "Cryid2",
'channel':
{
1: {
'state': '...', 'name': 'CH1 ', 'key': 11, 'ip': "*********", 'tcp_port': 13000, 'udp_port': 13000
}
2: {
'state': '...', 'name': 'CH1 ', 'key': 11, 'ip': "*********", 'tcp_port': 13001, 'udp_port': 13001
}
}
},
} }, 'NAME': { 0: 'GERMANY' }, 'AUTHADDR': { 0: {
1: {
'ip': "*******", '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"]
|
|
|
11/28/2011, 17:33
|
#10
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
ich hoffe es geht !
wieder dieser fehler
|
|
|
11/28/2011, 17:39
|
#11
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
|
Dann stimmt von vornerein ewas nicht mit der datei..^^
|
|
|
11/28/2011, 17:42
|
#12
|
elite*gold: 0
Join Date: Jun 2010
Posts: 1,264
Received Thanks: 2,019
|
Code:
2: {
'state': '...', 'name': 'CH2 ', 'key': 11, 'ip': "*********", 'tcp_port': 13001, 'udp_port': 13001
}
DU musst das unter CH1 adden. Mijago hatte es schon richtig hier gepostet. Dann stimmt
etwas anderes bei dir nicht...
Mfg
|
|
|
11/28/2011, 17:55
|
#13
|
elite*gold: 1
Join Date: Jun 2011
Posts: 519
Received Thanks: 152
|
Doch alles stimt wen ich ohne diese 2ch reihe wieder packe einfüge geht der client aber mit 2ch reihe geht er ned -.-
|
|
|
11/28/2011, 18:20
|
#14
|
elite*gold: 0
Join Date: May 2011
Posts: 10,932
Received Thanks: 11,779
|
Code:
import os
import app
import locale
import debugInfo
CHINA_PORT = 50000
if locale.IsEUROPE():
STATE_NONE = "offline"
STATE_DICT = {
0 : "....",
1 : "normal",
2 : "belebt",
3 : "voll"
}
IgorGlock_serverinfo_Generator = {
1:{"key":11,"name":"Channel 1","ip":"Server-IP1","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
2:{"key":12,"name":"Channel 2","ip":"Server-IP1","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
}
REGION_NAME_DICT = {
0 : "GERMANY",
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip":"Server-IP1", "port":11002, },
}
}
REGION_DICT = {
0 : {
1 : { "name" :"Servername1", "channel" : IgorGlock_serverinfo_Generator, },
},
}
MARKADDR_DICT = {
10 : { "ip" : "Server-IP1", "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", },
}
TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : 50000, "udp_port" : 50000, }
MfG Marco_A
|
|
|
 |
Similar Threads
|
Serverinfo.py 2 Channel
03/05/2011 - Metin2 Private Server - 18 Replies
Hallo,
Was muss ich in die serverinfo.py:
import app
import locale
app.ServerName = None
if locale.IsGERMANY() or (locale.IsEUROPE() and app.GetLocalePath() == "locale/de"):
STATE_NONE = "Waiting...."
|
RAM Problem! Single Channel / Dual Channel
02/24/2011 - Technical Support - 6 Replies
Hallo ihr lieben!
Ich besitze 2 Ram Riegel.
Beide fassen 4GB! ( also insgesamt 8)
Ich benutze Windows 7 Ultimate 64 Bit
Es sind folgende Riegel: G.Skill DDR-1066 Pc3-8500
|
Hamachi P-Server Channel einfügen?
02/20/2011 - Metin2 Private Server - 3 Replies
Hi Com,
ich wollte euch mal Fragen wie
man bei einem Hamachi P-Server
einen 2.Channel einfügt oder mehrere
|
IP von Mosha in serverinfo.py einfügen
12/15/2009 - Metin2 Private Server - 0 Replies
huhu epvp,
ich habe seit letzter Zeit ein Problem.
Ich habe mit hilfe des Fileextractors den Client entpackt..also locale und root.eix
Nun habe ich ein wenig geändert und möchte mit diesem Client nun ohne Patchvorgang mit Metin DE verbinden.
Nur ist es anscheinend so, das die alten Ips falsch sind, welche in der entpackten Serverinfo.py stehen.
|
All times are GMT +1. The time now is 16:25.
|
|