mclemente / fvtt-module-polyglot

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

All languages show as [object Object] #346

Closed Zefarch closed 5 months ago

Zefarch commented 5 months ago

Instead of showing the font when you use a foreign language, it will just say [object Object]. Text below for native speakers is still translated.

image

demotech89 commented 5 months ago

I came here to post this bug as well. It is doing in it in the PF2e system as well.

GM sees this:

GM

Players only see this.

player
mclemente commented 5 months ago

Any list of other modules that enhance chat that you're currently running? I'm not getting issues when running without any modules.

Zefarch commented 5 months ago

It still presents the same problem with no other modules enabled for me.

demotech89 commented 5 months ago

Same here, I deactivated every single module except for Polygot, and still says object, Object. Attached is a picture of all modules turned off with what the GM sees and the Player sees in a different browser.

polygot

mclemente commented 5 months ago

Can you check your Font Settings? There has been an update 15 days ago, but this is the first time I'm hearing about any issues.

Also, which browser are you twow using?

demotech89 commented 5 months ago

I can check. Anything in particular you would like to know about font settings?

demotech89 commented 5 months ago
Untitled Untitled

Nothing in the settings looks out of place.

mclemente commented 5 months ago

I can check. Anything in particular you would like to know about font settings?

Just opening, checking everything is in order, and then saving them. But that issue should've popped up on the previous version (2.3.20), not the new one.

Maybe check if the issue is present on 2.3.20? The latest changes shouldn't be breaking on any browser.

fhavrlent commented 5 months ago

I'm having the same issue since yesterday. All other mods turned off, running Edge 120.0.2210.133.

image
mclemente commented 5 months ago

Could any of you test if the issue is present on a new world? Might be some misconfiguration from an update, but I'm still clueless since none of the new changes should've affected the output.

If it isn't present on a new world, try resetting the Font/Language settings to default.

fhavrlent commented 5 months ago

New world, Pathfinder 2e system

image

Same on DnD 5e

image
wealthbeyondmeasure commented 5 months ago

Also having the same issue. The console shows the following issue whenever we try to use a language:

mmons.js:2070 Error: CreatureSystemData#traits#languages is deprecated. Use CreatureSystemData#details#languages instead.

Deprecated since Version 5.12.0

Backwards-compatible support will be removed in Version 6.0.0

` at Object.logCompatibilityWarning (commons.js:2059:19)

at Object.get (pf2e.mjs:1645:84971)

at pf2eLanguageProvider.getUserLanguages (pf2e.js:227:28)

at Polyglot.getUserLanguages (logic.js:184:65)

at Polyglot.updateUserLanguages (logic.js:199:56)

at Object.controlToken [as fn] (hooks.js:32:17)

at #call (foundry.js:730:20)

at Hooks.callAll (foundry.js:687:17)

at TokenPF2e.control (foundry.js:28654:11)

at TokenPF2e._onClickLeft (foundry.js:29042:15)

at TokenPF2e._onClickLeft (foundry.js:56254:11)

at MouseInteractionManager.callback (foundry.js:31766:17)

at #handleClickLeft (foundry.js:31954:15)

at #handleMouseDown (foundry.js:31939:38)

at Na.notifyListeners (earcut.js:128:75)

at Na.notifyTarget (earcut.js:128:75)

at Na.propagate (earcut.js:128:75)

at Na.dispatchEvent (earcut.js:128:75)

at Na.mapPointerDown (earcut.js:128:75)

at Na.mapEvent (earcut.js:128:75)

at yn.onPointerDown (earcut.js:128:75)

l`

RavenknightDM commented 5 months ago

Tested with a new world (Warhammer Fantasy 4e system) and the problem is there with no other mods enabled.

mclemente commented 5 months ago

Update to 2.3.22 and let me know if any of you still run into this issue.

Aeristoka commented 5 months ago

Looks better here on 2.3.22 @mclemente

fhavrlent commented 5 months ago

Seems to be working 👍

wealthbeyondmeasure commented 5 months ago

Update to 2.3.22 and let me know if any of you still run into this issue.

Seems sorted now. Thanks for the speedy fix!

RavenknightDM commented 5 months ago

Thank you!