Night Config Fixes

A small number of workarounds for relatively common issues concerning the Night Config library.

4,2M

Night Config Fixes

<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/banner.png" width="854" height="240" /></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p style="text-align: center; line-height: 36px;"><a href="https://lunapixel.studio/discord"><img src="https://img.shields.io/static/v1?label=&message=Discord&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=discord&logoColor=white" width="117" height="28" /></a> <a href="https://x.com/Fusseel"><img src="https://img.shields.io/static/v1?label=&message=Twitter&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=x&logoColor=white" width="116" height="28" /></a> <a href="https://www.youtube.com/@heyitsfuzs"><img src="https://img.shields.io/static/v1?label=&message=YouTube&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=youtube&logoColor=white" width="118" height="28" /></a> <a href="https://github.com/Fuzss"><img src="https://img.shields.io/static/v1?label=&message=GitHub&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=github&logoColor=white" width="108" height="28" /></a> <a href="https://www.curseforge.com/members/fuzs_"><img src="https://img.shields.io/static/v1?label=&message=CurseForge&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=curseforge&logoColor=white" width="143" height="28" /></a> <a href="https://modrinth.com/user/Fuzs"><img src="https://img.shields.io/static/v1?label=&message=Modrinth&color=ECEBE6&labelColor=2F4858&style=for-the-badge&logo=modrinth&logoColor=white" width="129" height="28" /></a></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/commons/headers/about.png" width="854" height="32" /></p>
<p><span style="font-size: 14px;">Night Config Fixes exists for the sole purpose of implementing a workaround for the rather common </span><code><span style="font-size: 14px;">com.electronwill.nightconfig.core.io.ParsingException: Not enough data available</span></code><span style="font-size: 14px;"> issue related to config loading when using the </span><a href="https://github.com/TheElectronWill/night-config"><span style="font-size: 14px;">Night Config</span></a><span style="font-size: 14px;"> library (used by Forge's config system, as well as many mods on Fabric).</span></p>
<p><span style="font-size: 14px;">There have been daily reports mentioning this issue for the Better Minecraft mod packs, which feels common enough to provide a dedicated workaround mod.</span></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/commons/headers/features.png" width="854" height="32" /></p>
<p><strong><span style="font-size: 14px;">▶️ </span></strong><strong><span style="font-size: 14px;">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.</span></strong></p>
<p><strong><span style="font-size: 14px;">▶️ </span></strong><strong><span style="font-size: 14px;">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.</span></strong></p>
<p><strong><span style="font-size: 14px;">▶️ </span></strong><strong><span style="font-size: 14px;">Modpacks must put their configured config files in the </span></strong><code><strong><span style="font-size: 14px;">defaultconfigs</span></strong></code><strong><span style="font-size: 14px;"> directory instead of </span></strong><code><strong><span style="font-size: 14px;">config</span></strong></code><strong><span style="font-size: 14px;"> so the correct values can be restored!</span></strong></p>
<p><strong><span style="font-size: 14px;">▶️ </span></strong><strong><span style="font-size: 14px;">Also includes an additional option to generate server configs on Forge in the global </span></strong><code><strong><span style="font-size: 14px;">config</span></strong></code><strong><span style="font-size: 14px;"> directory instead of locally per world in </span></strong><code><strong><span style="font-size: 14px;">serverconfig</span></strong></code><strong><span style="font-size: 14px;">!</span></strong></p>
<p><strong><span style="font-size: 14px;">▶️ </span></strong><strong><span style="font-size: 14px;">Find out more details on the </span></strong><a href="https://github.com/Fuzss/nightconfigfixes"><strong><span style="font-size: 14px;">GitHub repository</span></strong></a><strong><span style="font-size: 14px;">!</span></strong></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/commons/headers/installation.png" width="854" height="32" /></p>
<p><strong><span style="font-size: 14px;">⏩ </span></strong><strong><span style="font-size: 14px;">INSTALLATION OPTIONAL ON CLIENT & OPTIONAL ON SERVER</span></strong></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/commons/headers/configuration.png" width="854" height="32" /></p>
<p><span style="font-size: 14px;">If available for a mod, configuration is possible directly from in-game using the mod menu (requires </span><a href="https://modrinth.com/mod/modmenu"><span style="font-size: 14px;">Mod Menu</span></a><span style="font-size: 14px;"> by </span><a href="https://modrinth.com/user/Prospector"><span style="font-size: 14px;">Prospector</span></a><span style="font-size: 14px;"> to be installed on Fabric). Please note that on older Minecraft versions installing </span><a href="https://www.curseforge.com/minecraft/mc-mods/config-menus-forge"><span style="font-size: 14px;">Forge Config Screens</span></a><span style="font-size: 14px;"> is also a requirement.</span></p>
<p><span style="font-size: 14px;">For manual configuration using an external text editor all files are found at </span><code><span style="font-size: 14px;">.minecraft/config</span></code><span style="font-size: 14px;">, named as </span><code><span style="font-size: 14px;">MOD_ID-client.toml</span></code><span style="font-size: 14px;">, </span><code><span style="font-size: 14px;">MOD_ID-common.toml</span></code><span style="font-size: 14px;">, or </span><code><span style="font-size: 14px;">MOD_ID-server.toml</span></code><span style="font-size: 14px;">, depending on the type of config. Not all types might exist for a mod, if any at all.</span></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><a href="https://modrinth.com/mod/nether-chested"><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/netherchested/banner.png" width="854" height="240" /></a></p><p><a href="https://modrinth.com/mod/cut-through"><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/cutthrough/banner.png" width="854" height="240" /></a></p><p><a href="https://modrinth.com/mod/metal-bundles"><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/metalbundles/banner.png" width="854" height="240" /></a></p><p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>
<p><a href="https://lunapixel.studio/discord"><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/commons/studio.png" width="854" height="240" /></a></p>
<p><img src="https://raw.githubusercontent.com/Fuzss/modresources/main/pages/data/nightconfigfixes/strip.png" width="854" height="14" /></p>

ADS