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

Custom Languages do not appear in OOC Scramble (New D&D 5E System) #364

Closed Zalakoth closed 6 months ago

Zalakoth commented 6 months ago

What happened?

Ever since I updated to the new 5E System, I am incapable of using my custom languages in OOC contexts. Mind you, they still function on a character but they do not function when I am trying to post something in that language to my chat. The language simply does not appear.

Reproduction Steps

Screenshot 2024-03-08 at 7 17 11 PM Screenshot 2024-03-08 at 7 18 18 PM Screenshot 2024-03-08 at 7 18 35 PM

No matter what I tried, simply adding adding a custom language is enough to recreate this effect (or lack thereof.) As seen in the example here, Akeskian should show up, but it does not. It does show up, but only when a character is under my control (which has not been necessary, historically)

Which game system, and which version, are you using?

dnd5e 3.0.4

Which Polyglot version are you using?

2.4.3

mclemente commented 6 months ago

Do you have any errors on the console? I couldn't replicate this. I copied your settings and it just worked. Can you replicate this on a brand new world?

Zalakoth commented 6 months ago

I get the following error

Caught (in promise) TypeError: undefined. Cannot create property 'alphabeticOnly' on string '130% Thorass' [Detected 1 package: polyglot] at dnd5eLanguageProvider.loadFonts (Base.js:400:36) at setupSteps (Base.js:291:9) at async dnd5eLanguageProvider.setup (Base.js:310:4) at async Object.fn (polyglot.js:42:2)

(An image of the console below, pertaining to Polyglot)

Screenshot 2024-03-09 at 8 09 54 AM

The languages do appear when I create a new world. Strange. Still no matter what troubleshooting I do for my pre-existing game, the languages do not show up.

mclemente commented 6 months ago

Go into Polyglot's Font Settings and try just saving without changing anything, then reload.

If that doesn't fix it, consider resetting the Font Settings to defaults instead. Be sure to make a backup of its data if you had modified it previously. Inputting game.settings.get("polyglot", "Alphabets") into the console, right-clicking the output and selecting Copy Object, and then pasting it on a notepad would be enough to back it up.

Zalakoth commented 6 months ago

Resetting the font settings fixed my problem, thank you!