Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Compendium does not produce json file. #57

Open
Charlweed opened this issue Nov 20, 2022 · 1 comment
Open

Export Compendium does not produce json file. #57

Charlweed opened this issue Nov 20, 2022 · 1 comment

Comments

@Charlweed
Copy link

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
Copy link
Author

Charlweed commented Nov 24, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant