Megasploot / Dungeondraft

a sleek tabletop encounter mapping tool for Windows 10
101 stars 4 forks source link

Asset Packs Detatch from Map, Object Array is deleted, Backups cannot be restored with object clutter #41

Open sschwarz25 opened 2 years ago

sschwarz25 commented 2 years ago

Repro Steps:

  1. Load FA (or other) Asset Packs saved to local storage
  2. Create Map (I built a single layer cave and added all the clutter and details)
  3. Add a layer (maybe, still debugging this part)
  4. Do some work in the next layer
  5. Save
  6. Check original layer - if assets unhooked from map, all objects are missing and the objects array is deleted from the map JSON (can verify in some IDE/TextEditor)
  7. Upon reopening, all objects are gone, but all terrain is still rigged in, even though the asset packs are untied. This includes the backups.
  8. Copying the Objects array from a backup and pasting it in does not fix the issue
  9. Copying the entire World object in does not fix, even with a header object from a new file with the same configs

It appears that when the JSON is loaded and iterates over the Objects array, if a path is not linked properly, it removes the object from the map JSON completely.

I am still testing this to figure out what is happening. I do not recommend building maps until this is figured out, or at least not with whatever setup I have, as it will break all maps and all backups.