Aedif / TokenVariants

GNU General Public License v3.0
17 stars 12 forks source link

TokenVariants put into a weird state #121

Closed kevinb0 closed 10 months ago

kevinb0 commented 11 months ago

I somehow put TokenVariants into a weird state. When I press "Configure" for global effect configurations, I get this error image

I think it was because I was putting \n in the text field and it caused some sort of parsing error. This is with version 4.48.0 of TokenVariants.

Attached is my exported token-variants-settings.zip

kevinb0 commented 11 months ago

worth noting that the local actor mappings menu pops up fine, but whenever I try to go to the "global" section, this error happens.

Aedif commented 11 months ago

Run this in the console: game.modules.get("token-variants").api.TVA_CONFIG.globalMappings = game.modules.get("token-variants").api.TVA_CONFIG.globalMappings.filter(Boolean)

and then open TVA Configure Settings and save them.

Another user reported something like this happening but it shouldn't be related to the use of \n in the text fields. I'll look into this.

kevinb0 commented 11 months ago

I can confirm running that removes the error and allows me to open the global settings menu again. Thanks!

Aedif commented 10 months ago

Should be resolved in: https://github.com/Aedif/TokenVariants/releases/tag/4.50.0

Report the issue again if not