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

Polyglot doesn't work with WFRP4e 7.0.0 #314

Closed Forien closed 1 year ago

Forien commented 1 year ago

Describe the bug WFRP4e 7.0.0 migrated it's compendia, which broke the Polyglot. What was wfrp4e-core.skills is now wfrp4e-core.items as described in moo-man/WFRP4e-FoundryVTT#1729

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getIndex')
    at wfrp4eLanguageProvider.getLanguages (LanguageProvider.js:3504:43)
    at setupSteps (LanguageProvider.js:282:15)
    at wfrp4eLanguageProvider.setup (LanguageProvider.js:313:10)
    at Object.fn (polyglot.js:32:39)
    at #call (foundry.js:730:20)
    at Hooks.callAll (foundry.js:687:17)
    at Game.setupGame (foundry.js:8636:11)
    at async Game._initializeGameView (foundry.js:9912:5)

To Reproduce Steps to reproduce the behavior:

  1. Launch the world with WFRP4e 7.0.0, WFRP4e Core 4.0.0 and Polyglot

Expected behavior Polyglot works

Screenshots image image

Additional context Separate bug - Polyglot breaks Journals if an Actor has Language (Battle)

mclemente commented 1 year ago

Fixed on 2.1.5.

As for the other bug, it should've been fixed on #313 earlier today.