mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

Using Polyglot in Journal Entries Impossible #262

Closed KnoepfchenFulla closed 2 years ago

KnoepfchenFulla commented 2 years ago

I am unable to use Polyglot in Journal Entries since updating to V10.

In the default sheet configuration, Polyglot no longer appears in the drop down menu at all:

2022-10-01_12-31-23

When I change the sheet to TinyMCE, Polyglot appears, but is greyed out:

2022-10-01_12-31-51

Game System and version

mclemente commented 2 years ago

I can't reproduce this on a brand new world. Can you send me your world's settings.db? It should be on your world's folder/data folder.

KnoepfchenFulla commented 2 years ago

I use The Forge, here's the settings.db from the world export (zipped to be able to attach it here). settings.zip

mclemente commented 2 years ago

Hm, it still works for me. Are there any errors on the Console (F12) when opening the editor?

KnoepfchenFulla commented 2 years ago

I deactivated and reactivated Polyglot, these are the errors that I get in the Console:

2022-10-02_21-33-45

mclemente commented 2 years ago

Activate the DSA5 Core Rules module. Any other errors? Also, I just pushed an update to Polyglot. Try updating to 1.8.4.2 and see if the problem persists.

KnoepfchenFulla commented 2 years ago

Hm, that's strange, the DSA5 Core Rules module was active when I took the screenshot yesterday. I just updated Polyglot, and the problem's still there, with just one change in the first row:

LanguageProvider.js:1218 Uncaught (in promise) TypeError: Cannot read

It does not seem to be the core module itself, but the core special abilities?

        if (game.modules.has("dsa5-core") && game.modules.get("dsa5-core")?.active) {
            const dsa5Pack = game.packs.get("dsa5-core.corespecialabilites");
            const dsa5ItemList = await dsa5Pack.getIndex();

I also tried switching the language of my world from German to English to see if there might be an issue there (as "special abilities" are "sonderfertigkeiten" in German and the system has been known to get confused with such terminology differences between languages), but the issue with Polyglot is still the same in English as well.

KnoepfchenFulla commented 2 years ago

Hey, I installed the latest update just now (where you changed the line), but the error still presents the same:

2022-10-03_12-44-01

mclemente commented 2 years ago

The id for the compendium with languages was changed from V9 to V10. I don't own the Core Rules, so I can't test stuff for DSA5. I asked the dev and they said that's the new name of the compendium. If you enter game.packs.get("dsa5-core.coreabilities") in the console, does it return anything other than undefined? Also, could you copy-paste the result of game.modules.get("dsa5-core").packs?

mclemente commented 2 years ago

Just spoke with Huepfklotz, there was a typo on that compendium's id. Be sure to update it and the error should be gone.