ApexLookUp - Apex英雄查询插件
-
兰伯特和瓦鸡的图片拉伸有点奇怪,我是否可以修改mcl\data\pers.shennoter.RankLookUp\imgs\里对应的图片,来修改对应的英雄背景图片
-
/apexremove id 之后 还会播报
-
还有就是希望出一个指令用来查询本群关注列表
-
2022-05-27 18:48:09 V/Bot.1073242198: [寻光(671817482)] (´・ω・
)(363152495) -> /apexmap 2022-05-27 18:48:10 W/ApexLookUp: Exception in executing command
[mirai:source:[848],[-451599908]]/apexmap`
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invokeSuspend(CommandReflector.kt:305)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call$suspendImpl(CommandSignature.kt:88)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call(CommandSignature.kt)
at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:167)
at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt:131)
at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:126)
at net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86)
at net.mamoe.mirai.console.plugins.chat.command.PluginMain$onEnable$2$1.invokeSuspend(PluginMain.kt:69)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.ClassCastException: class net.mamoe.mirai.console.internal.data.CompositeListValueImpl$special$$inlined$observable$1 cannot be cast to class java.util.ArrayList (net.mamoe.mirai.console.internal.data.CompositeListValueImpl$special$$inlined$observable$1 is in unnamed module of loader 'app'; java.util.ArrayList is in module java.base of loader 'bootstrap')
at pers.shennoter.Config.getExtendApiKey(Config.kt:12)
at pers.shennoter.MapStatKt.mapStat(MapStat.kt:15)
at Map.apexMapInfo(Commands.kt:51)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 23 more大佬我查询地图会出现这个报错,请问怎么回事
-
@SVIPNB 可以
-
@haohengok 可以先在data/pers.shennoter.RankLookUp/data.json里查看。下次加上这功能吧。关于移除了还会播报的问题,你是刚启动mcl就移除的吗
p.s.多次移除和添加之间都不能太快,否则线程来不及重启就会有这种问题,出现这种问题之后重启mcl就能解决了
我这个逻辑确实写得有点问题,以后有机会重写了 -
此回复已被删除! -
@Shennoter 在 ApexLookUp - Apex英雄查询插件 中说:
@haohengok 可以先在data/pers.shennoter.RankLookUp/data.json里查看。下次加上这功能吧。关于移除了还会播报的问题,你是刚启动mcl就移除的吗
p.s.多次移除和添加之间都不能太快,否则线程来不及重启就会有这种问题,出现这种问题之后重启mcl就能解决了
我这个逻辑确实写得有点问题,以后有机会重写了不是 是昨天添加 今天移除
没用 -
@haohengok 看data/pers.shennoter.RankLookUp/data.json,这个是玩家订阅的文件,如果有你想删的id就手动删掉,然后重启mcl
-
@zzz422688251 这个bug马上修复
-
为啥输入
/apexmap他会回复/apexmap呢? -
另外它会提示“网络请求发起错误”
-
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:74)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invokeSuspend(CommandReflector.kt:305)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1.invoke(CommandReflector.kt)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call$suspendImpl(CommandSignature.kt:88)
at net.mamoe.mirai.console.command.descriptor.CommandSignatureFromKFunctionImpl.call(CommandSignature.kt)
at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:167)
at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt:131)
at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:126)
at net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86)
at net.mamoe.mirai.console.plugins.chat.command.PluginMain$onEnable$2$1.invokeSuspend(PluginMain.kt:69)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.ClassCastException: class net.mamoe.mirai.console.internal.data.CompositeListValueImpl$special$$inlined$observable$1 cannot be cast to class
java.util.ArrayList (net.mamoe.mirai.console.internal.data.CompositeListValueImpl$special$$inlined$observable$1 is in unnamed module of loader 'app'; java.util.
ArrayList is in module java.base of loader 'bootstrap')
at pers.shennoter.Config.getExtendApiKey(Config.kt:11)
at PlayerStatKt.playerStat(PlayerStat.kt:19)
at Player.apexPlayerInfo(Commands.kt:21)
... 26 more查询特定id错误 这个没用新英雄
-
提示网络请求发起错误,是我的设置问题吗?
-
@hadesmercy 更新v1.4.1了吗,这个版本修复这个bug了
-
@Shennoter 多次重启后可以有几率正常,但只要启动时[ERROR] Failed to fetch announcement for "net.mamoe:mirai-console" 就不会成功,是网络问题吗?
-
@hadesmercy 这是mcl的官方公告都没法加载,是网络问题
-
网络请求发起错误
-
@Shennoter 解决了 是开启了全局vpn的原因,另外请问您如果我想要着手开发插件,有什么入门的比较详细的教程吗?之前没有这方面的经验
-
@hadesmercy 我一开始也是什么都不会,都是靠啃开发文档的,也会学习一下其他人的代码。
如果你想用kotlin或者java开发的话,看完mirai-core和mirai-console这两部分,写点简单的练手,基本上就能学会了,如果用其他语言就可以看看mirai-api-http