antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
André.

[Ajuda]A Configurar

Question

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

7 answers to this question

  • 0

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
antiblock
Elveron
  • 0

mas repete 2x IP

Share this post


Link to post
Share on other sites
  • 0

 

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

mas pelo que já vi está cheio de erros ..

Share this post


Link to post
Share on other sites
  • 0

o que? 

Share this post


Link to post
Share on other sites
  • 0

ao pé dos ips falta "," e isso

Share this post


Link to post
Share on other sites
  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this