I'm maintaining a tool that needs to pull in mods and mod settings. Since 0.17 release my tool has been failing to parse the mod-settings.dat file correctly. I didn't originally write this code so excuse my ignorance but it seems there is an extra null byte before the first type?
For example the first 32 bytes of my mod-settings.dat are:
Code: Select all
00 00 11 00 11 00 02 00 00 05 00 03 00 00 00 00
07 73 74 61 72 74 75 70 05 00 7D 00 00 00 00 15
This link mentions nothing that would indicate it changed in 0.17: https://wiki.factorio.com/Mod_settings_file_format
What am I doing wrong or should change?
Thanks for any help!