The message
com.electronwill.nightconfig.core.io.ParsingException: Not enough data available
at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22)The full message is in the game folder: logs/latest.log for every start, and crash-reports/ for crashes that got far enough to write a report. In Prism, CurseForge and the Modrinth App, the instance's folder button opens the game folder.
What it means
Forge and NeoForge mods keep their settings in .toml files, read by a library called NightConfig. “Not enough data available” means the file ended before NightConfig expected it to: it is empty, cut off, or full of zero bytes.
This almost always happens after the game or the PC was closed while the file was being written: a crash, a forced shutdown, a power cut, or a full disk. The mod itself is usually fine.
The crash report or logs/latest.log names the file a few lines around the error, often in the config or defaultconfigs folder, or in the world's serverconfig folder.
How to fix it
- 1Open logs/latest.log or the crash report and look for the .toml file named near the ParsingException.
- 2Close the game, then rename that file (for example to name.toml.old) or delete it. Only that one file, not the whole config folder.
- 3Start the game again. The mod writes a new file with its default settings.
- 4If you had changed settings in it, copy them over from the old file by hand, or from a backup.
- 5If it keeps happening, check that the disk has free space and that antivirus or cloud sync is not locking the config folder.
With Packquill
Packquill recognises this crash, names the damaged config file and can reset it in one click: the old file is kept with a .broken ending and the mod writes a fresh one at the next start. Config files are also backed up with every update.
Packquill is free for Windows and Linux. It backs up every change, so anything it does can be undone.
Questions
Will I lose all my settings?
Only the settings in that one file go back to their defaults. Every other mod keeps its own config.
Can I just delete the whole config folder?
It works, but every mod loses its settings. Removing only the broken file is enough.