[0.17.2] Post-modsync-autoload truncates save file path when the path contains spaces
Posted: Wed Feb 27, 2019 11:57 pm
When using the "Sync Mods with Save" feature, if the "Load save after sync" box is checked, and the save file path contains a space, the game will only save the file path up until the first space character in the path.
For example, if your save is named "Test with Spaces", the game will only save the filename up to the end of "Test", and when the game reloads, it will throw this error:
If you then go and save a new world that matches the truncated filename, then the game will actually load that world instead.
Steps to Reproduce:
1. Install and enable at least one third-party mod
2. Create a new world (doesn't matter what type)
3. Save the world as "Test with Spaces"
4. Place an entity, move around a bit, just do something that differentiates from the save file you just created (i.e. place a furnace)
5. Save the world again as "Test"
6. Exit to the menu and disable all of your mod(s), then reload the game
7. Use the "Sync mods with save" feature on the "Test with Spaces" save, making sure to leave autoload enabled
8. When the game reloads, it will load the "Test" save, instead of the "Test with Spaces" save
I don't think this bug necessitates a log file, but I attached it anyway.
For example, if your save is named "Test with Spaces", the game will only save the filename up to the end of "Test", and when the game reloads, it will throw this error:
If you then go and save a new world that matches the truncated filename, then the game will actually load that world instead.
Steps to Reproduce:
1. Install and enable at least one third-party mod
2. Create a new world (doesn't matter what type)
3. Save the world as "Test with Spaces"
4. Place an entity, move around a bit, just do something that differentiates from the save file you just created (i.e. place a furnace)
5. Save the world again as "Test"
6. Exit to the menu and disable all of your mod(s), then reload the game
7. Use the "Sync mods with save" feature on the "Test with Spaces" save, making sure to leave autoload enabled
8. When the game reloads, it will load the "Test" save, instead of the "Test with Spaces" save
I don't think this bug necessitates a log file, but I attached it anyway.