2023-07-21 21:55:58 +03:00
|
|
|
SERVER_NAME = "Metin2"
|
|
|
|
SERVER_NAME_TEST = "Test"
|
|
|
|
SERVER_IP = "192.168.0.150"
|
|
|
|
SERVER_IP_TEST = "172.26.105.128"
|
|
|
|
CH1_NAME = "CH1"
|
|
|
|
CH2_NAME = "CH2"
|
|
|
|
CH3_NAME = "CH3"
|
|
|
|
CH4_NAME = "CH4"
|
|
|
|
PORT_1 = 13000
|
|
|
|
PORT_2 = 13010
|
|
|
|
PORT_3 = 13020
|
|
|
|
PORT_4 = 13030
|
|
|
|
PORT_AUTH = 11000
|
|
|
|
PORT_MARK = 13000
|
|
|
|
|
|
|
|
STATE_NONE = "..."
|
2022-11-20 23:11:54 +02:00
|
|
|
|
|
|
|
STATE_DICT = {
|
2023-07-21 21:55:58 +03:00
|
|
|
0 : "....",
|
|
|
|
1 : "NORM",
|
|
|
|
2 : "BUSY",
|
|
|
|
3 : "FULL"
|
|
|
|
}
|
|
|
|
|
|
|
|
SERVER01_CHANNEL_DICT = {
|
|
|
|
1:{"key":11,"name":CH1_NAME,"ip":SERVER_IP,"tcp_port":PORT_1,"udp_port":PORT_1,"state":STATE_NONE,},
|
|
|
|
2:{"key":12,"name":CH2_NAME,"ip":SERVER_IP,"tcp_port":PORT_2,"udp_port":PORT_2,"state":STATE_NONE,},
|
|
|
|
3:{"key":13,"name":CH3_NAME,"ip":SERVER_IP,"tcp_port":PORT_3,"udp_port":PORT_3,"state":STATE_NONE,},
|
|
|
|
4:{"key":14,"name":CH4_NAME,"ip":SERVER_IP,"tcp_port":PORT_4,"udp_port":PORT_4,"state":STATE_NONE,},
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
2023-07-21 21:55:58 +03:00
|
|
|
SERVER02_CHANNEL_DICT = {
|
|
|
|
1:{"key":21,"name":CH1_NAME,"ip":SERVER_IP_TEST,"tcp_port":PORT_1,"udp_port":PORT_1,"state":STATE_NONE,},
|
|
|
|
2:{"key":22,"name":CH2_NAME,"ip":SERVER_IP_TEST,"tcp_port":PORT_2,"udp_port":PORT_2,"state":STATE_NONE,},
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
2023-07-21 21:55:58 +03:00
|
|
|
|
2022-11-20 23:11:54 +02:00
|
|
|
REGION_NAME_DICT = {
|
2023-07-21 21:55:58 +03:00
|
|
|
0 : "",
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
REGION_AUTH_SERVER_DICT = {
|
2023-07-21 21:55:58 +03:00
|
|
|
0 : {
|
|
|
|
1 : { "ip":SERVER_IP, "port":PORT_AUTH, },
|
|
|
|
2 : { "ip":SERVER_IP_TEST, "port":PORT_AUTH, },
|
|
|
|
|
|
|
|
}
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
REGION_DICT = {
|
2023-07-21 21:55:58 +03:00
|
|
|
0 : {
|
|
|
|
1 : { "name" :SERVER_NAME, "channel" : SERVER01_CHANNEL_DICT, },
|
|
|
|
2 : { "name" :SERVER_NAME_TEST, "channel" : SERVER02_CHANNEL_DICT, },
|
|
|
|
},
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MARKADDR_DICT = {
|
2023-07-21 21:55:58 +03:00
|
|
|
10 : { "ip" : SERVER_IP, "tcp_port" : PORT_MARK, "mark" : "10.tga", "symbol_path" : "10", },
|
|
|
|
20 : { "ip" : SERVER_IP_TEST, "tcp_port" : PORT_MARK, "mark" : "20.tga", "symbol_path" : "20", },
|
|
|
|
}
|