Aedif / TokenVariants

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

Question about the token HUD button #102

Closed Nedrapter closed 1 year ago

Nedrapter commented 1 year ago

My players have loaded their tokens in Forge Library Assets and set the path. On left clicking on the HUD button shows only the current token, like this image But if they right click and search the icons, they do appear in a grid. image

Is that normal? I thought they left click should be showing all tokens they have in that folder?

Aedif commented 1 year ago

The module searches using the token's name and places the found images in that grid.

Are you telling me that these images do not show up when your players click on the button, but do when they right-click it and perform the search using the token's name manually? Or are they performing different searches?

Nedrapter commented 1 year ago

Those tokens do not show when they left click on the button. Only the one used shows (as shown in 1st image). They only show up if they are searched.

Aedif commented 1 year ago

I'm testing it right now and it works for me. Can you tell me what the token name is, and what they type into the search? Token name being what you see on the Token Config form: image

Nedrapter commented 1 year ago

They type "icon" since all of them are named Icon + something else e.g. "Icon Crow" to have them all show up. Could it be some wrong configuration on my/their part?

Nedrapter commented 1 year ago

We're trying with a test token currently, so the name is just some nonsense, like this image Why does the token name matter though?

Aedif commented 1 year ago

By default the Token HUD only includes images that the module could find using the token's name. If for example your players Token is named "Alexander" the module will perform the search using "Alexander" and only return the images that match it.

What I assume is happening is that yoiur players token name does not match any of those images, but they do match the search "icon".

Nedrapter commented 1 year ago

Ah I see. I did not know it has to match. Does it have to match 100%? Meaning all variant tokens have to be the exact same name?

Nedrapter commented 1 year ago

Okay so I changed 3-4 of them to match the token's name. Now 1 of them appears, but not the rest. image What could be happening now?

Aedif commented 1 year ago

Depends on the search algorithm you're using. The fuzzy algorith does not require exact matches.

I'd suggest that your players place their images in a folder named after their character and then you'll need to enable the Match name to folder setting.

image

Nedrapter commented 1 year ago

Thanks, now it works properly! So many settings to be aware of ... :D