MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Petpet - 生成各种奇怪的图片

    插件发布
    73
    320
    74982
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dituon
      Dituon @q981612327 last edited by

      @q981612327 常见问题

      Q 1 Reply Last reply Reply Quote 0
      • Q
        q981612327 @Dituon last edited by

        @Dituon 大佬这个我看到了,不知道加到哪里。。。

        Dituon 1 Reply Last reply Reply Quote 0
        • Dituon
          Dituon @q981612327 last edited by Dituon

          @q981612327 jvm参数

          java -Xmx1G -Dfile.encoding=utf-8 -jar mcl.jar

          Q 1 Reply Last reply Reply Quote 0
          • Q
            q981612327 @Dituon last edited by

            @Dituon 多谢大佬,解决了

            1 Reply Last reply Reply Quote 0
            • 紅
              紅涙にしずむ供人の憂い @Dituon last edited by

              @Dituon 好捏,等更新,大佬有群吗

              Dituon 1 Reply Last reply Reply Quote 0
              • Dituon
                Dituon @紅涙にしずむ供人の憂い last edited by

                @紅涙にしずむ供人の憂い https://github.com/Dituon/petpet#后话

                1 Reply Last reply Reply Quote 0
                • Dituon
                  Dituon @Angrybird1997 last edited by

                  @Angrybird1997 使用3.4

                  Angrybird1997 1 Reply Last reply Reply Quote 0
                  • Angrybird1997
                    Angrybird1997 @Dituon last edited by

                    @Dituon 已经可以完美使用了捏,谢谢大大!!!

                    1 Reply Last reply Reply Quote 0
                    • P
                      PandaLink last edited by

                      可以让戳机器人返回的图片是戳的人头像吗

                      Dituon 1 Reply Last reply Reply Quote 0
                      • Dituon
                        Dituon @PandaLink last edited by

                        @PandaLink 请提交issue,后续版本可能会新增此配置项

                        1 Reply Last reply Reply Quote 0
                        • Q
                          qingfengxiu last edited by

                          2022-07-07 19:34:49 W/PetPet: Linked class org.w3c.dom.Node in Plum-1.0-SNAPSHOT.mirai.jar but plugin not depend on it.
                          2022-07-07 19:34:49 W/PetPet: Class loading logic may change in feature.
                          2022-07-07 19:34:49 W/Bot.1781649904: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 1781649904.EventDispatcher'
                          java.lang.LinkageError: loader constraint violation: loader 'bootstrap' wants to load interface org.w3c.dom.Node. A different interface with the same name was previously loaded by 'Plum-1.0-SNAPSHOT.mirai.jar' @4c2af006. (org.w3c.dom.Node is in unnamed module of loader 'Plum-1.0-SNAPSHOT.mirai.jar' @4c2af006, parent loader 'global-shared' @25b52284)
                                  at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getNativeTree(Unknown Source)
                                  at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getAsTree(Unknown Source)
                                  at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57)
                                  at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26)
                                  at petpet-3.4.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:31)
                                  at petpet-3.4.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:150)
                                  at petpet-3.4.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:128)
                                  at petpet-3.4.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:154)
                                  at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631)
                                  at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631)
                                  at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
                                  at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
                                  at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
                                  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                  at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                          

                          这个报错是什么情况。。。

                          Dituon 2 Replies Last reply Reply Quote 0
                          • Dituon
                            Dituon @qingfengxiu last edited by

                            @qingfengxiu

                            Linked class org.w3c.dom.Node in Plum-1.0-SNAPSHOT.mirai.jar but plugin not depend on it.

                            检查Plum-1.0-SNAPSHOT.mirai.jar

                            Q 1 Reply Last reply Reply Quote 0
                            • Q
                              qingfengxiu @Dituon last edited by

                              @Dituon 是跟这个插件冲突嘛。。。

                              Dituon 1 Reply Last reply Reply Quote 0
                              • Dituon
                                Dituon @qingfengxiu last edited by

                                @qingfengxiu 启用headless重试

                                Q tsudzuki 2 Replies Last reply Reply Quote 0
                                • Q
                                  qingfengxiu @Dituon last edited by

                                  @Dituon 抱歉..看不太懂,可以用比较小白的话说么

                                  Dituon 1 Reply Last reply Reply Quote 0
                                  • Dituon
                                    Dituon @qingfengxiu last edited by Dituon

                                    @qingfengxiu

                                    配置文件中有headless配置项,默认为false更改为true

                                    1. 打开Mirai/config/petpet/PetPet.yml
                                    2. 将 headless: false 更改为 headless: true

                                    常见问题:

                                    Could not initialize class java.awt.Toolkit?
                                    对于无输入输出设备的服务器 需要启用headless

                                    Q 1 Reply Last reply Reply Quote 1
                                    • Q
                                      qingfengxiu last edited by

                                      2022-07-08 09:38:21 W/Bot.1781649904: An exception occurred when processing event. Subscriber scope: '<unnamed>'. Broadcaster scope: 'Bot 1781649904.EventDispatcher'
                                      java.lang.LinkageError: loader constraint violation: loader 'bootstrap' wants to load interface org.w3c.dom.Node. A different interface with the same name was previously loaded by 'Plum-1.0-SNAPSHOT.mirai.jar' @6dc1dc69. (org.w3c.dom.Node is in unnamed module of loader 'Plum-1.0-SNAPSHOT.mirai.jar' @6dc1dc69, parent loader 'global-shared' @4364712f)
                                              at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getNativeTree(Unknown Source)
                                              at java.desktop/com.sun.imageio.plugins.gif.GIFImageMetadata.getAsTree(Unknown Source)
                                              at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.configureRootMetadata(GifBuilder.java:57)
                                              at petpet-3.4.jar//xmmt.dituon.share.GifBuilder.<init>(GifBuilder.java:26)
                                              at petpet-3.4.jar//xmmt.dituon.share.BaseGifMaker.makeAvatarGIF(BaseGifMaker.java:31)
                                              at petpet-3.4.jar//xmmt.dituon.share.BasePetService.generateImage(BasePetService.java:150)
                                              at petpet-3.4.jar//xmmt.dituon.plugin.PluginPetService.sendImage(PluginPetService.java:128)
                                              at petpet-3.4.jar//xmmt.dituon.plugin.Petpet.onGroupMessage(Petpet.java:154)
                                              at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631)
                                              at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:631)
                                              at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
                                              at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
                                              at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
                                              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                              at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                              at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                              at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
                                              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
                                      

                                      180c09bb-e22a-47e1-b117-2fcfc89bff17-image.png

                                      81dda143-51b1-4f5a-99cc-1648b717fc92-image.png

                                      依然报错

                                      1 Reply Last reply Reply Quote 0
                                      • tsudzuki
                                        tsudzuki 摸鱼 @Dituon last edited by

                                        @Dituon 应该是因为 plum插件是早期mirai console版本编译的,依赖直接写入jar,但是这边使用了新的mirai console,两者依赖不一致,应该检查项目依赖

                                        1 Reply Last reply Reply Quote 0
                                        • Dituon
                                          Dituon last edited by

                                          @tsudzuki @qingfengxiu

                                          我使用buildPlugin 和 buildPluginLegacy 重新编译了一份

                                          参见 https://github.com/Dituon/petpet/releases/tag/3.5-M1

                                          tsudzuki Q 2 Replies Last reply Reply Quote 0
                                          • tsudzuki
                                            tsudzuki 摸鱼 @Dituon last edited by

                                            @Dituon jvm内置的类的话,应该是mirai加载器的问题,可以去issue

                                            https://github.com/mamoe/mirai/issues

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 15
                                            • 16
                                            • 6 / 16
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact