PDA

View Full Version : Map editor folder glitch



mmdestiny
June 1st, 2025, 03:12
Hello,
I've encountered a glitch in the map editor that is causing me great anxiety because if I don't handle it properly I may lose hours of work.
I created a new folder, then moved a couple of layers into (2FX, one paint). Then, I created another folder and moved 4 text layers into that. I then went to rename the second folder.
The second that I did so, all 4 text layers became blank. Tried to undo, but this caused the text layers to disappear. Then suddenly, a mysterious copy of my main image layer, another image layer, and my paint layer magically teleported into this bugged folder. Even weirder, these two images and paint layers in the folder are not independent objects, they seem to be linked to the image layers that still exist at the lowest level of the layer manager - clicking the eyeball on one hides both, clicking the lock on one locks both...and unfortunately deleting one deletes both. I can't ignore this, because being in this glitched folder inextricably messes with my layer order visibility.

Please help! :dead:

mmdestiny
June 1st, 2025, 03:35
And just to clarify, I've tried duplicating the layers in question, and doing so creates TWO copies (that are also weirdly linked together), one in and one outside the folder. Also, if the weird layers in the folder are moved OUT of the folder, both copies immediately vanish.

It appears to be some sort of glitching in the parenting/id'ing of the folder, as I notice it is indented...but it has no parent. No idea what could have caused that just by undoing a step.

pindercarl
June 1st, 2025, 12:59
Attach a copy of the db.xml and let me know the name of the image that is being affected.

mmdestiny
June 1st, 2025, 13:26
Attach a copy of the db.xml and let me know the name of the image that is being affected.

Ok so I have to apologize, I was luckily able to find a restore point and in my haste deleted the corrupt campaign folder, but I was able to partially recreate the problem by following the same steps (after crashing Fantasy Grounds a few times...clearly there is SOMETHING it doesn't like when undoing folder nesting).

This recreated bug isn't quite as severe, because the afflicted folder can be unnested without the contents being destroyed like the first time, but at least it has the weird layer mirroring (this time it mirrored the second folder and its contents, not the 3 layers that had no folder like the first time).

Search for "campaign/images/QE A3 S2 map overhead.jpg". I opened the db in N++ and confirmed there is only one instance of that image in the db so that should be your starting point, it'll get you to the right map id in the file. Within that are the folders in question, and the affected duped layers were Painting Layer, a Water FX, and a Clouds FX. (Note that in the hierarchy, "campaign/images/QE A3 S2 map overhead.jpg" had been renamed "STAGE 1" so you may see that too.)

I've attached a screenshot of what I see in the layer manager. Again, it's not QUITE as weird as last night (the folder isn't mysteriously indented as if it was nested into nothing) but you can see the layer mirroring. Notice the double highlight on Painting Layer.)

pindercarl
June 1st, 2025, 14:10
Ok so I have to apologize, I was luckily able to find a restore point and in my haste deleted the corrupt campaign folder, but I was able to partially recreate the problem by following the same steps (after crashing Fantasy Grounds a few times...clearly there is SOMETHING it doesn't like when undoing folder nesting).

This recreated bug isn't quite as severe, because the afflicted folder can be unnested without the contents being destroyed like the first time, but at least it has the weird layer mirroring (this time it mirrored the second folder and its contents, not the 3 layers that had no folder like the first time).

Search for "campaign/images/QE A3 S2 map overhead.jpg". I opened the db in N++ and confirmed there is only one instance of that image in the db so that should be your starting point, it'll get you to the right map id in the file. Within that are the folders in question, and the affected duped layers were Painting Layer, a Water FX, and a Clouds FX. (Note that in the hierarchy, "campaign/images/QE A3 S2 map overhead.jpg" had been renamed "STAGE 1" so you may see that too.)

I've attached a screenshot of what I see in the layer manager. Again, it's not QUITE as weird as last night (the folder isn't mysteriously indented as if it was nested into nothing) but you can see the layer mirroring. Notice the double highlight on Painting Layer.)

Thanks for the file, I'll look into the nested folder issue. Were you able to recover the image from your restore point?

mmdestiny
June 1st, 2025, 15:31
Thanks for the file, I'll look into the nested folder issue. Were you able to recover the image from your restore point?

Yeah, fortunately the only thing I had to redo was about 15 minutes of redrawing the painting layer.

pindercarl
June 8th, 2025, 17:09
Yeah, fortunately the only thing I had to redo was about 15 minutes of redrawing the painting layer.

I wasn't able to recreate the error using the steps provided, but I was able to uncover a related issue after deleting folders wherein the hierarchy gets mixed up. This cause new layers to have a child that was itself. I suspect your image had some deleted folders. I fix has been committed and should be available in the next update of the client.

mmdestiny
June 14th, 2025, 20:23
I wasn't able to recreate the error using the steps provided, but I was able to uncover a related issue after deleting folders wherein the hierarchy gets mixed up. This cause new layers to have a child that was itself. I suspect your image had some deleted folders. I fix has been committed and should be available in the next update of the client.

Thanks for the update. That sounds about right, the common thread was folders and these mirrored layers.

Moon Wizard
June 24th, 2025, 21:45
Carl provided a fix for this issue in the latest v4.7.3 release. Please run a new Check for Updates.

Regards,
JPG