Fix 40250 classic login and world loading
This commit is contained in:
@@ -7,10 +7,11 @@
|
||||
#
|
||||
# 文件格式(TSV,# 注释):
|
||||
# name auth_host auth_port game_host game_port channels(csv) [port_step] [mark_port]
|
||||
# 测试服 192.168.21.203 11000 192.168.21.203 11011 1,2,3 1 0
|
||||
# 测试服 192.168.21.203 11000 192.168.21.203 13002 1,2,3,4 10 0
|
||||
#
|
||||
# 频道 N 的 game 端口 = game_port + (N-1)*port_step。
|
||||
# 联调服实测端口是 11011/11012/11013(step=1);不同服可在文件第 7 列覆盖。
|
||||
# 这套 40250 配置的 Game2 端口是 13002/13012/13022/13032(step=10)。
|
||||
# 13000/13010/... 是 first 入口;admin 测试角色在 Game2 地图,直接连 Game2 才能完成进入游戏。
|
||||
# 第 8 列 mark_port = 公会会徽服端口(0 = 不下载会徽)。
|
||||
class_name ServerInfo
|
||||
extends RefCounted
|
||||
@@ -20,12 +21,12 @@ const DEFAULT_PORT_STEP := 1
|
||||
var _servers: Array = []
|
||||
|
||||
func _init() -> void:
|
||||
# 内置默认:当前联调服(CServerStateChecker 实测频道口 11011/12/13)
|
||||
# 内置默认:40250 服务器(认证 11000,channel1/Game2 端口 13002)
|
||||
_servers = [{
|
||||
"name": "测试服",
|
||||
"auth_host": "192.168.21.203", "auth_port": 11000,
|
||||
"game_host": "192.168.21.203", "game_port": 11011,
|
||||
"channels": [1, 2, 3], "port_step": 1, "mark_port": 0,
|
||||
"game_host": "192.168.21.203", "game_port": 13002,
|
||||
"channels": [1, 2, 3, 4], "port_step": 10, "mark_port": 0,
|
||||
}]
|
||||
|
||||
func load_file(path: String) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user