准备好找出罪魁祸首了吗?
Blame 是一款诊断工具,适用于遇到奇怪的区块生成崩溃或命令无堆栈跟踪地失效的情况。启用 Blame 后,它将尝试收集更多信息并将堆栈跟踪打印到 mods 文件夹上方的 logs 文件夹中的 latest.log 文件中。这是包含你所需所有信息的更便捷位置!请注意,Blame 仅适用于单人游戏或服务器,不适用于连接至服务器的客户端。
以下是 Blame 当前具备的功能列表!
• 打印在使用时崩溃的命令的堆栈跟踪。(通常,模组化的命令在崩溃时不会向日志中输出任何内容)
• 将在世界启动时检测并打印出所有损坏的命令。(这将找到那些在 .then() 调用之外调用了 .executes() 的命令,因为它们将无法正常工作)
• 为在世界生成期间崩溃的特性或结构提供额外详细信息。
• 记录所有未注册的 ConfiguredFeatures、ConfiguredStructures 和 ConfiguredCarvers。(未注册这些内容的模组会导致其他模组的内容在世界生成时崩溃且不生成)
• 检测 DynamicRegistry 是否被另一个模组加载得太早。(这样做会导致其他模组注册的所有世界生成内容出错,例如出现“未知生物群系 ID”问题)
• 记录来自任何模组或数据包的哪个世界生成 JSON 文件已损坏,并显示其 JSON 内容。
• 当尝试生成战利品时,记录任何缺失的战利品表!如果箱子为空,请检查日志,此模组可能会捕获原因。
• 打印出间距值设置为 0 或分离值等于或大于间距值的崩溃结构的名称。(任一条件成立都会导致游戏崩溃。)
• 精确打印出哪个结构因未添加到 FlatGenerationSettings.STRUCTURES 而导致自定义/平坦 ChunkGenerator 崩溃
• 压缩损坏的配方和战利品表解析,以便更轻松分享日志并查看错误。
• 修复 MC-190122 错误,使日志中加载和声明的实际配方数量正确,以帮助调试配方。
• 如果 Jigsaw Structure 尝试访问不存在的模板池,则将打印到日志中,让你知道结构未完全生成。
• 如果模组或数据包尝试访问不存在的 nbt 文件,则进行记录,以便更容易调试
• 将打印出在结构生成期间导致结构处理器崩溃的方块及其 nbt 数据。
给模组开发者:在 Fabric/Quilt 开发环境中使用 Blame
在你的 build.gradle 文件中,添加此 maven 仓库。Gradle 将在此处查找 Blame 的 jar 包。
repositories {maven {
url "
}
}
现在将此添加到依赖块中。将 <version> 替换为你想要使用的 Blame 版本,例如 1.16.5-3.0.1-fabric。查看 Modrinth 页面以获取最新版本。
dependencies {...
modImplementation "com.telepathicgrunt:Blame-Forge:5.0.0+1.18.2"
}
启动游戏,Blame 应该正在运行!你可以看到 Blame 会像这样向 IDE 控制台和 latest.log 文件输出内容:
[18:25:48] [main/ERROR] (Blame) Blame 1.18.2-5.0.0-forge initialized
Ready to find who to Blame?
Blame is a diagnosis to be put on if you are having strange worldgen crashes or commands that break without any stacktrace. But when you have Blame on, it will attempt to gather far more infomation and print the stacktrace to the latest.log file in the logs folder above the mods folder. A much more convenient place with all the info you will need! Keep in mind, Blame only works on singleplayer or on servers. Not on clients connecting to a server.
Here's the current list of functionalities that Blame has!
• Prints out the stacktrace for commands that crashed when used. (Normally, modded commands do not print anything to logs when they crash)
• Will detect and print out all broken commands when starting up a world. (This will find commands that called an .executes() outside a .then() call because they won't work)
• Prints extra detail for features or structures that crashes during worldgen.
• Logs all ConfiguredFeatures, ConfiguredStructures, ConfiguredCarvers that are not registered. (Mods that don't register the stuff will cause other mod's stuff to break and not spawn during worldgen)
• Detect if DynamicRegistry is loaded way too early by another mod. (Doing so causes all other mod's registered worldgen stuff to blow up such as "Unknown Biome ID" issues)
• Logs out exactly which worldgen JSON file is broken from any mod or datapack and shows its JSON too.
• Logs out any missing loot table when the loot is attempted to be generated! Check logs if a chest is empty and this mod might catch why.
• Prints out the name of the crashing structure that has its spacing value set to 0 or if it's separation value is equal to or greater than the spacing value. (Either one of these condition being true will crash the game.)
• Prints out exactly which structure crashed a custom/flat ChunkGenerator because it wasn't added to FlatGenerationSettings.STRUCTURES
• Condense broken Recipe and Loot Table parsing so you can share logs easier and see errors easier.
• Fixes MC-190122 bug so that the actual true number of recipes loaded and stated in logs is correct to help debugging recipes.
• Will print to logs if a Jigsaw Structure attempts to access a non-existent template pool so you know when a structure is not fully generating.
• Will log out if a mod or datapack tries to access a non-existent nbt file for easier debugging
• Will print out what block and its nbt that crashed a structure processor during structure generation.
FOR MODDERS: USING BLAME IN Fabric/Quilt DEV ENVIRONMENT
In your build.gradle file, add this maven repository. This is where gradle will look for Blame's jar.
repositories {maven {
url "
}
}
Now add this to the dependency block. Replace <version> with the Blame version you want to use such as 1.16.5-3.0.1-fabric. Check the Modrinth page for what the latest version is.
dependencies {...
modImplementation "com.telepathicgrunt:Blame-Forge:5.0.0+1.18.2"
}
Launch the game and Blame should be running! You can tell as Blame will print something like this to the IDE console and latest.log file:
[18:25:48] [main/ERROR] (Blame) Blame 1.18.2-5.0.0-forge initialized
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blame
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
(V.3.7.0 更新日志) (1.16.2/1.16.3/1.16.4/1.16.5 Minecraft)
发射器行为:
默认情况下不再打印“发射器行为注册表替换”日志,因为截至目前我尚未发现任何通过记录这些日志得以解决的、由模组修改发射器行为导致的问题。
你可以通过编辑 mods 文件夹上方的 config/blame-forge.properties 文件来开启此功能。
结构生成阶段:
检测并输出那些在 Structure.STEP 映射表中缺少条目的结构。
该映射表用于确定结构将在哪个生成阶段进行生成,除非该结构重写了 getStep() 方法。
生物群系源:
检测维度的生物群系源在其 possibleBiomes 列表中是否存在空条目,这会导致在使用 /locate 命令及其他结构检查时发生崩溃。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧