Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps
https://azgaar.github.io/Fantasy-Map-Generator
Other
4.48k stars 636 forks source link

Map Corruption After Save (Backup included - git) #1055

Closed GeckoNickDeveloper closed 2 months ago

GeckoNickDeveloper commented 6 months ago

Describe the bug After saving map on file, every subsequent load of the same map gives "parsing error"

Steps to reproduce No idea how to reproduce

Expected behavior Map shouldn't be corrupted. When retrieved backups (using git), they are also corrupted even thought the app loaded them wonderfully before.

.map file Chaliv - Terre Conosciute.zip

Screenshots

image

System

Note: this map is a month worth of work, if you could help me restore it I'll be extremely grateful to you guys. If it cannot be fixed i'll just deal with it. Thank in advance for your attention

Azgaar commented 6 months ago

Hello.

Well, the data format is indeed corrupted, some systems do change the file and brake it. See the solution here: https://github.com/Azgaar/Fantasy-Map-Generator/issues/64#issuecomment-392032945

GeckoNickDeveloper commented 6 months ago

Thank you for the answer. I'm trying to edit it accourding to the solution but without success

Azgaar commented 6 months ago

You need to replace the wrong end lines in the SVG part of the file. I used to do it manually in Notepad++, it was really easy. Now I'm on Mac and don't know an easy way to do it.