Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps

Home Page:https://azgaar.github.io/Fantasy-Map-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Another problem in loading .map files

TheBatsOfDoom opened this issue · comments

I've had a similar issue as @kennychar204 after saving my map files but being unable to load them. What's really peculiar is that whenever I save a file while online I can load it just fine, but these files were made offline. I don't know if this is the cause, but it's an interesting correlation.
The aforementioned user: #862

"This file does not look like a valid .map file.
Please check the data format."

Steps to reproduce
Click on "save"
Click either on "machine" or "dropbox"
After finished saving, click on "load"
Select either the file saved on the disk or on dropbox

Expected behavior
For the application to open the map as it was when I clicked "save".

.map file

amuraone 2022-09-01-09-11.zip

amuratwo 2022-09-02-09-09.zip

System

Version: 1.87.09

Desktop Application

Hello. Yes, it's the same issue. Open the file in text editor (a simple one like notepad):
image

Here you need to replace [object HTMLSpanElement] by map version. That's all, save the file. Not sure why is it happening, but it's easy to solve

@Azgaar
When I replace [object...] with 1.89.05, then I get a new error which is this:
image

Niverom 2023-02-07-17-11.zip

I was really enjoying this map generator until this happened and ground it all to a halt. I cannot get the file to open even after replacing the version there.

The issue is in CRLF being placed instead of CR in svg part of the file, so on load it cannot be processed correctly. It can be fixed manually.
See e.g. #198