You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just lost 5+ hours' worth of work because of this.
Create a scene, name it "test 1" and draw something to it with Dungeon Draw
Duplicate the scene and rename the duplicate as "test 2"
Edit the new "test 2" scene (remove stuff, add new stuff etc.)
Observe the original "test 1" scene
I'd assume the original scene would be left intact and the modifications would only affect the new scene. Everything else (tiles, tokens etc.) work this way.
The text was updated successfully, but these errors were encountered:
Dungeon Draw currently stores its JSON data in a Journal document in the Foundry database, and that Journal is tied to the scene (it's actually visible in the upper left of the scene). Usually when you create a new scene and start a new dungeon drawing, that causes a new Journal document to be created.
It sounds like duplicating a scene is keeping the original Journal document from the original scene, and instead now both scenes are using the same Journal... so dungeon draw edits on either are changing the same data. Boo.
I can think of a couple ways to address this, but I'll have to dig a bit into Foundry to understand which would be better.
One would be switching to flags on the scene to store the JSON data, rather than using a Journal document. For this I'd have to check how scene duplication handles flags (does it make a new copy?), and also would need to provide some sort of migration from existing Journal documents to a newer flag-on-scene storage.
The other would be to pay attention to scene duplication (I'm assuming there's a Foundry hook for that), and use the hook to also duplicate the Journal document and link that to the new duplicate scene.
For information I also encountered this. Fortunately I hadn't made too many changes before I noticed and guessed the cause. Now I create Dungeondraw scenes from scratch which of course avoids the problem.
Just lost 5+ hours' worth of work because of this.
I'd assume the original scene would be left intact and the modifications would only affect the new scene. Everything else (tiles, tokens etc.) work this way.
The text was updated successfully, but these errors were encountered: