已解决 战舰世界海军食堂[水表]插件
-
此回复已被删除! -
此回复已被删除! -
此回复已被删除! -
2022-07-18 22:58:07 E/Wows: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException
java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException
at org.orisland.Plugin.onEnable(Plugin.java:32)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:208)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
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 org.itxtech.mcl.Utility.bootMirai(Utility.java:83)
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 org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:106)
at org.itxtech.mcl.Loader.lambda$start$3(Loader.java:176)
at org.itxtech.mcl.Loader.tryCatching(Loader.java:145)
at org.itxtech.mcl.Loader.start(Loader.java:176)
at org.itxtech.mcl.Loader.main(Loader.java:68)
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonProcessingException
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass$mirai_console(JvmPluginClassLoader.kt:110)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass(JvmPluginClassLoader.kt:51)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 42 more
v 2.8.0 -
@staticcode403 mirai版本,插件版本?
异常来源问题目测为打包问题,也许你使用了旧版的mirai尝试安装了mirai2结尾的插件。
旧版mirai指的是小于2.11的版本。 -
您好 我这边在配置好appid之后重启mcl后,wws水表插件启动时报错。输出如下:
03:28:00 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec418 03:28:00 [INFO] https://github.com/iTXTech/mirai-console-loader 03:28:00 [INFO] This program is licensed under GNU AGPL v3 03:28:02 [INFO] Mirai Console Loader Announcement: Mirai Console Loader 公告栏 如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本) `- 如 Unsupported image type for ExternalResource * ` considering use gif/png/bmp/jpg format. `- Tracker: https://github.com/mamoe/mirai/issues/new/choose 常用资源整合 `- https://mirai.mamoe.net/topic/653 MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。 03:28:02 [INFO] Verifying "net.mamoe:mirai-console" v2.12.1 03:28:02 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.12.1 03:28:02 [INFO] Verifying "net.mamoe:mirai-core-all" v2.12.1 03:28:02 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2 2022-09-04 03:28:04 I/main: Starting mirai-console... 2022-09-04 03:28:04 I/main: Backend: version 2.12.1, built on 2022-07-31 17:49:27 2022-09-04 03:28:04 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies 2022-09-04 03:28:04 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-09-04 03:28:05 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-09-04 03:28:05 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-09-04 03:28:05 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-09-04 03:28:05 I/plugin: Successfully loaded plugin ApexLookUp v1.6.0 2022-09-04 03:28:05 I/plugin: Successfully loaded plugin Chat Command v0.5.0 2022-09-04 03:28:05 I/plugin: Successfully loaded plugin mirai-slf4j-bridge v1.0.0 2022-09-04 03:28:05 I/plugin: Successfully loaded plugin MCL Addon v2.0.2 2022-09-04 03:28:05 I/plugin: Successfully loaded plugin Wows v0.20 2022-09-04 03:28:05 I/main: Prepared built-in commands: autoLogin, help, login,logout, permission, status, stop 2022-09-04 03:28:05 I/ApexLookUp: Apex查询插件已启动 2022-09-04 03:28:06 I/ApexLookUp: 众神之父赐予我视野! 2022-09-04 03:28:06 I/ApexLookUp: 缓存删除成功 2022-09-04 03:28:06 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418 2022-09-04 03:28:06 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用 2022-09-04 03:28:06 I/org.orisland.Plugin: Wows Plugin Loaded! 2022-09-04 03:28:06 I/org.orisland.wows.DataInit: 用户数据文件夹已存在! 2022-09-04 03:28:06 I/org.orisland.wows.DataInit: 菜谱已存在! 2022-09-04 03:17:43 E/Wows: java.util.NoSuchElementException: retry java.util.NoSuchElementException: retry at plugin-0.20.mirai2.jar[shared]//net.mamoe.yamlkt.YamlMap.getOrFail(YamlElement.kt:292) at plugin-0.20.mirai2.jar[shared]//net.mamoe.yamlkt.YamlMap.getString(YamlElement.kt:305) at plugin-0.20.mirai2.jar//Tool.YmlTool.ReadYamlToString(YmlTool.java:16) at plugin-0.20.mirai2.jar//org.orisland.wows.DataInit.initRetry(DataInit.java:271) at plugin-0.20.mirai2.jar//org.orisland.wows.DataInit.init(DataInit.java:42) at plugin-0.20.mirai2.jar//org.orisland.Plugin.onEnable(Plugin.java:32) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:131) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:278) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:178) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:235) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52) 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 org.itxtech.mcl.Utility.bootJars(Utility.java:89) at org.itxtech.mcl.Utility.bootJars(Utility.java:79) at org.itxtech.mcl.Utility.bootMirai(Utility.java:101) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189) at org.itxtech.mcl.Loader.tryCatching(Loader.java:146) at org.itxtech.mcl.Loader.start(Loader.java:189) at org.itxtech.mcl.Loader.main(Loader.java:79) 2022-09-04 03:28:06 I/main: 4 plugin(s) enabled. 2022-09-04 03:28:06 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭. 2022-09-04 03:28:06 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by window popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disable it.
-
@Ameth0yst
请检查配置文件,或将整个配置文件贴出。 -
@Orisland 我这边初始化之后默认的配置文件是一个空文本
-
@Ameth0yst 我打包似乎出问题了。
请手动复制下面的文本后粘贴进yml文件进行应急处理。
请手动修改appid以及admin!appid: "appid" updateShipExpected: true apiLanguage: "en" useLocalShipInfo: true saveMode: "file" db: url: "" username: "" password: "" refreshData: true refreshTime: "00:00" useBind: true maxPlayerData: 30 retry: 10 updateShipInfoAuto: false admin: "your qq number"
-
@Orisland 能正常启动了,非常感谢!
-
@Orisland 您好,我这边试着绑定的时候返回
绑定出错! Cannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is nullCannot invoke "com.fasterxml.jackson.databind.JsonNode.get(String)" because "org.orisland.wows.ApiConfig.Bind" is null
检查了一下启动的时候的日志,里面显示找不到 D:\mirai\data\org.orisland.plugin\Bind.json
2022-09-06 14:19:20 W/stderr: cn.hutool.core.io.IORuntimeException: File not exist: D:\mirai\data\org.orisland.plugin\Bind.json
尝试了创建一个空的 Bind.json 文件,但是还是会在绑定时报错。
-
@Ameth0yst 怎么会少那么多文件………………我先重新打包检查一下吧。
-
@Ameth0yst 尝试创建空json文件时还需要在里面写个
{}
我重新打包了一份jar,你需要手动前往data
和config
文件删除org.orisland.plugin
文件夹,并删除原jar文件后放入最新的版本。
请注意,如国你在2022年9月7日21:24前下载了该版本,那么您需要重新删掉0.2.4版本重新前往github下载0.2.4版本,0.2.4版本在21:24时修正了一个致命错误。
在这里。 -
-
v 0.2.4 插件名称更正为WowsChef,同时,插件的数据目录从org.orisland.plugin更正为top.orisland.wows,请注意同时转移config和data文件夹中的数据以免造成数据丢失问题。
直接重命名文件夹即可。v0.2.4
修正了config.yml文件丢失的问题,现在可以正常的初始化了。
修复了浩舰的数据解析问题,现在可以正常的载入浩舰语言数据了。
从下版本开始,该插件将不在对mirai旧版本核心进行支持,即不再给出mirai1.jar的插件。
2022年9月7日20:41:09 -
-
@Gaein_nidb nanoda!!!
-
@Orisland 为啥发w help没反应呢
-
@xuefeng 注意权限分配,由于使用了权限插件,您需要对不同的指令进行授权。
您可以直接在控制台输入w help来检测插件是否安装成功,排除授权问题。 -
2022-09-16 23:54:23 W/console: 参数不匹配, 你是否想执行:
/wws help (需要由 CommandSenderOnMessage 执行)
已通过/权限 add * top.orisland.wows:command.wws-bind(省略3个)
授权 -
@Orisland 解决了原因是聊天指令输入的是w help正确的是/wws help
-
@xuefeng 错误的,w是
缩写
,你可以使用w代替wws
,同理使用wb代替wws-bind
,无法反应的原因也许是因为你的指令插件并没有去除斜杠,使用的时候需要/w help
来输入指令。