MarioCrane / LeagueLobby

英雄联盟自定义房间创建工具,包括5V5训练营,(血月杀等轮换模式已被官方关闭)
MIT License
349 stars 52 forks source link

11月18日更新之后,国服无法使用了 #8

Closed zzpro closed 2 years ago

zzpro commented 2 years ago

实测美测服PBE还是可以用 但是国服无法使用,提示无法获取到召唤师信息 请问是什么问题呢 tes1

MarioCrane commented 2 years ago

这次更新把lockfile去掉了,现在客户端不会生成lockfile导致获取不到端口和token,需要获取LeagueClientUx.exe的运行参数取出端口和token

------------------ 原始邮件 ------------------ 发件人: Zhengzheng @.> 发送时间: 2021年11月18日 14:47 收件人: MarioCrane/LeagueLobby @.> 抄送: Subscribed @.***> 主题: 回复:[MarioCrane/LeagueLobby] 11月18日更新之后,国服无法使用了 (Issue #8)

实测美测服PBE还是可以用 但是国服无法使用,提示无法获取到召唤师信息 请问是什么问题呢

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zzpro commented 2 years ago

好的,获取LeagueClientUx.exe的运行参数的方法已经研究出来了吗

MarioCrane commented 2 years ago

用win api或者wmic都可以

------------------ 原始邮件 ------------------ 发件人: Zhengzheng @.> 发送时间: 2021年11月18日 14:54 收件人: MarioCrane/LeagueLobby @.> 抄送: Mario @.>, Comment @.> 主题: 回复:[MarioCrane/LeagueLobby] 11月18日更新之后,国服无法使用了 (Issue #8)

好的,获取LeagueClientUx.exe的运行参数的方法已经研究出来了吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zzpro commented 2 years ago

好的,麻烦大佬也更新一下程序,因为有不少玩家都有在国服开5V5训练模式的需求。

MarioCrane commented 2 years ago

好的,晚上回去我更新下

------------------ 原始邮件 ------------------ 发件人: Zhengzheng @.> 发送时间: 2021年11月18日 15:55 收件人: MarioCrane/LeagueLobby @.> 抄送: Mario @.>, Comment @.> 主题: 回复:[MarioCrane/LeagueLobby] 11月18日更新之后,国服无法使用了 (Issue #8)

好的,麻烦大佬也更新一下程序,因为有不少玩家都有在国服开5V5训练模式的需求。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

MarioCrane commented 2 years ago

更新好了,链接:https://pan.baidu.com/s/1XM5Pmlyoq0EANYJYA7YzBg 提取码:u726

获取port和token的代码:


auto midStr = [=] (const QString &string, const QString &left, const QString &right) {
    auto start = string.indexOf(left, 0);
    auto end = string.indexOf(right, start);
    auto leftSize = left.size();
    return string.mid(start + leftSize, end - start - leftSize);
 };

QProcess process;
process.start("wmic process where caption='LeagueClientUx.exe' get commandline");
process.waitForFinished(-1);
QString result = QString::fromLocal8Bit(process.readAllStandardOutput());

token = midStr(result, "--remoting-auth-token=", "\"");
port = midStr(result, "--app-port=", "\"");