MiraiForum

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

    MiraiCP-C++ SDK

    项目发布
    miraicp
    4
    16
    1548
    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.
    • Nambers
      Nambers 摸鱼 last edited by

      MiraiCP发展到现在也已经发展了30几个版本了,基础api都已经覆盖,不过还是有着一些缺陷
      github项目地址
      本贴旨在搜集对MiraiCP的建议,意见,一些功能的讨论和遇到的问题
      MiraiCP也会慢慢覆盖mirai其他未覆盖的api 如戳一戳之类的
      x

      1 Reply Last reply Reply Quote 1
      • S
        Shuaiguozi last edited by

        terminate called after throwing an instance of 'nlohmann::detail::parse_error'
        what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

        image.png

        Nambers 1 Reply Last reply Reply Quote 0
        • Nambers
          Nambers 摸鱼 @Shuaiguozi last edited by

          @Shuaiguozi 在 MiraiCP-C++ SDK 中说:

          检查一下配置文件和readme里面格式是否一样

          S 2 Replies Last reply Reply Quote 0
          • S
            Shuaiguozi @Nambers last edited by

            @Nambers
            我只有这个配置文件是按照步骤自己创建的,但显然没有什么问题
            ca837f0b-416a-4236-bff0-3a4387378cb8-image.png

            1 Reply Last reply Reply Quote 0
            • S
              Shuaiguozi @Nambers last edited by

              @Nambers
              一旦我把我的文件名改成它要求的config.json又会出现如下错误
              731d97f1-6d04-48ae-ad57-9d4536c55311-image.png

              Nambers 1 Reply Last reply Reply Quote 0
              • Nambers
                Nambers 摸鱼 @Shuaiguozi last edited by Nambers

                @Shuaiguozi 这个qs 可能是文档写错了到时候改一下, 看看你配置文件(json文件)什么编码的, 我在GBK的时候可以复现, 改成utf8就ok了
                PS: GBK在全acsii字符下也可以跑, 这个是因为你路径里有中文+GBK 我猜

                S 1 Reply Last reply Reply Quote 0
                • S
                  Shuaiguozi @Nambers last edited by

                  @Nambers
                  不是这个问题,我专门试过纯英文路径,但还是会报这个错。
                  我刚把编码格式改成了utf-8还是会报错。

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Shuaiguozi @Shuaiguozi last edited by

                    @Shuaiguozi 也有可能是我改编码没有改到位,要不你把你的json文件发给我?我在我的本地环境试试

                    Nambers 1 Reply Last reply Reply Quote 0
                    • Nambers
                      Nambers 摸鱼 @Shuaiguozi last edited by

                      @Shuaiguozi 链接: https://pan.baidu.com/s/1I_0PbUQJVL9vl5iJNSMGvg?pwd=kpwz
                      你也可以试一下自己用debugger找一下调用栈是哪里抛出的,因为我本地也复现不了,或者你也可以把你的配置文件发一下我再试一下

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        EightyDollars @Nambers last edited by

                        @Nambers 请问配置文件能再发一次嘛,我也遇到了这个问题,但是链接里的分享被取消了

                        Nambers 1 Reply Last reply Reply Quote 0
                        • Nambers
                          Nambers 摸鱼 @EightyDollars last edited by

                          @EightyDollars https://pan.baidu.com/s/1mfAAlMml0NTypEvt3al0hA?pwd=itei

                          1 Reply Last reply Reply Quote 0
                          • N
                            Neonscape last edited by

                            @Nambers ubuntu下的miraicp.json中文件的路径应该怎么填写?求教,我试了好几个路径都提示找不到文件(x

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              Neonscape @Neonscape last edited by

                              @Neonscape 如图1.png.png

                              Nambers 1 Reply Last reply Reply Quote 0
                              • Nambers
                                Nambers 摸鱼 @Neonscape last edited by

                                @Neonscape 我没什么头绪,你可以试一下

                                1. 保持 jar 文件也是最新 2.13.2
                                2. 用 / 当作路径分隔符
                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  Neonscape @Nambers last edited by

                                  @Nambers 用/分割我也试过了,不过我试一下更新jar先www

                                  Nambers 1 Reply Last reply Reply Quote 0
                                  • Nambers
                                    Nambers 摸鱼 @Neonscape last edited by

                                    @Neonscape 喔还有, 把 ~ 替换成 ~ 代表的路径

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