



Night Config Fixes 的唯一目的是为在使用 com.electronwill.nightconfig.core.io.ParsingException: Not enough data available 这一与配置加载相关的常见问题时提供一种变通方案,该问题通常出现在使用 Night Config 库的情况下(Forge 的配置系统以及 Fabric 上的许多模组均使用了此库)。
在 Better Minecraft 整合包中,每天都有人报告提到这一问题,其普遍程度足以让我们提供一个专门的变通方案模组。


▶️ 问题会随机发生,配置文件突然变为空白,导致下次尝试读取该文件时 Night Config 抛出异常。
▶️ Night Config Fixes 可确保此情况不再导致游戏崩溃,而是捕获异常并仅根据默认值重新创建配置文件。
▶️ 整合包必须将已配置的配置文件放入 defaultconfigs 目录,而不是 config,以便正确恢复设置值!
▶️ 此外,还包含一个额外选项:在 Forge 上于全局 config 目录生成服务器配置文件,而非在每个世界的 serverconfig 中单独生成!
▶️ 前往 GitHub 仓库了解更多详情!


⏩ 客户端可选安装 & 服务端可选安装


如果模组支持,可以通过游戏内菜单直接进行配置(需要安装由 Prospector 开发的 Mod Menu,适用于 Fabric)。请注意,在较旧的 Minecraft 版本中,还需要安装 Forge Config Screens。
若要使用外部文本编辑器手动配置,所有文件均位于 .minecraft/config 目录下,文件名分别为 MOD_ID-client.toml、MOD_ID-common.toml 或 MOD_ID-server.toml,具体取决于配置文件的类型。并非所有类型的配置文件都会存在,这取决于模组本身。











Night Config Fixes exists for the sole purpose of implementing a workaround for the rather common com.electronwill.nightconfig.core.io.ParsingException: Not enough data available issue related to config loading when using the Night Config library (used by Forge's config system, as well as many mods on Fabric).
There have been daily reports mentioning this issue for the Better Minecraft mod packs, which feels common enough to provide a dedicated workaround mod.


▶️ The issue occurs randomly where a config file will just go blank and Night Config will throw the exception when trying to read that file next time.
▶️ Night Config Fixes makes sure this no longer crashes the game, but instead catches the exception and simply recreates the config from its default values.
▶️ Modpacks must put their configured config files in the defaultconfigs directory instead of config so the correct values can be restored!
▶️ Also includes an additional option to generate server configs on Forge in the global config directory instead of locally per world in serverconfig!
▶️ Find out more details on the GitHub repository!


⏩ INSTALLATION OPTIONAL ON CLIENT & OPTIONAL ON SERVER


If available for a mod, configuration is possible directly from in-game using the mod menu (requires Mod Menu by Prospector to be installed on Fabric). Please note that on older Minecraft versions installing Forge Config Screens is also a requirement.
For manual configuration using an external text editor all files are found at .minecraft/config, named as MOD_ID-client.toml, MOD_ID-common.toml, or MOD_ID-server.toml, depending on the type of config. Not all types might exist for a mod, if any at all.







评论 0
登录后参与评分
还没有评论,来抢沙发吧