Log After Def Error Mod improves RimWorld’s XML parsing error reporting by printing the affected def details directly in the log. This update of ordpuss’ mod is especially useful for modders and troubleshooters who need clearer information than the very limited vanilla parsing exceptions.
Log After Def Error Features
The Log After Def Error Mod prints detailed information about the def involved whenever an error occurs while parsing XML into C# objects. This makes locating broken XML definitions much easier during debugging.
What the mod does
- Logs the affected def when an XML parsing error occurs.
- Provides more useful debugging information than vanilla RimWorld.
- Helps identify exactly which XML file and definition caused the issue.
Logged information format
The information is logged in the following structure:
- defName:modName/pathToXml/xmlFile.xml.
This allows you to quickly trace the problem back to the exact definition and source file that triggered the parsing failure.
Using the log output
The relevant log file is Player.log, which should be located in the parent folder of your save folder.
You can also share a HugsLib log instead when reporting issues, if that is more convenient for troubleshooting.
Compatibility notes
When troubleshooting the Log After Def Error Mod:
- See if the error persists if you just have this mod and its requirements active.
- If not, try adding your other mods until it happens again.
- Always post your log using the Log Uploader.
- For best support, please use the Discord-channel for error-reporting.
- Do not report errors by making a discussion-thread, I get no notification of that.
- If you have the solution for a problem, please post it to the GitHub repository.
- Use RimSort to sort your mods.
Additional credits: ordpuss.