Closed Avera9eJoe closed 2 years ago
A quick fix that I did for this bug: I've created a folder and an empty file in "\FoundryData\Data\modules\world-scripter\packs\wsMacros.db"
I wanted to share my world-script with all my worlds automatically, so I created the file in the module instead of the worlds folder: "yourWorld\packs\wsMacros.db".
Be careful about storing data inside a module folder, as it will get wiped on update.
This bug has been chased for multiple versions now 😅 . I'll get it addressed for v10.
The intention is for the module to automatically create a world compendium if it doesn't exist.
Yes thank you, great advice.
I've set no update for now.
Would be great if we can have a shared db. One per world and one to share between all worlds!
😇
On Mon., Aug. 22, 2022, 18:42 trioderegion, @.***> wrote:
Be careful about storing data inside a module folder, as it will get wiped on update.
This bug has been chased for multiple versions now 😅 . I'll get it addressed for v10.
The intention is for the module to automatically create a world compendium if it doesn't exist.
— Reply to this email directly, view it on GitHub https://github.com/Kekilla0/World-Scripter/issues/7#issuecomment-1223275126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXUDRP4OZMF27KXRDZ6COLDV2P65NANCNFSM563ASCHA . You are receiving this because you commented.Message ID: @.***>
Ah gotcha! So it's something known 👍
In the meantime what I did was creat a custom json file (worldscripts.js) inside of my world folder, and then I added the filename to the "scripts" line inside the world's json file. To make world scripts I just add the macros to that file
I am getting a debug error when attempting to add a macro to the world scripter compendium:
Steps to reproduce: