Blue引擎增加登录器列表获取自定义客户端。 新增登录器列表扩展 // json不允许这样注释,所以另起此文件进行说明,json建议使用vscode查看编辑 // 登录器配置dat中的更新列表链接,会解析到此远程配置服务器并连接,格式:IP:端口 或 域名:端口,兼容原格式 // 修改Config.json实时生效,并自动下发新的配置,Patch补丁字段不会实时生效,因为登录器启动才会用到此信息 { "DebugLog": false, // 调试日志,默认false不开启 "KeepAlive": true, // 保持登录器一直连接服务器,方便推送,默认开启(某些机房会踢掉无活动连接,其实就算断开,客户端也会自动尝试连接配置服务器) "PushUpdates": true, // 服务器配置变更自动推送给登录器 "ListenPort": 9200, // 服务器监听端口 "WriteBlockSize": 32768, // 下发块大小,默认32768,保持默认即可 "Password": "设置一个非空密码", // 通讯密码,登录器配置要配置与此相同的密码才能获取到配置 "Launcher": [ // 定义各个版本的登录器配置 { "Version": 1, // 登录器请求配置的版本,登录器配置器生成与此对应的版本,可以获取到下列配置信息 "Desc": "某登录器版本1用...", // 描述,识别用 "PayUrl": "https://pay.xxxxx.com", // 支付链接 "MainUrl": "https://www.xxxxx.com", // 主页链接 "LinkUrl": "http://127.0.0.1/link.htm", // 登录器上的快捷Link页面 "HelpUrl": "https://help.xxxxx.com", // 客服链接 "ForumUrl": "https://bbs.xxxxx.com", // 论坛链接 "NewIDUrl": "https://reg.xxxxx.com", // 注册新账号链接 "ChgPwdUrl": "https://password.xxxxx.com", // 修改密码链接 "ServerList": [ // 服务器列表 { "ItemFilterID": 1, // 物品过滤ID,1时是lsDefaultItemFilter.txt,>1时是lsDefaultItemFilterX.txt "VersionStr": "合击版本", // 版本分类 "FontSize": 10, // 字体大小,默认10,多个条目最好保持一致(可选) "FontName": "宋体", // 使用的字体,默认宋体,多个条目最好保持一致(可选) "FontColor": "clLime", // 文字颜色,默认#004BBBF1,格式:clXXXX或者#蓝绿红(可选) "ImageIndex": 0, // 条目常态下的图标,会读取游戏目录下\Images\0.ico,-1不使用图标,支持0~99,即会读取\Images\0~99.ico,可利用自动更新(可选) "SelectedIndex": 0, // 条目选择时的图标,会读取游戏目录下\Images\0.ico,-1不使用图标(可选) "GameAreas": [ // 上述版本下的各个游戏区 { "Caption": "热血传奇1", // 游戏服务器名称 "FontSize": 10, // 同上(可选) "FontName": "宋体", // 同上(可选) "FontColor": "#0AFF7F", // 同上(可选) "ImageIndex": 0, // 同上(可选) "SelectedIndex": 0, // 同上(可选) "Host": "127.0.0.1", // 登录网关地址,支持域名格式,比如:www.website.com "Port": 7000, // 登录网关端口 "Client": "bluem2_client.dat", // 开始游戏执行的客户端 "UIConfigFile": "cui.cfg", // 指定自定UI配置文件名 "PatchServerAddr": "127.0.0.1:8201" // 微端配置,支持域名格式,比如:www.website.com:8201 }, { // 另一个区的定义,同上 "Caption": "热血传奇1-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#0AFF7F", "ImageIndex": 0, "SelectedIndex": 0, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client.dat", "UIConfigFile": "cui.cfg", "PatchServerAddr": "127.0.0.1:8201" } ] }, { "ItemFilterID": 2, "VersionStr": "连击版本", "FontSize": 10, "FontName": "宋体", "FontColor": "#FFFF00", "ImageIndex": 1, "SelectedIndex": 1, "GameAreas": [ { "Caption": "热血传奇2", "FontSize": 10, "FontName": "宋体", "FontColor": "#7FFF7F", "ImageIndex": 1, "SelectedIndex": 1, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client2.dat", "UIConfigFile": "cui2.cfg", "PatchServerAddr": "127.0.0.1:8202" }, { "Caption": "热血传奇2-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#7FFF7F", "ImageIndex": 1, "SelectedIndex": 1, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client2.dat", "UIConfigFile": "cui2.cfg", "PatchServerAddr": "127.0.0.1:8202" } ] }, { "ItemFilterID": 3, "VersionStr": "复古版本", "FontSize": 10, "FontName": "宋体", "FontColor": "clSkyBlue", "ImageIndex": 2, "SelectedIndex": 2, "GameAreas": [ { "Caption": "热血传奇3", "FontSize": 10, "FontName": "宋体", "FontColor": "#FF00FF", "ImageIndex": 2, "SelectedIndex": 2, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client3.dat", "UIConfigFile": "cui3.cfg", "PatchServerAddr": "127.0.0.1:8203" }, { "Caption": "热血传奇3-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#FF00FF", "ImageIndex": 2, "SelectedIndex": 2, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client3.dat", "UIConfigFile": "cui3.cfg", "PatchServerAddr": "127.0.0.1:8203" } ] } ], "Patch": [ // 补丁配置 { "valid": false, // 生效true,不生效false "launcher": true, // 该条目是登录器本身 "relaunch": true, // 更新完是否自动重启登录器,是true,否false "file": "logintool.exe", // 更新文件名,launcher=true时忽略此参数 "hash": "6658C3316069B621C595BCF426D50F03", // MD5值 "link": "http://127.0.0.1/launcher/upgrade/BlueM2.exe" // 下载链接 }, { "valid": false, "file": "datalui.pkg", "hash": "1EAD642FEE0C6FD80FBC303D4E449645", "link": "http://127.0.0.1/launcher/upgrade/lui.pkg" }, { "valid": false, "file": "bluem2_client.dat", "hash": "34DA14BC2EB078500184F98D31A00D2A", "link": "http://127.0.0.1/launcher/upgrade/bluem2_client.dat" }, { "valid": false, "file": "bluem2_client2.dat", "hash": "5C3007CCCC92663B606BEE6BDC960501", "link": "http://127.0.0.1/launcher/upgrade/bluem2_client2.dat" }, { "valid": false, "file": "bluem2_client3.dat", "hash": "832F8BDAAEB172E41F8B3A65BCFA627C", "link": "http://127.0.0.1/launcher/upgrade/bluem2_client3.dat" }, { "valid": false, "file": "speedtest_x64.msi", "hash": "B5AEE03A783665B9799E9C6A7B7D0D8C", "link": "https://install.speedtest.net/app/windows/latest/speedtestbyookla_x64.msi" // 支持https下载链接 }, { "valid": true, "file": ".\\images\\0.ico", "hash": "CC7305FEB222B604DFF882FBFC755417", "link": "http://127.0.0.1/launcher/upgrade/0.ico" }, { "valid": true, "file": ".\\images\\1.ico", "hash": "D3700F4244669024DD7A77520A6C4CA5", "link": "http://127.0.0.1/launcher/upgrade/1.ico" }, { "valid": true, "file": ".\\images\\2.ico", "hash": "ACE1AE57C4EAEFA6DBFCAB6B11F2DC75", "link": "http://127.0.0.1/launcher/upgrade/2.ico" } ] }, { // 另外一个登录器版本2,登录器配置器生成与此对应的版本,可以获取到此{}中的配置信息 "Version": 2, "Desc": "某登录器版本2用...", "PayUrl": "https://pay.xxxxx.com", "MainUrl": "https://www.xxxxx.com", "LinkUrl": "http://127.0.0.1/link.htm", "HelpUrl": "https://help.xxxxx.com", "ForumUrl": "https://bbs.xxxxx.com", "NewIDUrl": "https://reg.xxxxx.com", "ChgPwdUrl": "https://password.xxxxx.com", "ServerList": [ { "ItemFilterID": 1, "VersionStr": "合击版本", "FontSize": 10, "FontName": "宋体", "FontColor": "clLime", "ImageIndex": 0, "SelectedIndex": 0, "GameAreas": [ { "Caption": "热血传奇1", "FontSize": 10, "FontName": "宋体", "FontColor": "#0AFF7F", "ImageIndex": 0, "SelectedIndex": 0, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client.dat", "UIConfigFile": "cui.cfg", "PatchServerAddr": "127.0.0.1:8201" }, { "Caption": "热血传奇1-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#0AFF7F", "ImageIndex": 0, "SelectedIndex": 0, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client.dat", "UIConfigFile": "cui.cfg", "PatchServerAddr": "127.0.0.1:8201" } ] }, { "ItemFilterID": 2, "VersionStr": "连击版本", "FontSize": 10, "FontName": "宋体", "FontColor": "#FFFF00", "ImageIndex": 1, "SelectedIndex": 1, "GameAreas": [ { "Caption": "热血传奇2", "FontSize": 10, "FontName": "宋体", "FontColor": "#7FFF7F", "ImageIndex": 1, "SelectedIndex": 1, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client2.dat", "UIConfigFile": "cui2.cfg", "PatchServerAddr": "127.0.0.1:8202" }, { "Caption": "热血传奇2-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#7FFF7F", "ImageIndex": 1, "SelectedIndex": 1, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client2.dat", "UIConfigFile": "cui2.cfg", "PatchServerAddr": "127.0.0.1:8202" } ] }, { "ItemFilterID": 3, "VersionStr": "复古版本", "FontSize": 10, "FontName": "宋体", "FontColor": "clSkyBlue", "ImageIndex": 2, "SelectedIndex": 2, "GameAreas": [ { "Caption": "热血传奇3", "FontSize": 10, "FontName": "宋体", "FontColor": "#FF00FF", "ImageIndex": 2, "SelectedIndex": 2, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client3.dat", "UIConfigFile": "cui3.cfg", "PatchServerAddr": "127.0.0.1:8203" }, { "Caption": "热血传奇3-副本", "FontSize": 10, "FontName": "宋体", "FontColor": "#FF00FF", "ImageIndex": 2, "SelectedIndex": 2, "Host": "127.0.0.1", "Port": 7000, "Client": "bluem2_client3.dat", "UIConfigFile": "cui3.cfg", "PatchServerAddr": "127.0.0.1:8203" } ] } ], "Patch": [ { "valid": false, "launcher": true, "relaunch": true, "file": "logintool.exe", "hash": "6658C3316069B621C595BCF426D50F03", "link": "http://127.0.0.1/logintool/upgrade/BlueM2.exe" }, { "valid": false, "file": "datalui.pkg", "hash": "1EAD642FEE0C6FD80FBC303D4E449645", "link": "http://127.0.0.1/logintool/upgrade/lui.pkg" }, { "valid": false, "file": "bluem2_client.dat", "hash": "34DA14BC2EB078500184F98D31A00D2A", "link": "http://127.0.0.1/logintool/upgrade/bluem2_client.dat" }, { "valid": false, "file": "bluem2_client2.dat", "hash": "5C3007CCCC92663B606BEE6BDC960501", "link": "http://127.0.0.1/logintool/upgrade/bluem2_client2.dat" }, { "valid": false, "file": "bluem2_client3.dat", "hash": "832F8BDAAEB172E41F8B3A65BCFA627C", "link": "http://127.0.0.1/logintool/upgrade/bluem2_client3.dat" }, { "valid": false, "file": "speedtest_x64.msi", "hash": "B5AEE03A783665B9799E9C6A7B7D0D8C", "link": "https://install.speedtest.net/app/windows/latest/speedtestbyookla_x64.msi" }, { "valid": true, "file": ".\\images\\0.ico", "hash": "CC7305FEB222B604DFF882FBFC755417", "link": "http://127.0.0.1/logintool/upgrade/0.ico" }, { "valid": true, "file": ".\\images\\1.ico", "hash": "D3700F4244669024DD7A77520A6C4CA5", "link": "http://127.0.0.1/logintool/upgrade/1.ico" }, { "valid": true, "file": ".\\images\\2.ico", "hash": "ACE1AE57C4EAEFA6DBFCAB6B11F2DC75", "link": "http://127.0.0.1/logintool/upgrade/2.ico" } ] } ] } |