Log in

View Full Version : CoreRPG - Create From Campaign Assets



sedgetone
February 19th, 2023, 08:21
Hi,

Win10
CoreRPG 2022-11-15

1. I created a map in another ruleset - AFF - and exported the XML from the FGU image editor via the right-click "Export Metadata" option.
2. Created a CoreRPG campaign and put the jpg and xml in the campaign images folder.
3. Relaunched FGU and in the CoreRPG campaign, went to images and did "Create From Campaign Assets". The record is created but the XML is ignored.

Find attached the example image and sidecar XML:
images.zip (https://www.dropbox.com/s/zk065p8q2xu0pdp/images.zip?dl=0)

Laerun
February 19th, 2023, 13:07
I do not believe that the XML is included into the assets import function, it's likely to only apply to images.Generally one exports the work as a module when the work is completed and loads the module in another ruleset. You might have to edit the XML to say "All" in the module data if it is only maps and images and los data. Usually CoreRPG is compatible with most anything in regards to images. You will need to add the XML file into the same directory as the map image of if applicable, otherwise export as a module.

Moon Wizard
February 19th, 2023, 17:57
Did you try dragging the campaign image asset directly to the Images list to create the record? (i.e. not the Create From Campaign Assets)

Regards,
JPG

sedgetone
February 21st, 2023, 08:37
Did you try dragging the campaign image asset directly to the Images list to create the record? (i.e. not the Create From Campaign Assets)

Tried that, unfortunately no joy.

The XML doesn't seem to hold any ruleset specific naming. Am I missing the point on how the XML is meant to work? I thought that if FGU found a sidecar XML named the same as the image file, it would import that info? There doesn't seem to be an import function within the image editor, only the ability to export data.

Zacchaeus
February 21st, 2023, 08:57
I placed your image and xml file in the top level images folder; started a new CoreRPG campaign. Opened assets > Data clicked on the image and clicked on Create Image record and the image was added correctly to the campaign along with lighting and line of sight. I also tried this from the images folder inside the campaign. I also tried the same with a 5e campaign and each time the image was added to the campaign along with the line of sight and lighting.

If I used Import Files however the xml file didn't come along with the image; nor did the LoS get added if I used Create from Campaign assets. So it would seem that importing or creating from campaign assets doesn't add in the LoS or lighting. It's only when adding the file to campaign data via Assets > Images > Campaign or > Data and then preview image and Create Image record.

damned
February 21st, 2023, 11:16
Nice work wee bairn!

Moon Wizard
February 21st, 2023, 17:48
Thanks for the info. I'm going to see if I can update the API which the Import Files button uses, so that it looks for an adjacent .xml as well. (Interface.addImageFile)

Regards,
JPG

sedgetone
February 21st, 2023, 20:07
Thank you all!