jeheydorn / nortantis

Nortantis is a fantasy map generator. It uses a simple tectonic plate simulation to create islands and continents with trees, rivers, and mountains. The result has the appearance of an old-fashioned hand-drawn map.
GNU Affero General Public License v3.0
70 stars 19 forks source link

Previously generated map cannot be opened #17

Closed mattpanyor closed 1 month ago

mattpanyor commented 3 months ago

I'm trying to import a .properties file in, that was made in an older version of this app. I have some work in there I do not wish to lose.

Error prompt: Error while creating map: Cannot invoke "java.util.List.stream()" because "cityDrawTasks" is null.

The map I'm trying to import: https://pastebin.com/8Lq8NmMA

jeheydorn commented 3 months ago

newworldv2.zip

I don't know how this happened, but somehow your map has edits but doesn't have text edits. The reason this should be impossible is because all generated maps have at least a title, and the editor never actually deletes text; it just sets the text to empty, which causes it to no longer be drawn.

I hacked my code to force your mapped to load, then saved it off as a nort file. So you should be able to open it now. It's attached (although I had to put it in a zip file since the nort file extension is not supported on GitHub).

I'll plan to add a fix to better handle this in the future, but it will be a while before I release it, since I have other ongoing projects in my dev branch.

jeheydorn commented 1 month ago

This is now fixed in my dev branch.