ApexLookUp - Apex英雄查询插件
-
@Shennoter 谢谢大佬,秒回啊芜湖
-
@Shennoter 我试试哦,我的服务器是win server 2012,steamID带中文是不显示的,晚上回去我装个微软雅黑试试
-
@SVIPNB 这个不是字体的问题,是api的问题,这个api纯英文,不支持中文字符
-
@Shennoter 好的,我知道了
-
还有一个问题,我觉得“查询成功”略显多余,或者说可以显示“apexid+查询成功”,查询失败的确是需要提示的
-
@SVIPNB 以后改一下吧
-
@Shennoter 好的,加油!
-
最新的1.1,apikey.yml这个文件不用了吗?
-
仅限橘子账户。Steam用户没法查询,或许是橘子不记录数据?
-
@SVIPNB 改成config.yml了
-
@FridayAnubis api只能查询橘子id
-
查询的时候会报错
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
我的目前解决方案是在环境变量里添加
JAVA_TOOL_OPTIONS="-Djava.awt.headless=true"
已经提交issue了,希望大佬可以解决一下
-
瓦鸡的背景图片比例好像不太对,看起来只有一米
-
@SVIPNB api给的瓦鸡图片和其他人尺寸不一样,我图方便就直接调整成同一个尺寸了
-
如果今天开始发现报错请更新版本,原因为api数据更新导致不适配
api这次更新加了很多新东西,比如历史比赛、新闻、商店信息,有空再给插件加上2022-04-20 23:27:27 W/RankLookUp: Exception in executing command `[mirai:source:[3148],[329199668]]/apexid xxxxxx` 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:329) 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:168) at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt:130) at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt) at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:125) at chat-command-0.5.1.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86) at chat-command-0.5.1.jar//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: com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "NOT_CALCULATED_YET" at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:228) at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:218) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) at com.google.gson.Gson.fromJson(Gson.java:932) at com.google.gson.Gson.fromJson(Gson.java:897) at com.google.gson.Gson.fromJson(Gson.java:846) at com.google.gson.Gson.fromJson(Gson.java:817) at ranklookup-1.1.0.mirai.jar//PlayerStatKt.playerStat(PlayerStat.kt:46) at ranklookup-1.1.0.mirai.jar//pers.shennoter.Player.apexPlayerInfo(RankLookUp.kt:46) ... 26 more Caused by: java.lang.NumberFormatException: For input string: "NOT_CALCULATED_YET" at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source) at java.base/jdk.internal.math.FloatingDecimal.parseDouble(Unknown Source) at java.base/java.lang.Double.parseDouble(Unknown Source) at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1200) at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:226) ... 48 more
-
大佬,我按照您的方法添加插件后输入指令都是无响应 只有一次后台显示查询成功,然而图片也没有发出(我后来在data里发现生成了图片) 其他插件是正常回应的,想问问有什么解决方法otz
-
查询/apexmap的时候,图片太大了,甚至有7M这么大,发的太慢了。是不是可以不用发原图,几百K的图片已经很清晰了。
-
@soymilkkkkkk 有报错吗
-
@Shennoter 我解决了!无法响应指令的问题,我重新安装重新授权操作了几遍就突然可以了,群内信息不回复是经过排除不是插件问题。现在已经可以正常使用了!抱歉打扰到大佬了!感谢回复
-
api新增的历史比赛和商店信息功能都是要花钱的,这两个就不加了。下次准备增加新闻,猎杀排行榜和服务器状态。