So - a bit of a bug I encountered.
I have been beating my head against a wall trying to get ANY mod to work - but I kept getting a "Cannot find Byte Order Marker, Cannot Switch to Unicode" error when trying to load a server. In single player the server doesn't load, but there isn't any nice console message why.
I went through all my mod files.
I uninstalled (completely) and reinstalled about 20 times.
I went through all the newest mod (beyond the core). I couldn't figure out what the problem was. All my xml files were UTF-8. Then i realized the only file I didnt check was the one that came standard with the game. ModsConfig.xml. I open the file, and despite the opening tag telling me the file contents were UTF-16, Notepad++ was asserting that ModsConfig.xml was itself encoded using UTF-8 without BOM.
So, a quick fix to change the UTF-16 to UTF-8 and convert the xml file in question to UTF-8 (with the BOM), and now my mod loads.
I don't know if its the launcher that changes this ModsConfig.xml file to UTF-8 without BOM, but regardless it breaks mods, so hopefully this can be changed in future?
I have been beating my head against a wall trying to get ANY mod to work - but I kept getting a "Cannot find Byte Order Marker, Cannot Switch to Unicode" error when trying to load a server. In single player the server doesn't load, but there isn't any nice console message why.
I went through all my mod files.
I uninstalled (completely) and reinstalled about 20 times.
I went through all the newest mod (beyond the core). I couldn't figure out what the problem was. All my xml files were UTF-8. Then i realized the only file I didnt check was the one that came standard with the game. ModsConfig.xml. I open the file, and despite the opening tag telling me the file contents were UTF-16, Notepad++ was asserting that ModsConfig.xml was itself encoded using UTF-8 without BOM.
So, a quick fix to change the UTF-16 to UTF-8 and convert the xml file in question to UTF-8 (with the BOM), and now my mod loads.
I don't know if its the launcher that changes this ModsConfig.xml file to UTF-8 without BOM, but regardless it breaks mods, so hopefully this can be changed in future?