Skocz do zawartości

[Problem] Kamer mod


Rekomendowane odpowiedzi

Witam.

 

Mam taki problem. Otóż sciągnełem kamer moda i dodałem serwer GuerraMt2 wszystko zrobiłem dobrze, pisze normal ale jak klikam ok to pisze tylko zostaniesz połączony z serwerem i nic dalej. To samo jest na AvalonMt2. Avalonmt2 to s1 a Guerra to s27. Moje pytanie jest takie: Co mam zrobić aby mi działało? Podam was z serverinfo.py co mam zrobione.

import locale
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
if locale.IsEUROPE():
STATE_NONE = '...'
STATE_DICT = {
 0 : '....',
 1 : 'NORM',
 2 : 'BUSY',
 3 : 'FULL',
}
CHANNELS1 = [
 {'name':'CH1','ip':'188.165.251.217','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.251.217','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
 {'name':'CH3','ip':'188.165.251.217','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
 {'name':'CH4','ip':'188.165.251.217','tcp_port':24000,'udp_port':24000,'state':STATE_NONE,},
]
CHANNELS2 = [
 {'name':'CH1','ip':'94.23.225.165','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.225.165','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.225.165','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.225.165','tcp_port':24000,'udp_port':24000,'state':STATE_NONE,},
]
CHANNELS3 = [
 {'name':'CH1','ip':'188.165.206.120','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.206.120','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
 {'name':'CH3','ip':'188.165.206.120','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
 {'name':'CH4','ip':'188.165.206.120','tcp_port':24000,'udp_port':24000,'state':STATE_NONE,},
]
CHANNELS4 = [
 {'name':'CH1','ip':'188.165.203.180','tcp_port':24100,'udp_port':24100,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.203.180','tcp_port':24200,'udp_port':24200,'state':STATE_NONE,},
 {'name':'CH3','ip':'188.165.203.180','tcp_port':24300,'udp_port':24300,'state':STATE_NONE,},
 {'name':'CH4','ip':'188.165.203.180','tcp_port':24400,'udp_port':24400,'state':STATE_NONE,},
]
CHANNELS5 = [
 {'name':'CH1','ip':'91.121.25.58','tcp_port':24200,'udp_port':24200,'state':STATE_NONE,},
 {'name':'CH2','ip':'91.121.25.58','tcp_port':24300,'udp_port':24300,'state':STATE_NONE,},
 {'name':'CH3','ip':'91.121.25.58','tcp_port':24400,'udp_port':24400,'state':STATE_NONE,},
]
CHANNELS6 = [
 {'name':'CH1','ip':'94.23.227.9','tcp_port':7000,'udp_port':7000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.227.9','tcp_port':8000,'udp_port':8000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.227.9','tcp_port':10000,'udp_port':10000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.227.9','tcp_port':9000,'udp_port':9000,'state':STATE_NONE,},
]
CHANNELS7 = [
 {'name':'CH1','ip':'94.23.8.155','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.8.155','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.8.155','tcp_port':19000,'udp_port':19000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.8.155','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
]
CHANNELS8 = [
 {'name':'CH1','ip':'94.23.222.21','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.222.21','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.222.21','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.222.21','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
]
CHANNELS9 = [
 {'name':'CH1','ip':'95.0.216.150','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
]
CHANNELS10 = [
 {'name':'CH1','ip':'94.23.15.89','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.15.89','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.15.89','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.15.89','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
]
CHANNELS11 = [
 {'name':'CH1','ip':'188.165.243.93','tcp_port':10,'udp_port':10,'state':STATE_NONE,},
]
CHANNELS12 = [
 {'name':'CH1','ip':'68.71.46.211','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'68.71.46.211','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
]
CHANNELS13 = [
 {'name':'CH1','ip':'94.23.29.214','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
]
CHANNELS14 = [
 {'name':'CH1','ip':'188.165.223.58','tcp_port':26300,'udp_port':26300,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.223.58','tcp_port':53100,'udp_port':53100,'state':STATE_NONE,},
]
CHANNELS15 = [
 {'name':'CH1','ip':'188.165.219.144','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.219.144','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
 {'name':'CH3','ip':'188.165.219.144','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH4','ip':'188.165.219.144','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
]
CHANNELS16 = [
 {'name':'CH1','ip':'94.23.220.79','tcp_port':18000,'udp_port':18000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.220.79','tcp_port':20000,'udp_port':20000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.220.79','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.220.79','tcp_port':24000,'udp_port':24000,'state':STATE_NONE,},
]
CHANNELS17 = [
 {'name':'CH1','ip':'178.33.52.79','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
]
CHANNELS18 = [
 {'name':'CH1','ip':'188.165.216.87','tcp_port':1300,'udp_port':1300,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.216.87','tcp_port':1600,'udp_port':1600,'state':STATE_NONE,},
 {'name':'CH3','ip':'188.165.216.87','tcp_port':1800,'udp_port':1800,'state':STATE_NONE,},
 {'name':'CH4','ip':'188.165.216.87','tcp_port':200,'udp_port':200,'state':STATE_NONE,},
]
CHANNELS19 = [
 {'name':'CH1','ip':'188.165.206.170','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
]
CHANNELS20 = [
 {'name':'CH1','ip':'188.138.109.197','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.138.109.197','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
]
CHANNELS21 = [
 {'name':'CH1','ip':'109.236.80.38','tcp_port':15000,'udp_port':15000,'state':STATE_NONE,},
 {'name':'CH2','ip':'109.236.84.10','tcp_port':17000,'udp_port':17000,'state':STATE_NONE,},
 {'name':'CH3','ip':'109.236.84.13','tcp_port':19000,'udp_port':19000,'state':STATE_NONE,},
]
CHANNELS22 = [
 {'name':'CH1','ip':'virtual.servebeer.com','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'virtual.servebeer.com','tcp_port':16000,'udp_port':16000,'state':STATE_NONE,},
]
CHANNELS23 = [
 {'name':'CH1','ip':'emperialmt2.hopto.org','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
]
CHANNELS24 = [
 {'name':'CH1','ip':'188.165.229.145','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'188.165.229.145','tcp_port':13191,'udp_port':13191,'state':STATE_NONE,},
 {'name':'CH3','ip':'91.121.137.17','tcp_port':13037,'udp_port':13037,'state':STATE_NONE,},
 {'name':'CH4','ip':'91.121.137.17','tcp_port':15037,'udp_port':15037,'state':STATE_NONE,},
]
CHANNELS25 = [
 {'name':'CH1','ip':'94.23.11.22','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.11.22','tcp_port':13191,'udp_port':13191,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.11.22','tcp_port':13293,'udp_port':13293,'state':STATE_NONE,},
]
CHANNELS26 = [
 {'name':'CH1','ip':'109.201.134.78','tcp_port':6000,'udp_port':6000,'state':STATE_NONE,},
 {'name':'CH2','ip':'109.201.134.78','tcp_port':8000,'udp_port':8000,'state':STATE_NONE,},
]
CHANNELS27 = [
 {'name':'CH1','ip':'94.23.249.80','tcp_port':4000,'udp_port':4000,'state':STATE_NONE,},
 {'name':'CH2','ip':'94.23.249.80','tcp_port':5000,'udp_port':5000,'state':STATE_NONE,},
 {'name':'CH3','ip':'94.23.249.80','tcp_port':6000,'udp_port':6000,'state':STATE_NONE,},
 {'name':'CH4','ip':'94.23.249.80','tcp_port':7000,'udp_port':7000,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '188.165.251.217', 'tcp_port' : 18000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK2 = { 'ip' : '94.23.225.165', 'tcp_port' : 18000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK3 = { 'ip' : '188.165.206.120', 'tcp_port' : 18000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK4 = { 'ip' : '188.165.203.180', 'tcp_port' : 24100, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK5 = { 'ip' : '91.121.25.58', 'tcp_port' : 24200, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK6 = { 'ip' : '94.23.227.9', 'tcp_port' : 7000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK7 = { 'ip' : '94.23.8.155', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK8 = { 'ip' : '94.23.222.21', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK9 = { 'ip' : '95.0.216.150', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK10 = { 'ip' : '94.23.15.89', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK11 = { 'ip' : '188.165.243.93', 'tcp_port' : 10, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK12 = { 'ip' : '68.71.46.211', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK13 = { 'ip' : '94.23.29.214', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK14 = { 'ip' : '188.165.223.58', 'tcp_port' : 26300, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK15 = { 'ip' : '188.165.219.144', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK16 = { 'ip' : '94.23.220.79', 'tcp_port' : 18000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK17 = { 'ip' : '178.33.52.79', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK18 = { 'ip' : '188.165.216.87', 'tcp_port' : 1300, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK19 = { 'ip' : '188.165.206.170', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK20 = { 'ip' : '188.138.109.197', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK21 = { 'ip' : '109.236.80.38', 'tcp_port' : 15000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK22 = { 'ip' : 'virtual.servebeer.com', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK23 = { 'ip' : 'emperialmt2.hopto.org', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK24 = { 'ip' : '188.165.229.145', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK25 = { 'ip' : '94.23.11.22', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK26 = { 'ip' : '109.201.134.78', 'tcp_port' : 6000, 'mark' : '120.tga', 'symbol_path' : '120', }
MARK27 = { 'ip' : '94.23.249.80', 'tcp_port' : 4000, 'mark' : '120.tga', 'symbol_path' : '120', }
AUTH1 = {'ip':'188.165.251.217','port':11002, }
AUTH2 = {'ip':'94.23.225.165','port':11002, }
AUTH3 = {'ip':'188.165.206.120','port':11002, }
AUTH4 = {'ip':'188.165.203.180','port':12002, }
AUTH5 = {'ip':'91.121.25.58','port':25002, }
AUTH6 = {'ip':'94.23.227.9','port':11002, }
AUTH7 = {'ip':'94.23.8.155','port':11002, }
AUTH8 = {'ip':'94.23.222.21','port':11002, }
AUTH9 = {'ip':'95.0.216.150','port':11002, }
AUTH10 = {'ip':'94.23.15.89','port':11666, }
AUTH11 = {'ip':'188.165.243.93','port':3, }
AUTH12 = {'ip':'68.71.46.211','port':21002, }
AUTH13 = {'ip':'94.23.29.214','port':11002, }
AUTH14 = {'ip':'188.165.223.58','port':6002, }
AUTH15 = {'ip':'188.165.219.144','port':12002, }
AUTH16 = {'ip':'94.23.220.79','port':11002, }
AUTH17 = {'ip':'178.33.52.79','port':11002, }
AUTH18 = {'ip':'188.165.216.87','port':11002, }
AUTH19 = {'ip':'188.165.206.170','port':11002, }
AUTH20 = {'ip':'188.138.109.197','port':11002, }
AUTH21 = {'ip':'109.236.80.38','port':11002, }
AUTH22 = {'ip':'virtual.servebeer.com','port':11002, }
AUTH23 = {'ip':'emperialmt2.hopto.org','port':11002, }
AUTH24 = {'ip':'188.165.229.145','port':5, }
AUTH25 = {'ip':'94.23.11.22','port':5, }
AUTH26 = {'ip':'109.201.134.78','port':10001, }
AUTH27 = {'ip':'94.23.249.80','port':3002, }
NAME1 = { 'name' : 'AvalonMT2[AvalonMT2.pl]'}
NAME2 = { 'name' : 'AuroraMT2[AvalonMT2.pl]'}
NAME3 = { 'name' : 'FebeMT2[AvalonMT2.pl]'}
NAME4 = { 'name' : 'Sirius[NovaMT2.org]'}
NAME5 = { 'name' : 'Orion[NovaMT2.org]'}
NAME6 = { 'name' : 'KingWorld'}
NAME7 = { 'name' : 'FantasticWorld'}
NAME8 = { 'name' : 'BelenuS[metin2-belenus.pl]'}
NAME9 = { 'name' : 'yt2.org'}
NAME10 = { 'name' : 'NexusMT2'}
NAME11 = { 'name' : 'GondorMT2'}
NAME12 = { 'name' : 'AspireMT2'}
NAME13 = { 'name' : 'Slaris2'}
NAME14 = { 'name' : 'ExtremeS2(screensun.eu)'}
NAME15 = { 'name' : 'elandos'}
NAME16 = { 'name' : 'EnyoMT2'}
NAME17 = { 'name' : 'ExcellenceMT2'}
NAME18 = { 'name' : 'Mystic-World2'}
NAME19 = { 'name' : 'VitaliaMT2'}
NAME20 = { 'name' : 'AlegoriaMT2'}
NAME21 = { 'name' : 'LocMT2'}
NAME22 = { 'name' : 'VirtualMT2'}
NAME23 = { 'name' : 'EmperialMT2'}
NAME24 = { 'name' : 'Candylongju[Lollipop]'}
NAME25 = { 'name' : 'Candylongju[Toffee]'}
NAME26 = { 'name' : 'Metin2United[Omega]'}
NAME27 = { 'name' : 'GuerraMt2[Guerramt2.eu]'}
REGION0_ORDER_LIST = [
 (NAME1, AUTH1, MARK1, CHANNELS1),
 (NAME2, AUTH2, MARK2, CHANNELS2),
 (NAME3, AUTH3, MARK3, CHANNELS3),
 (NAME4, AUTH4, MARK4, CHANNELS4),
 (NAME5, AUTH5, MARK5, CHANNELS5),
 (NAME6, AUTH6, MARK6, CHANNELS6),
 (NAME7, AUTH7, MARK7, CHANNELS7),
 (NAME8, AUTH8, MARK8, CHANNELS8),
 (NAME9, AUTH9, MARK9, CHANNELS9),
 (NAME10, AUTH10, MARK10, CHANNELS10),
 (NAME11, AUTH11, MARK11, CHANNELS11),
 (NAME12, AUTH12, MARK12, CHANNELS12),
 (NAME13, AUTH13, MARK13, CHANNELS13),
 (NAME14, AUTH14, MARK14, CHANNELS14),
 (NAME15, AUTH15, MARK15, CHANNELS15),
 (NAME16, AUTH16, MARK16, CHANNELS16),
 (NAME17, AUTH17, MARK17, CHANNELS17),
 (NAME18, AUTH18, MARK18, CHANNELS18),
 (NAME19, AUTH19, MARK19, CHANNELS19),
 (NAME20, AUTH20, MARK20, CHANNELS20),
 (NAME21, AUTH21, MARK21, CHANNELS21),
 (NAME22, AUTH22, MARK22, CHANNELS22),
 (NAME23, AUTH23, MARK23, CHANNELS23),
 (NAME24, AUTH24, MARK24, CHANNELS24),
 (NAME25, AUTH25, MARK25, CHANNELS25),
 (NAME26, AUTH26, MARK26, CHANNELS26),
 (NAME27, AUTH27, MARK27, CHANNELS27),
]
NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
# RESULT
NEW_REGION_NAME_DICT = {0 : 'POLAND',}
NEW_REGION_AUTH_SERVER_DICT = {0 : NEW_REGION0_AUTH_SERVER_DICT,}
NEW_REGION_DICT = {0 : 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
TESTADDR = { 'ip' : '210.123.10.153', 'tcp_port' : 50000, 'udp_port' : 50000, }

 

Proszę o szybką odpowiedź.

Z góry dziękuje

Edytowane przez Admax

Nie moc silnika, lecz Technika robi z ciebie zawodnika

 

sygnaturkaa.jpg

Odnośnik do komentarza
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający forum [Problem] Kamer mod   0 użytkowników
    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...