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

Bug regarding Polyglot and PF2E. #300

Closed GorodZolotoy closed 1 year ago

GorodZolotoy commented 1 year ago

Enabling polyglot using the PF2e system doesn't work as it only displays Ar Ciela texts. No languages show up in the language settings.

bugreport
mclemente commented 1 year ago

Should be fixed now.

lyao6104 commented 1 year ago

The fix for this seems to still throw an error on startup in PF2e 5.3.0 running on Foundry V11 307 (specifically, in the settings menu the language column is still empty, but has default values set):

Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'rng')
[Detected 1 package: polyglot]
    at pf2eLanguageProvider.getLanguages (LanguageProvider.js:2663:34)
    at setupSteps (LanguageProvider.js:278:15)
    at pf2eLanguageProvider.setup (LanguageProvider.js:309:10)
    at Object.fn (polyglot.js:25:39)
    at #call (foundry.js:730:20)
    at Hooks.callAll (foundry.js:687:17)
    at Game.setupGame (foundry.js:8632:11)
    at async Game._initializeGameView (foundry.js:9908:5)

The F12 debug menu seems to think this line is causing problems: image

mclemente commented 1 year ago

Sorry about that. It should be fixed now on v2.0.2