Map loading/updating parse error
Radagasd opened this issue · comments
Describe the bug
I can't load my map (v1.83) in the current version 1.87.08
It gives the following error in the browser and desktop version.
SyntaxError: Unexpected token '<', ..." at JSON.parse ()
at parseConfiguration (load.js?v=1.87.08:243:32)
at parseLoadedData (load.js?v=1.87.08:268:7)
at HTMLDivElement.OK (load.js?v=1.87.08:179:24)
at HTMLButtonElement. (jquery-ui.min.js:1:102587)
at HTMLButtonElement.dispatch (jquery-3.1.1.min.js:3:10315)
at q.handle (jquery-3.1.1.min.js:3:8342)
Steps to reproduce
- Load the map file on the latest version
- Notice the parsing error
Expected behavior
I expect the map to load and update to the latest version.
.map file
Screenshots
System
- Version: 1.87.08
- Browser: Chrome
- OS: Windows 10
Note I've also tested it with the desktop version, which gives exactly the same error.
Hello, the .map file looks manually edited. The delimiter is not correct for the svg part, it should be LF instead of a CRLF. See related bugs: https://github.com/Azgaar/Fantasy-Map-Generator/issues?q=CRLF.
In the future I'm going to serialize the data better, so it won't break
Thank you for looking at it.
That edit wasn't intentional, it might got edited when committing it to a repository through Sourcetree?
Yes, that's possible