MiraiForum

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

    2024.7.4 目前可用的mirai登陆全过程含安装插件

    使用交流
    11
    43
    5429
    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.
    • S
      sides last edited by

      但是在比较哈希值时发现sha1文件的哈希值正确

      1 Reply Last reply Reply Quote 0
      • S
        sides last edited by

        大佬,我检查了一下,好像是2.10.0-dev-6+null版本不能用了,我去github下载了一个LuckPerms-Mirai-2.14.0-dev-7+null放在plugins后就可以正常启动mirai了,并弹出LuckPerms的弹窗

        1 Reply Last reply Reply Quote 0
        • Z
          zhaodice @sides last edited by

          @sides 在 2024.7.4 目前可用的mirai登陆全过程含安装插件 中说:

          io.github.karlatemp:luckperms

          这是因为下载 io.github.karlatemp:luckperms 的时候网络被掐断了,文件损坏,导致加载插件失败,解决方法就是删除下载的jar插件,重新过一遍,反复如此则考虑可能需要梯子了。

          1 Reply Last reply Reply Quote 0
          • Z
            zhaodice last edited by

            解决了就好(

            Orisland 1 Reply Last reply Reply Quote 0
            • Orisland
              Orisland 摸鱼 @zhaodice last edited by

              @zhaodice
              目前bot无法发图的问题和qsign有关吗?
              试了不止一个插件,问题都和下面的类似,文字是能正常收发的,图片不行。
              https://pste.ch/ukezetodel.bash

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zhaodice @Orisland last edited by

                @Orisland 和协议有关,多媒体的协议的发包格式好久之前,就已经改NT了,必须跟进要不然语音/图片/视频功能都会报废。

                Orisland 1 Reply Last reply Reply Quote 0
                • Orisland
                  Orisland 摸鱼 @zhaodice last edited by

                  @zhaodice 这是否意味着需要对现有的插件进行重构?
                  有相关的较新的示例可以参考吗。

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zhaodice @Orisland last edited by

                    @Orisland 理论上不需要改插件,需要改的是mirai-core(协议库),例如:

                    语音上传包已经更新为OidbSvcTrpcTcp.0x126e_100和OidbSvcTrpcTcp.0x126d_100
                    图片上传包已经更新为OidbSvcTrpcTcp.0x11c4_100和OidbSvcTrpcTcp.0x11c5_100
                    视频上传包已经更新为OidbSvcTrpcTcp.0x11ea_100和OidbSvcTrpcTcp.0x11e9_100
                    不仅仅是cmd变了,proto格式也有了巨大变化,几乎是重写。

                    虽然我已经改了一份mirai nt版的,但还没开源,因为我是【纯安卓平台使用】,好多Windows特有的平台代码我图省事因为编译失败我直接删了,如果要开源还得把这些坑填上呢。。。

                    Orisland 1 Reply Last reply Reply Quote 0
                    • Orisland
                      Orisland 摸鱼 @zhaodice last edited by

                      @zhaodice
                      我重新看了一下错误代码,这个看起来像是多了某些字段导致序列化产生的问题,我会先尝试去修改插件的源码重新编译尝试能否解决问题。

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zhaodice @Orisland last edited by

                        @Orisland 你确定这个报错不是产生自mirai-core,而是插件吗

                        Orisland 1 Reply Last reply Reply Quote 0
                        • Orisland
                          Orisland 摸鱼 @zhaodice last edited by Orisland

                          @zhaodice
                          因为在错误里第一行就已经明确提出了

                          kotlinx.serialization.json.internal.JsonDecodingException: Encountered an unknown key 'callbackId'.
                          

                          这个是未知key,而不是别一些其他问题,所以我猜测是解析问题。

                          Z 1 Reply Last reply Reply Quote 0
                          • Z
                            zhaodice @Orisland last edited by

                            @Orisland 好吧,我懂为啥了,但是这很shit,因为mirai解析的是callback_id,icqq解析的是callbackId

                            我想,欸,那我callback_id和callbackId这两个字段都写上,不就“兼容”了吗

                            兼容了个屁,mirai这个protocol-fix插件发现多了一个它不认识的callbackId字段直接罢工了

                            1 Reply Last reply Reply Quote 0
                            • Z
                              zhaodice last edited by zhaodice

                              这下,我该怎么同时兼容icqq和mirai?一个认callbackId一个认callback_id,八嘎

                              1 Reply Last reply Reply Quote 0
                              • Z
                                zhaodice last edited by

                                愁死了,这该怎么办,就算改了插件也有大量的存量啊。。。

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zhaodice last edited by

                                  好了,我有办法解决了,icqq有user-agent,我判断一下就行。。。事实证明user-agent是个好文明

                                  Orisland 1 Reply Last reply Reply Quote 0
                                  • Orisland
                                    Orisland 摸鱼 @zhaodice last edited by

                                    @zhaodice
                                    那我这边就直接等你这里修复还是需要同步做一些什么措施呢?

                                    Z 1 Reply Last reply Reply Quote 0
                                    • Z
                                      zhaodice @Orisland last edited by zhaodice

                                      @Orisland 你什么都不用做,现在已经好了(帮我试试看吧)

                                      Orisland 1 Reply Last reply Reply Quote 0
                                      • Orisland
                                        Orisland 摸鱼 @zhaodice last edited by

                                        @zhaodice
                                        测试相关问题已解决,您能留个蔻蔻或者有联系您的群吗?
                                        5a8012b0-e0bd-40ab-b252-56598e54f333-QQ_1721286512913.png

                                        Z 1 Reply Last reply Reply Quote 0
                                        • Z
                                          zhaodice @Orisland last edited by

                                          @Orisland 已经私聊过去了

                                          Orisland 1 Reply Last reply Reply Quote 0
                                          • Orisland
                                            Orisland 摸鱼 @zhaodice last edited by

                                            @zhaodice
                                            ok√

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