5e-Framework icon indicating copy to clipboard operation
5e-Framework copied to clipboard

Export Compendium does not produce json file.

Open Charlweed opened this issue 1 year ago • 1 comments

Describe the bug Export Compendium does not produce json file. It prints an error to the console.

To Reproduce Steps to reproduce the behavior:

  1. Select"Settings" from the GM menu.
  2. In the "Compendium" section, click "Export Compendium"
  3. Fill in a directory path ("R:"), then a filename ("compendium_exported").
  4. Click Ok.
  5. See error

   Error in body of roll.       Statement options (if any): h       Statement Body : exportData(path+"/"+name+".json",jsonExport,0) Error trace : Json Export All@Lib:Campaign <<< macroLink

Expected behavior I expect the json file to appear in the specified directory.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Maptool Version 1.11.5
  • Framework Version 2.5.7

Additional context Add any other context about the problem here.

Charlweed avatar Nov 20 '22 19:11 Charlweed

I'm happy to say that this is probably an invalid bug. This issue occurs because the Allow External Macro Access option in MapTool's Preferences must be enabled or the "exportData" function aborts with an error. See exportData() docs. I've written a short how-to that could be included on a wiki page here.

Charlweed avatar Nov 24 '22 23:11 Charlweed