cirrahn / foundry-polmap

A political map overlay module for Foundry VTT.
MIT License
2 stars 1 forks source link

Political overlay disappeared migrating to v11 from v10 #9

Closed theredspoon closed 1 year ago

theredspoon commented 1 year ago

Where can I find the political overlay for my world saved? I have a backup, not sure where or how to import it.

cirrahn commented 1 year ago

For a given scene, you can find it in the scene's flags. Here's an example:

"flags": {
   "polmap": {
      "visible": true,
      "gmAlpha": 0.33,
      "playerAlpha": 0.5,
      "history": {
         "events": [
            [
               {
                  "shape": 3,
                  "vertices": [
                     2200,
                     1039.2304845413264,
                     2175,
                     995.9292143521045,
                     2125,
                     995.9292143521045,
                     2100,
                     1039.2304845413264,
                     2125,
                     1082.5317547305483,
                     2175,
                     1082.5317547305483,
                     2200,
                     1039.2304845413264
                  ],
                  "x": 0,
                  "y": 0,
                  "fill": "0xffa800"
               }
            ],
            ...
         ],
         "pointer": 5
      }
   }
}

If you have your v10 world data backed up, you can find the data in worlds/<world>/data/scenes.db.

The module is not yet updated for v11, though, please see #10.