André. 185 Posted July 21, 2014 Boas, alguem me poderia ajudar a configurar isto? import os import app import locale import debugInfo CHINA_PORT = 50000 CH1P = 13001 CH2P = 13002 CH3P = 13003 CH4P = 13004 AUTHP = 11002 IP = open("serverip.cfg", "r").readline() SERVERNAME = open("servername.cfg", "r").readline() if locale.IsEUROPE(): STATE_NONE = "..." STATE_DICT = { 0 : "Offline", 1 : "NORM", 2 : "BUSY", 3 : "FULL" } Server1 = { 1:{"key":11,"name":"CH1","ip":IP,"tcp_port":CH1P,"udp_port":CH1P,"state":STATE_NONE,}, } REGION_NAME_DICT = { 0 : "GERMANY", } REGION_AUTH_SERVER_DICT = { 0 : { 1 : { "ip":IP, "port":AUTHP, }, } } REGION_DICT = { 0 : { 1 : { "name" :SERVERNAME, "channel" : Server1, }, }, } MARKADDR_DICT = { 10 : { "ip" : IP, "tcp_port" : 13001, "mark" : "10.tga", "symbol_path" : "10", }, } TESTADDR = { "ip" : IP, "tcp_port" : 15000, "udp_port" : 15000, } Share this post Link to post Share on other sites
0 StrikePT 217 Posted July 21, 2014 Mano tmb nao percebo muito disso mas olha onde diz "ip:IP colocas assim "ip: Teu ip acho que é so isso Share this post Link to post Share on other sites
0 StrikePT 217 Posted July 21, 2014 Boas, alguem me poderia ajudar a configurar isto? import os import app import locale import debugInfo CHINA_PORT = 50000 CH1P = 13001 CH2P = 13002 CH3P = 13003 CH4P = 13004 AUTHP = 11002 IP = open("serverip.cfg", "r").readline() SERVERNAME = open("servername.cfg", "r").readline() if locale.IsEUROPE(): STATE_NONE = "..." STATE_DICT = { 0 : "Offline", 1 : "NORM", 2 : "BUSY", 3 : "FULL" } Server1 = { 1:{"key":11,"name":"CH1","ip":IP,"tcp_port":CH1P,"udp_port":CH1P,"state":STATE_NONE,}, } REGION_NAME_DICT = { 0 : "GERMANY", } REGION_AUTH_SERVER_DICT = { 0 : { 1 : { "ip":IP, "port":AUTHP, }, } } REGION_DICT = { 0 : { 1 : { "name" :NOME DO SERVERE, "channel" : Server1, }, }, } MARKADDR_DICT = { 10 : { "ip" : IP, "tcp_port" : 13001, "mark" : "10.tga", "symbol_path" : "10", }, } TESTADDR = { "ip" : IP, "tcp_port" : 15000, "udp_port" : 15000, } Passei a red o que tens de mudar mas olha eu nao sei se é o ip acabado em 100 se for hamachi acho que é .100 mas se for caseiro ou dedicado é o ip mesmo Share this post Link to post Share on other sites
0 André. 185 Posted July 21, 2014 mas pelo que já vi está cheio de erros .. Share this post Link to post Share on other sites
0 André. 185 Posted July 21, 2014 ao pé dos ips falta "," e isso Share this post Link to post Share on other sites
0 Karbust 1,143 Posted July 21, 2014 ai não tens de mudar nada, tens de criar um ficheiro na pasta principal chamado serverip.cfg e lá colocas o IP Share this post Link to post Share on other sites
Boas, alguem me poderia ajudar a configurar isto?
Share this post
Link to post
Share on other sites