earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Cannot read property 'compendiumList' of undefined on Foundry 0.8.6 #76

Closed p4535992 closed 3 years ago

p4535992 commented 3 years ago

Environment Details

Foundry VTT Version: 0.8.6

Operating System: [Linux]

How Are You Using Foundry: [Linux,Native Application (Electron), Chrome]

Which Game System: Dungeons and Dragons 5th Edition, version 1.3.3

Modules Enabled?: Yes

Module version: 2.3.1

OS, Hosting, Browser (if applicable): Linux/Node/Chrome

Description of the issue:

alt

earlSt1 commented 3 years ago

Thanks for the detailed info! Can you also send your compendium folders Export string (found in module settings > Import/Export dialog).

p4535992 commented 3 years ago

Here the export https://pastebin.com/embed_js/GG8gmmX3, P.S. i have a lot of modules so is probably some collision

earlSt1 commented 3 years ago

So compendium folders adds 2 special folders to the list. hidden and default. Anything you Hide from GM goes to the hidden folder, and any new compendiums are added to the default folder.

Somehow, for some reason, you have a hidden folder but not a default folder. Not sure how thats possible since I add both of these whenever you first launch the module, but if you import this string it will add the default folder back in and you shouldn't get that error any more:

{"cfolder_3dwy8p76zur":{"titleText":"Actor","colorText":"#000000","compendiumList":["baileywiki-maps.actors","SupplementalBestiary.bestiary","plutonium.creatures","cycle-of-cerberus.npcs","dnd5e.monsters","koboldpressogl.koboldpressmonsters","dnd5e.heroes","Summoner.Summoner","trigger-happy.actors"],"folderList":[],"_id":"cfolder_3dwy8p76zur"},"cfolder_l6cczarsjob":{"titleText":"Item","colorText":"#000000","compendiumList":["dnd5e.classfeatures","SupersHomebrewPack.class-features","dnd5e.classes","SupersHomebrewPack.classes","cycle-of-cerberus.items","SupersHomebrewPack.feats","dnd5e.items","SupersHomebrewPack.items","plutonium.items","free-loot-tavern-compendium.free-loot-tavern-variant-compendium","free-loot-tavern-compendium.free-loot-taverns-magic-item-vault","dnd5e.monsterfeatures","koboldpressogl.koboldpressspells","itemcollection.packs","dae.premadeitems","SupersHomebrewPack.races","dnd5e.races","dnd5e.spells","SupersHomebrewPack.spells","plutonium.spells","dnd5e.tradegoods"],"folderList":[],"_id":"cfolder_l6cczarsjob"},"cfolder_lnfrqtn4tg":{"titleText":"JournalEntry","colorText":"#000000","compendiumList":["baileywiki-maps.journals","combat-utility-belt.conditionsdnd5e","SupersHomebrewPack.conditions","cycle-of-cerberus.journal","fa-dm-screen.fa-dm-screen-toc","tomcartos-ostenwold.journal","dnd5e.rules","smip-compendium.sane-magical-item-prices","better-rolltables.brt-gen","trigger-happy.journals"],"folderList":[],"_id":"cfolder_lnfrqtn4tg"},"cfolder_2ino5243tw4":{"titleText":"Macro","colorText":"#000000","compendiumList":["furnace.macros","condition-automation.macros","DancingLights.dancinglights-macros","healthEstimate.deathmacro","foundry_community_macros.community-macros-actor","foundry_community_macros.community-macros-item","foundry_community_macros.community-macros-misc","foundry_community_macros.community-macros-module-specific","foundry_community_macros.community-macros-roll","foundry_community_macros.community-macros-token","narrator-tools.narrator-macros","dae.sample-macros","tokenmagic.tmMacros"],"folderList":[],"_id":"cfolder_2ino5243tw4"},"cfolder_2zabqw57nw5":{"titleText":"Playlist","colorText":"#000000","compendiumList":["cycle-of-cerberus.music","tabletop-rpg-music.tabletop-rpg-music"],"folderList":[],"_id":"cfolder_2zabqw57nw5"},"cfolder_51e1xah7jgp":{"titleText":"RollTable","colorText":"#000000","compendiumList":["1000-fish.1000-fish","token-mold.adjectives","better-rolltables.brt-loot","better-rolltables.brt-story","SupersHomebrewPack.tables"],"folderList":[],"_id":"cfolder_51e1xah7jgp"},"cfolder_6rwkvikqlpl":{"titleText":"Scene","colorText":"#000000","compendiumList":["baileywiki-maps.maps","cycle-of-cerberus.scenes","dww-battlemaps.dww-maps-v1","ec-maps-remake-by-lios.ec-remake-by-lios-b1","ec-maps-remake-by-lios.ec-remake-by-lios-b2","mikwewa-free.maps","mikwewa-free.shops","miskasmaps.miskasmaps-battlemaps-starter","miskasmaps-starter.miskasmaps-battlemaps-starter","tomcartos-ostenwold.maps","foundry-drmapzo-free.scenes","spellarena.spellarena","tacticalmap-free.maps"],"folderList":[],"_id":"cfolder_6rwkvikqlpl"},"hidden":{"compendiumList":[],"titleText":"hidden-compendiums"},"default":{"compendiumList":[],"titleText":"Default","_id":"default","colorText":"#000000"}}
p4535992 commented 3 years ago

It's worked! Not sure about the cause , maybe the migration from a 0.7.9 world to a 0.8.6 ? Anyway ty for the solution.