Azgaar / Fantasy-Map-Generator

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

Unable to Save Map #1058

Open pattihix opened 7 months ago

pattihix commented 7 months ago

Describe the bug I cannot save my map to machine, dropbox, or browser. I receive the error message:

ReferenceError: version is not defined at prepareMapData (save.js?v=1.96.00:44:19) at saveMap (save.js?v=1.96.00:9:21) at HTMLButtonElement.onclick (:5979:121)

Steps to reproduce Click on Save > Machine // Dropbox // Browser > See the Saving error

Expected behavior .map file downloads

.map file do not have, keep getting error message

Screenshots save error

System

Azgaar commented 7 months ago

Hello. Something weird with files loading, try to clean the cache and ensure nothing is getting blocked by the browser

pattihix commented 7 months ago

Thanks for responding! Clearing the cache did not correct the issue (I selected all time) and there are no blocks. I tried again after clearing the cache, and after getting the first error I clicked "retry" and got this error:

ReferenceError: version is not defined at prepareMapData (save.js?v=1.96.00:44:19) at saveMap (save.js?v=1.96.00:9:21) at HTMLDivElement.Retry (save.js?v=1.96.00:29:11) 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)

I am able to open a new tab and save a different map, but not the one I am getting the errors on. Is there a way to recover the auto save?

Azgaar commented 7 months ago

Hello. I'm not sure what is happening, I did not see this error before. Can you try a different browser?

EliLightX commented 1 month ago

Same, my code when I save is this: TypeError: Cannot read properties of undefined (reading '0') at bitCode (lineclip.min.js?v1.105.0:2:912) at polygonclip (lineclip.min.js?v1.105.0:2:434) at clipPoly (commonUtils.js?v=1.103.0:6:10) at addFeature (features.js?v=1.104.0:158:22) at Object.markupPack (features.js?v=1.104.0:131:21) at parseLoadedData (load.js?v=1.104.12:371:16) at showUploadMessage (load.js?v=1.104.12:190:5) at fileReader.onloadend (load.js?v=1.104.12:130:28)

Azgaar commented 1 month ago

Same, my code when I save is this: TypeError: Cannot read properties of undefined (reading '0') at bitCode (lineclip.min.js?v1.105.0:2:912) at polygonclip (lineclip.min.js?v1.105.0:2:434) at clipPoly (commonUtils.js?v=1.103.0:6:10) at addFeature (features.js?v=1.104.0:158:22) at Object.markupPack (features.js?v=1.104.0:131:21) at parseLoadedData (load.js?v=1.104.12:371:16) at showUploadMessage (load.js?v=1.104.12:190:5) at fileReader.onloadend (load.js?v=1.104.12:130:28)

Please clear the cache, it must help of done correctly. Also can try a different browser