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

Missing Burgs fields in Provinces #1096

Closed tabone closed 3 weeks ago

tabone commented 1 month ago

Describe the bug This is not really a bug. It is more of an observation. I noticed that when saving a newly generated map, the provinces in the .map file do not always include information about their burgs (i.e. the array of Burg IDs).

This information is included if the user opens the Provinces tool from Menu > Tools > Provinces before saving.

Before After
image image

Steps to reproduce

  1. Generate a new map.
  2. Menu > Layers > Save to generate the .map file.

Expected behaviour Would it be possible if provinces in a .map are always exported with this burgs information, please?

Obviously, it is not a deal breaker. I am working on an obsidian plugin, and if this was done, it would be very helpful!

.map file mapfiles.zip

System Browser: Chrome

Azgaar commented 3 weeks ago

this data is not calculated on startup to safe some resources. It's only getting collected when the Province editor is opened. While it's weird, behaviour like that it pretty typical for FMG that tries to do things faster. Province burgs can be calculated using existing data - cell province id, and burgs cell id.