2023-07-21 21:55:58 +03:00
|
|
|
SERVER_NAME = "Metin2"
|
2023-12-09 20:46:45 +02:00
|
|
|
SERVER_IP = "127.0.0.1"
|
2023-07-21 21:55:58 +03:00
|
|
|
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 = {
|
2023-12-09 20:46:45 +02:00
|
|
|
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
|
|
|
|
2022-11-20 23:11:54 +02:00
|
|
|
REGION_NAME_DICT = {
|
2023-12-09 20:46:45 +02:00
|
|
|
0: "",
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
REGION_AUTH_SERVER_DICT = {
|
2023-12-09 20:46:45 +02:00
|
|
|
0: {
|
|
|
|
1: {"ip": SERVER_IP, "port": PORT_AUTH},
|
|
|
|
}
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
REGION_DICT = {
|
2023-12-09 20:46:45 +02:00
|
|
|
0: {
|
|
|
|
1: {"name": SERVER_NAME, "channel": SERVER01_CHANNEL_DICT},
|
2023-07-21 21:55:58 +03:00
|
|
|
},
|
2022-11-20 23:11:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MARKADDR_DICT = {
|
2023-12-09 20:46:45 +02:00
|
|
|
10: {"ip": SERVER_IP, "tcp_port": PORT_MARK, "mark": "10.tga", "symbol_path": "10"},
|
2023-07-21 21:55:58 +03:00
|
|
|
}
|