Kekilla0 / World-Scripter

Allow you to write a script in game which executes as if it was a world script.
MIT License
3 stars 1 forks source link

Debug error: "World Scripter script pack missing" #7

Closed Avera9eJoe closed 2 years ago

Avera9eJoe commented 2 years ago

I am getting a debug error when attempting to add a macro to the world scripter compendium: image image image

Steps to reproduce:

  1. Create macro
  2. Right click --> 'Add to World Scripter Compendium'
  3. Observe the debug error
davelacorneille commented 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".

trioderegion commented 2 years ago

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.

davelacorneille commented 2 years ago

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: @.***>

Avera9eJoe commented 2 years ago

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