uchiaitachisan21 0 Posted November 30, 2016 (edited) Boa noite comunidade, Venho colocar uma questão que me está a dar conta da cabeça. Nas files maxmi 4.1 o IP é introduzido em ficheiros .cfg que se encontao na pasta PACK (serverip & serverismi) Eu queria saber se seria possivel e como fazer para retirar esses dois ficheiros e coloca-los a rodar pelo serverinfo serverinfo: Citar import os import app import localeInfo import debugInfo CHINA_PORT = 50000 STATE_NONE = "|cFFFF0000|hOFF" SERVER_NAME = open("pack/serverismi.cfg").read() SERVER_IP = open("pack/serverip.cfg").read() CH1_PORT = 13010 CH2_PORT = 16010 CH3_PORT = 19010 CH4_PORT = 21010 AUTH_PORT = 11002 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 (localeInfo.IsEUROPE() and app.GetLocalePath() == "locale/tr"): STATE_DICT = { 0 : "|cFFFF0000|hOFF", 1 : "|cff00ff00|hONLINE", 2 : "|cff00ff00|hYOÐUN", 3 : "|cff00ff00|hDOLU" } SERVER01_CHANNEL_DICT = { 1:{"key":11,"name":"|cFF00FFFF|hCH1","ip": SERVER_IP,"tcp_port": CH1_PORT,"udp_port": CH1_PORT,"state":STATE_NONE,}, 2:{"key":12,"name":"|cFF00FFFF|hCH2","ip": SERVER_IP,"tcp_port": CH2_PORT,"udp_port": CH2_PORT,"state":STATE_NONE,}, 3:{"key":13,"name":"|cFF00FFFF|hCH3","ip": SERVER_IP,"tcp_port": CH3_PORT,"udp_port": CH3_PORT,"state":STATE_NONE,}, 4:{"key":14,"name":"|cFF00FFFF|hCH4","ip": SERVER_IP,"tcp_port": CH4_PORT,"udp_port": CH4_PORT,"state":STATE_NONE,}, } REGION_NAME_DICT = { 0 : "Turkey", } REGION_AUTH_SERVER_DICT = { 0 : { 1 : { "ip": SERVER_IP,"port":AUTH_PORT, }, } } REGION_DICT = { 0 : { 1 : { "name" : SERVER_NAME,"channel" : SERVER01_CHANNEL_DICT, }, }, } MARKADDR_DICT = { 10 : { "ip" : SERVER_IP,"tcp_port" : CH1_PORT, "mark" : "10.tga", "symbol_path" : "10", }, } TESTADDR = { "ip" : SERVER_IP,"tcp_port" : CHINA_PORT, "udp_port" : CHINA_PORT, } o serverip e serverismi so tem o IP e nome do server ja trokei o open... pelo ip e da erro nem sequer liga o cliente Se alguem me poder ajudar agradecia Obrigado MNogueira Edited November 30, 2016 by uchiaitachisan21 (see edit history) Share this post Link to post Share on other sites
0 VMP. 202 Posted December 1, 2016 (edited) Procura nesses ficheiros (uiGameOption.py, uiMessenger.py, etc, etc) pela palavra serverip. Algum dos ficheiros está a inclui-lo, remove a função que o está a fazer. Cumprimentos. Edited December 1, 2016 by Moisés. (see edit history) 1 uchiaitachisan21 reacted to this Share this post Link to post Share on other sites
0 nagatto 2,130 Posted November 30, 2016 Tópico movido De: Metin2 > Gerenciamento de Servidores e Clientes > Metin2 - PedidosPara: Metin2 > Gerenciamento de Servidores e Clientes > Metin2 - Dúvidas Isto é uma mensagem automática Share this post Link to post Share on other sites
0 VMP. 202 Posted November 30, 2016 (edited) 21 minutos atrás, uchiaitachisan21 disse: Boa noite comunidade, Venho colocar uma questão que me está a dar conta da cabeça. Nas files maxmi 4.1 o IP é introduzido em ficheiros .cfg que se encontao na pasta PACK (serverip & serverismi) Eu queria saber se seria possivel e como fazer para retirar esses dois ficheiros e coloca-los a rodar pelo serverinfo Se alguem me poder ajudar agradecia Obrigado MNogueira Boas, Se possível, mete o conteúdo do serverip, serverismi e serverinfo no pastebin, disponibiliza-nos os respectivos links e dir-te-ei como proceder. Cumprimentos. Edited November 30, 2016 by Moisés. (see edit history) 1 uchiaitachisan21 reacted to this Share this post Link to post Share on other sites
0 uchiaitachisan21 0 Posted November 30, 2016 editado Share this post Link to post Share on other sites
0 VMP. 202 Posted November 30, 2016 12 minutos atrás, uchiaitachisan21 disse: editado Mostra-me como está estruturado o serverip e ismi, ou tem simplesmente uma linha com ip e nome? Share this post Link to post Share on other sites
0 uchiaitachisan21 0 Posted November 30, 2016 Exatamente so 1 linha n tem mais nd Share this post Link to post Share on other sites
0 uchiaitachisan21 0 Posted November 30, 2016 7 minutos atrás, Moisés. disse: Mostra-me como está estruturado o serverip e ismi, ou tem simplesmente uma linha com ip e nome? Nao tem mais nada Serverip apenas tem o ip Serverismi apenas nome do servidor Share this post Link to post Share on other sites
0 VMP. 202 Posted November 30, 2016 Agora, uchiaitachisan21 disse: Nao tem mais nada Serverip apenas tem o ip Serverismi apenas nome do servidor Mostra-me os erros que surgem no syserr, ou semelhante, ao alterar: Citar SERVER_NAME = open("pack/serverismi.cfg").read()SERVER_IP = open("pack/serverip.cfg").read() Para Citar SERVER_NAME = NomeDoServidorSERVER_IP = IP(O ip em questão) Share this post Link to post Share on other sites
0 uchiaitachisan21 0 Posted November 30, 2016 (edited) 8 minutos atrás, Moisés. disse: Mostra-me os erros que surgem no syserr, ou semelhante, ao alterar: Para Cliente de tela preta com o seguinte syserr Citar 1130 15:48:01153 :: Traceback (most recent call last): 1130 15:48:01154 :: File "introLogo.py", line 60, in OnUpdate 1130 15:48:01154 :: File "networkModule.py", line 177, in SetLoginPhase 1130 15:48:01154 :: File "system.py", line 130, in __pack_import 1130 15:48:01154 :: File "system.py", line 110, in _process_result 1130 15:48:01155 :: File "introLogin.py", line 9, in ? 1130 15:48:01155 :: File "system.py", line 130, in __pack_import 1130 15:48:01155 :: File " 1130 15:48:01155 :: <string> 1130 15:48:01155 :: ", line 1130 15:48:01155 :: 9 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: SERVER_IP = XXXXXXXXXX 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01155 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: 1130 15:48:01156 :: ^ 1130 15:48:01156 :: SyntaxError 1130 15:48:01156 :: : 1130 15:48:01156 :: invalid syntax 1130 15:48:01156 :: Edited November 30, 2016 by uchiaitachisan21 (see edit history) Share this post Link to post Share on other sites
0 VMP. 202 Posted November 30, 2016 (edited) 6 minutos atrás, uchiaitachisan21 disse: Cliente de tela preta com o seguinte syserr Coloca o IP e nome entre aspas "IP_AQUI" Cumprimentos. Edited November 30, 2016 by Moisés. (see edit history) Share this post Link to post Share on other sites
0 uchiaitachisan21 0 Posted December 1, 2016 1 minuto atrás, Moisés. disse: Coloca o IP e nome entre aspas "IP_AQUI" Cumprimentos. Novo erro Citar 1130 16:00:12489 :: networkModule.py(line:208) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) ? system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:15) ? system.py(line:130) __pack_import system.py(line:110) _process_result uiMessenger.py(line:10) ? system.py(line:130) __pack_import system.py(line:110) _process_result uiGameOption.py(line:18) ? networkModule.SetSelectCharacterPhase - exceptions.IOError:[Errno 2] No such file or directory: 'pack/serverip.cfg' 1130 16:00:12490 :: ============================================================================================================ 1130 16:00:12490 :: Abort!!!! Share this post Link to post Share on other sites
Boa noite comunidade,
Venho colocar uma questão que me está a dar conta da cabeça.
Nas files maxmi 4.1 o IP é introduzido em ficheiros .cfg que se encontao na pasta PACK (serverip & serverismi)
Eu queria saber se seria possivel e como fazer para retirar esses dois ficheiros e coloca-los a rodar pelo serverinfo
serverinfo:
o serverip e serverismi so tem o IP e nome do server
ja trokei o open... pelo ip e da erro nem sequer liga o cliente
Se alguem me poder ajudar agradecia
Obrigado
MNogueira
Edited by uchiaitachisan21 (see edit history)Share this post
Link to post
Share on other sites