richardgaywood / foundry-penllawen-compendium-table-maker

Other
0 stars 1 forks source link

No page created #13

Closed sigil-johnstevens closed 1 year ago

sigil-johnstevens commented 1 year ago

Great module!

Was trying to create a list of edges for Rifts.

var s = game.modules.get("penllawen-compendium-table-maker")
    .api.getCompendiumSummariser();

await s.makeNewJournalNamed("Rifts for Savage Worlds Edges");

await s.addJournalPageNamed("Rifts Edges")
  .addInputCompendium("swrifts-tlfm.swrifts-tlfm-edges")
  .addInputCompendium("swrifts-tlpg.rifts-edges")
  .addInputCompendium("swrifts-eoh.rifts-eoh-edges")
  .addInputCompendium("swrifts-bab.rifts-bab-edges")
  .addInputCompendium("swrifts-aatds.rifts-aatds-edges")
  .addInputCompendium("swrifts-aam.rifts-aam-edges")
  .addInputCompendium("swade-core-rules.swade-edges")
  .writeJournalPage();

Macro creates a journal but does not add a page. No error returned in console.

richardgaywood commented 1 year ago

Hmm, this is puzzling. Your script looks good. I don't own the Rifts modules so can't test myself.

Can you add the enableDebug() option, re-run, and send me the console output? You just need to put it after the addJournalPage command, like this:

await s.addJournalPageNamed("Rifts Edges")
  .enableDebug()
  .addInputCompendium("swrifts-tlfm.swrifts-tlfm-edges")
  .addInputCompendium("swrifts-tlpg.rifts-edges")
  .addInputCompendium("swrifts-eoh.rifts-eoh-edges")
  .addInputCompendium("swrifts-bab.rifts-bab-edges")
  .addInputCompendium("swrifts-aatds.rifts-aatds-edges")
  .addInputCompendium("swrifts-aam.rifts-aam-edges")
  .addInputCompendium("swade-core-rules.swade-edges")
  .writeJournalPage();
sigil-johnstevens commented 1 year ago

Success!

Took a very long time to make due to volume of edges, perhaps something got hung up last time.

John