本模组是一个半高级的 Mixin 项目;
我们专门针对几个关键的崩溃根源,并以一种不会严重影响游戏玩法的方式,有目的地防止它们引发崩溃;
毕竟,本模组所做的所有修改都可以通过完全重启游戏或服务器来简单地撤销,所有数据仅保存在内存中,而非磁盘上!
预期结果:由于我们是为此而设计的,如果您遇到重大问题,或者在使用本模组时遭遇非“内存溢出”类的致命崩溃,请通过 Discord 等方式直接联系我!
我希望让本模组为您带来最佳体验,因此请随时与我联系!
服务器刻崩溃 - 任何通常会在游戏刻期间导致服务器崩溃的未处理异常都会被捕获并抑制。服务器会跳过该次坏掉的刻并继续运行。
崩溃报告拦截 - 当 Minecraft 构建崩溃报告(显示崩溃屏幕之前的第一步)时,它会被拦截并丢弃。崩溃屏幕永远不会出现。
实体刻崩溃 - 如果实体的刻抛出异常或导致栈溢出,它将被隔离。被隔离的实体将在每个刻中被静默跳过,而不是反复导致服务器崩溃。
方块实体刻崩溃 - 与实体保护相同,但适用于方块实体(箱子、熔炉、刷怪笼等)。有问题的方块实体将根据其位置进行隔离,并在后续的刻中被跳过。
方块刻崩溃 - 捕获方块状态刻期间的崩溃(例如沙子下落、作物生长、命令方块执行)。出问题的方块位置将被隔离。
命令执行崩溃 - 由运行命令引发的任何崩溃(无论是来自聊天栏、命令方块、功能包还是控制台),都会被捕获并中止,而不会导致服务器宕机。
内存溢出 - 保留 64MB 的紧急内存储备。发生 OOM 时,它会立即释放,为服务器提供恢复空间。如果在 1.5 秒内再次发生 OOM,则允许其传播(表明恢复明显失败,我们不想损坏任何内容!)。
This mod is a semi advanced mixin project;
We specifically target several key crash-origins, and purposefully guard them against crashes in a way that doesnt majorly effect gameplay;
After all, all the edits our mod does, can simply be reversed by restarting the game fully, or the server fully, It's all saved to only memory, not disk!
Expected results, since we designed for it, Please contact me personally on discord or such if there are major issues, or if you experience a non Out Of Memory fatal crash with this mod!
I want to make this mod the best it can be for you all, So please feel free to reach out!
Server tick crash - Any unhandled exception that would normally kill the server during a game tick is caught and suppressed. The server skips the bad tick and continues running.
Crash report interception - When Minecraft builds a crash report (the first step before showing the crash screen), it's intercepted and discarded. The crash screen never appears.
Entity tick crash - If an entity's tick throws an exception or causes a stack overflow, it's quarantined. Quarantined entities are silently skipped every tick instead of repeatedly crashing the server.
Block entity tick crash - Same as entity protection but for block entities (chests, furnaces, spawners, etc.). A bad block entity is quarantined by position and skipped on future ticks.
Block tick crash - Catches crashes during block state ticks (e.g. sand falling, crop growth, command block execution). The offending block position is quarantined.
Command execution crash - Any crash triggered by running a command, whether from chat, a command block, a function pack, or the console, is caught and aborted without taking the server down.
Out of memory - A 64MB emergency memory reserve is held in reserve. On OOM, it's freed immediately to give the server room to recover. If OOM hits again within 1.5 seconds, it's allowed to propagate (recovery clearly failed, We do not want to corrupt anything!).
评论 0
登录后参与评分
还没有评论,来抢沙发吧