Mac OSX下Minecraft Tectonicus 2.25 XML配置文件解析错误求助
Let’s break down the issues causing your error and fix them step by step:
1. You’re Pointing Tectonicus at a Folder, Not Your XML Config File
Looking at your error log’s first line:
Parsing config from /Users/ralphvandenheuvel/Downloads
This is a folder path, not your actual .xml configuration file! Tectonicus needs a direct path to the XML file you created, not the folder it’s stored in.
For example, if your config file is named tectonicus-glacier.xml inside Downloads, your terminal command should look like this:
java -jar tectonicus.jar /Users/ralphvandenheuvel/Downloads/tectonicus-glacier.xml
This is almost certainly the root cause of the "Content is not allowed in prolog" error—Tectonicus was trying to parse folder contents instead of valid XML.
2. Fix Your World Directory Path
Your <map> tag has an incorrect worldDir value:
worldDir="/Users/ralphvandenheuvel/Library/Application Support/minecraft/saves/GLACIER/level"
Minecraft stores world data directly in the GLACIER folder (which contains level.dat and other core files). The /level suffix is unnecessary. Update it to:
worldDir="/Users/ralphvandenheuvel/Library/Application Support/minecraft/saves/GLACIER"
3. Verify Text Editor Saving Settings
Even though you checked for BOM, Mac’s default Text Editor can sometimes add hidden formatting. To avoid this:
- Before saving, switch to plain text mode via
Format > Make Plain Text - When saving, choose
UTF-8as the encoding - Ensure your file has a
.xmlsuffix (e.g.,tectonicus-glacier.xml)—macOS may hide extensions by default, so double-check in Finder’sView > Show Path Baror get info window.
Corrected XML Config Example
Here’s your fixed config file, with a dedicated output folder to keep your Downloads organized:
<?xml version="1.0" encoding="UTF-8"?> <tectonicus version="2"> <config mode="cmd" outputDir="/Users/ralphvandenheuvel/Downloads/tectonicus-glacier-output"/> <map name="GLACIER" worldDir="/Users/ralphvandenheuvel/Library/Application Support/minecraft/saves/GLACIER"> <layer name="Day" lighting="day"/> </map> </tectonicus>
内容的提问来源于stack exchange,提问作者Ralph van den Heuvel

