PDA

View Full Version : XML Does Not Export w/ Assets For Multi-Layer Images



LordEntrails
April 23rd, 2024, 04:58
So when creating a module, images (maps) that have multiple image layers to them do not export the same as images/maps that only have a single image layer.

See attached module to duplicate.

Create a new CoreRPG campaign
Create a new blank image/map
Browse Assets to Test Image XML
One at a time drag the 3 images to your new image/map.
Notice that only "Devil Shrine" layer has LOS on it.
Open the 2 Image/Maps from the module

note that "000single layer" has "Devil Shrine" image in it.
note that "ooodouble layer" has the other two images in it as layers and one has LOS


This simulates having a player and DM layer on a single map.

Note, if the image/maps are created from non-campaign assets (i.e. maps from other sources) when creating the development campaign for exporting to a module, this behavior does not seem to occur. It only occurs when campaign asset images are used.

Moon Wizard
April 23rd, 2024, 05:06
That's correct. Because the image record is multi-layer, the export does not know which image should receive the metadata.

To output metadata as well, you can right click on the image data panel Layers area, and select export meta-data. This will export the meta-data (LoS/lights/grid) for that whole image record, and you can place alongside the graphic you would like it associated with.

Regards,
JPG

LordEntrails
April 23rd, 2024, 05:20
Ok... I get it since layers can be renamed from the image used to create them.

Here's what I was hoping to do...
Create my Undermountain module that has numerous (~hundreds) of images. Those that need them (have secret doors etc) have 2 layers, a player layer and a DM layer with secrets. Then when this module is used by other DMs, the intent is that they can build a player exploration map as they go. Adding the various piecemeal maps to the big one as the players explore and they will then have LOS (and lighting and FX). (I suspect adding LOS to the master map would be performance prohibitive, it is very large.)

When I export the metadata, do I put the xml file in the campaign images folder and will it get exported to the module when I create the module?

Moon Wizard
April 23rd, 2024, 07:13
Yes, it will get exported with the module, if it uses the same base file name as the picture in the same folder.

I'll look at the export routine to see if maybe I can update that in the future for "lowest layer", instead of only layer.

Regards,
JPG

LordEntrails
April 23rd, 2024, 16:51
Thanks :)

Moon Wizard
May 2nd, 2024, 18:42
I just pushed an update today that should handle this with the "lowest" layer change. Please run a new Check for Updates and try again.

Regards,
JPG

LordEntrails
May 2nd, 2024, 19:05
I just pushed an update today that should handle this with the "lowest" layer change. Please run a new Check for Updates and try again.

Regards,
JPG
Thank you!