MiraiForum

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

    人生重开模拟器

    插件发布
    console mirai-console
    11
    39
    2795
    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.
    • HatoYuze
      HatoYuze last edited by HatoYuze

      やり直すんだ。そして、次はうまくやる。

      life-restart-bot

      基于 mirai-console 的人生重开模拟器一则

      由于 skiko 不支持 x86 系统,本插件无法在 x86 位数系统中运行!
      如果您须要在 x86 系统中运行,请使用 Release v0.3.0

      项目地址: https://github.com/HatoYuze/life-restart-bot
      您可能需要前置插件 project-mirai/chat-command

      如果您愿意为本项目点一个 star 的话,就是对本项目最好的支持✨

      支持功能

      • 支持自定义并添加模拟器事件
      • 在群聊/好友 中使用指令模拟重开
      • 支持绘图返回功能(使用
        skia)

      如何使用?

      可详见项目 README 中的描述

      • 下载 release 中的 life-restart-bot-xxx-mirai2.jar
      • 随后丢进你的 mcl 的 plugins 中
      • 对目标授予 com.github.hatoyuze.restarter.life-restarter:command-execute 权限
        在授予权限后,发送指令 /remake start 即可开始人生模拟器

      如果您想要添加自定义事件,可前往 /mcl/config/com.github.hatoyuze.restarter.life-restarter/register.yml 文件

      将文件的 enabledCustomizedEvent 设定为 true
      随后按照所要求的格式填写文件即可,例如

      events:
        - id: 50001
          event: 你在使用社交软件水群的时候,发现有群友在使用聊天机器人。
          include: AGE<60
          exclude: 'EVT![50001,50002]'
          postEvent: 你感到很好奇。
          branch:
            - '(INT>5)&(MNY>3):50002'
        - id: 50002
          event: 你开始自己学着编写自己的 QQ 机器人, 由于各种各样的费用你用了很多钱。
          NoRandom: true
          grade: 1
          effect: 
            MNY: -1
            INT: 1
            SPR: 1
      
      enableAge:
        12..=50:
          - 50001
      

      使用例:

      dcb0b8af-4de3-4845-9f98-2857df9cf9f3-image.png
      53227d9b-3dc2-4be0-8f9c-3b86a2fad020-image.png
      聊天记录内容:

      自版本 0.4.0 以后,将默认使用图片结果返回,您也可以使用 remake text 获取聊天记录结果
      6911321c-0e23-480c-bb82-a59010e40317-image.png
      71d5ef35-aa3b-4322-b65e-40b6e35f62d8-image.png

      1 Reply Last reply Reply Quote 3
      • fufuzhou
        fufuzhou last edited by

        经常发现天赋并没有生效

        HatoYuze 2 Replies Last reply Reply Quote 0
        • HatoYuze
          HatoYuze @fufuzhou last edited by

          @fufuzhou 没有生效吗,可以麻烦您举例一下吗?(

          mckyby 1 Reply Last reply Reply Quote 0
          • mckyby
            mckyby 摸鱼 last edited by

            好玩,点了

            1 Reply Last reply Reply Quote 0
            • mckyby
              mckyby 摸鱼 @HatoYuze last edited by mckyby

              **比如这样
              (橙色胶囊)

              不过这事件真的抽象

              Screenshot_20241209_003427_com_tencent_mobileqq_MultiForwardActivity.jpg Screenshot_20241209_003421_com_tencent_mobileqq_MultiForwardActivity.jpg

              HatoYuze 1 Reply Last reply Reply Quote 0
              • HatoYuze
                HatoYuze @mckyby last edited by

                @mckyby 草,光测试别的了 你提个issue吧(
                我尽快修xx

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

                  前排支持, 好久没见到mirai生态的新插件了x

                  1 Reply Last reply Reply Quote 1
                  • F
                    firefairy last edited by

                    好好好

                    1 Reply Last reply Reply Quote 0
                    • HatoYuze
                      HatoYuze @fufuzhou last edited by

                      @mckyby
                      @fufuzhou

                      经常发现天赋并没有生效

                      此问题已于 Release Version 0.2.2 解决

                      不过由于赶得比较急,可能修出了新bug 晚点我验证一下

                      1 Reply Last reply Reply Quote 0
                      • F
                        firefairy last edited by

                        很好玩
                        群友很爱玩
                        刷爆了
                        所以我觉得接下来需要

                        触发冷却(5-10分)
                        本周最高存活记录(周排行)
                        死亡回放(最长时间存活记录)

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          LJ-XD last edited by

                          好玩,不过能不能自己分配一下属性点?

                          1 Reply Last reply Reply Quote 0
                          • L
                            LJ-XD last edited by

                            天赋选择神秘的盒子的时候有概率报错

                            2024-12-13 10:47:31 W/LifeRestarter: Exception in executing command [mirai:source:ids=[], internalIds=[], from group to at ]/remake start
                            command owned by LifeRestarter v0.1.1 with NormalMember()
                            java.lang.NullPointerException
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.game.entity.Life.finishUserEvent(Life.kt:54)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.game.entity.Life.nextEvents(Life.kt:42)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.game.entity.Life.next(Life.kt:124)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.game.LifeEngine$iterator$1.next(LifeEngine.kt:65)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.game.LifeEngine$iterator$1.next(LifeEngine.kt:59)
                            at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:787)
                            at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:817)
                            at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:808)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.mirai.RestartLifeCommand.start(RestartLifeCommand.kt:66)
                            at life-restart-bot-0.2.2.mirai2.jar//com.github.hatoyuze.restarter.mirai.RestartLifeCommand$start$1.invokeSuspend(RestartLifeCommand.kt)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                            at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
                            at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
                            at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                            at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                            at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                            at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                            at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

                            HatoYuze 1 Reply Last reply Reply Quote 0
                            • HatoYuze
                              HatoYuze @LJ-XD last edited by

                              @LJ-XD 已修复~~
                              可见最新 release Version 0.3.0
                              同时也把分配属性点给支持了!

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

                                喜报:成功支持绘图功能~
                                测了一遍没啥问题,但是不排除并发的时候可能会有一些绘图错误
                                晚点儿再看吧ᓚᘏᗢ

                                1 Reply Last reply Reply Quote 1
                                • L
                                  LJ-XD last edited by

                                  1.png直接增加属性的天赋都没生效

                                  L 2 Replies Last reply Reply Quote 0
                                  • L
                                    LJ-XD @LJ-XD last edited by

                                    @LJ-XD 另外指令的属性顺序和图片上的属性顺序不同,比如: /remake start 0 0 10 10 0 对应上面的属性顺序就不一样

                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      LJ-XD @LJ-XD last edited by

                                      @LJ-XD 不一样的话使用不太方便,能改成一样的吗?

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        LJ-XD @LJ-XD last edited by

                                        @LJ-XD 050b5451-d90b-4990-aa4a-79e8f4f92a05-image.png
                                        能减,不能加。。

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          LJ-XD last edited by

                                          作者能不能开个群,这样提bug好不方便(dog

                                          F HatoYuze 2 Replies Last reply Reply Quote 0
                                          • L
                                            LJ-XD @LJ-XD last edited by

                                            @LJ-XD 0c71a71a-194f-4d95-84c9-d87cc57e6df3-image.png
                                            另外快乐的计算有问题

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