Hallo hätte wer eine Serverinfo.py für die 1678 Clienten (Daroo) ohne
serverip.cfg & servername.cfg
serverip.cfg & servername.cfg
import os
import app
import locale
import debugInfo
CH1P = 13000
CH2P = 13001
CH3P = 13002
CH4P = 13003
AUTHP = 11000
IP = "Deine Server IP"
SERVERNAME = "Dein Server1 Name"
if locale.IsEUROPE():
STATE_NONE = " | Offline"
STATE_DICT = {
0 : "| Offline",
1 : "| Online",
2 : "| Busy",
3 : "| Full"
}
Server = {
1:{"key":11,"name":"Channel 1","ip":IP,"tcp_port":CH1P,"udp_port":CH1P,"state":STATE_NONE,},
2:{"key":11,"name":"Channel 2","ip":IP,"tcp_port":CH2P,"udp_port":CH2P,"state":STATE_NONE,},
3:{"key":11,"name":"Channel 3","ip":IP,"tcp_port":CH3P,"udp_port":CH3P,"state":STATE_NONE,},
4:{"key":11,"name":"Channel 4","ip":IP,"tcp_port":CH4P,"udp_port":CH4P,"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" : Server, },
},
}
MARKADDR_DICT = {
10 : { "ip" : IP, "tcp_port" : 13000, "mark" : "10.tga", "symbol_path" : "10", },
}
TESTADDR = { "ip" : IP, "tcp_port" : 15000, "udp_port" : 15000, }