vtt-lair / token-replacer

Foundry VTT - Automatically replace NPC actor tokens and/or portraits dependent on token assets saved in a defined folder structure
MIT License
5 stars 4 forks source link

Question: How does the token-replacer handle x/y CR? #62

Closed Waldleufer closed 3 years ago

Waldleufer commented 3 years ago

My Folders are prenamed CR_1⁄4 ... but that doesn't seem to work quite.

I wasn't able to find out what folder name to use instead, as / is not supported in folder names.

Thank you in advance! Waldleufer

Waldleufer commented 3 years ago

comparing my setup

Screenshot 2021-04-02 184432

with your setup (shown by you in #59 )

I would assume that

1/2 = 0_5
1/4 = 0_25
1/8 = 0_125

if I'm not mistaken? ;)

Waldleufer commented 3 years ago

So I went ahead and changed the 1/2 to 0_5 and so on and that solved the issue. Maybe you could put that information somewhere in the FAQ or README.md 😄

Great Module! Thank you for your effort in putting it together 👍

vtt-lair commented 3 years ago

@Waldleufer, sorry for taking so long in getting back to you (time zones) and glad you were able to figure out the naming convention.

I'm assuming you are using FA's tokens... I'm actually not sure how they named their folders using "/", as in Windows that's not allowed for folder names. The reason I'm using 0_5, 0_25 and 0_125 (other than the Windows name conventions) is because that's the way the values are saved on the actor's data.

I'll add it to the README.md for better clarity, thanks for the suggestion.