forked from metin2/client
1
0
Fork 0
client/bin/pack/root/serverinfo.py

60 lines
1.9 KiB
Python
Raw Normal View History

2024-03-31 10:35:04 +03:00
SERVER01_NAME = "Metin2 (homeserver)"
SERVER01_IP = "homeserver.internal.tiberiud.ro"
SERVER02_NAME = "Metin2 (localhost)"
SERVER02_IP = "localhost"
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 = "..."
STATE_DICT = {
2023-07-21 21:55:58 +03:00
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
SERVER01_CHANNEL_DICT = {
2024-03-31 10:35:04 +03:00
1: {"key": 11, "name": CH1_NAME, "ip": SERVER01_IP, "tcp_port": PORT_1, "udp_port": PORT_1, "state": STATE_NONE},
# 2: {"key": 12, "name": CH2_NAME, "ip": SERVER01_IP, "tcp_port": PORT_2, "udp_port": PORT_2, "state": STATE_NONE},
# 3: {"key": 13, "name": CH3_NAME, "ip": SERVER01_IP, "tcp_port": PORT_3, "udp_port": PORT_3, "state": STATE_NONE},
# 4: {"key": 14, "name": CH4_NAME, "ip": SERVER01_IP, "tcp_port": PORT_4, "udp_port": PORT_4, "state": STATE_NONE},
}
SERVER02_CHANNEL_DICT = {
1: {"key": 11, "name": CH1_NAME, "ip": SERVER02_IP, "tcp_port": PORT_1, "udp_port": PORT_1, "state": STATE_NONE},
# 2: {"key": 12, "name": CH2_NAME, "ip": SERVER02_IP, "tcp_port": PORT_2, "udp_port": PORT_2, "state": STATE_NONE},
# 3: {"key": 13, "name": CH3_NAME, "ip": SERVER02_IP, "tcp_port": PORT_3, "udp_port": PORT_3, "state": STATE_NONE},
# 4: {"key": 14, "name": CH4_NAME, "ip": SERVER02_IP, "tcp_port": PORT_4, "udp_port": PORT_4, "state": STATE_NONE},
}
2023-07-21 21:55:58 +03:00
REGION_NAME_DICT = {
0: "",
}
REGION_AUTH_SERVER_DICT = {
0: {
2024-03-31 10:35:04 +03:00
1: {"ip": SERVER01_IP, "port": PORT_AUTH},
2: {"ip": SERVER02_IP, "port": PORT_AUTH},
}
}
REGION_DICT = {
0: {
2024-03-31 10:35:04 +03:00
1: {"name": SERVER01_NAME, "channel": SERVER01_CHANNEL_DICT},
2: {"name": SERVER02_NAME, "channel": SERVER02_CHANNEL_DICT},
2023-07-21 21:55:58 +03:00
},
}
MARKADDR_DICT = {
2024-03-31 10:35:04 +03:00
10: {"ip": SERVER01_IP, "tcp_port": PORT_MARK, "mark": "10.tga", "symbol_path": "10"},
20: {"ip": SERVER02_IP, "tcp_port": PORT_MARK, "mark": "20.tga", "symbol_path": "20"},
2023-07-21 21:55:58 +03:00
}