Closed scooper4711 closed 3 years ago
I'm not sure if this is related to #38, however the same fix fixes it. However, selecting a frame from that directory and pressing apply frame does nothing.
If it helps you debug, here's a list of the files in that directory
[ec2-user@ip-172-31-60-86 user-icons]$ ls -l
total 27280
-rw-r--r-- 1 ec2-user ec2-user 62805 Jul 7 02:27 Aloha.png
-rw-r--r-- 1 ec2-user ec2-user 84737 Jul 7 02:27 Black-Sun-Portal-Purple.png
-rw-r--r-- 1 ec2-user ec2-user 66446 Jul 7 02:27 Cameo-Circle-Blue_1.png
-rw-r--r-- 1 ec2-user ec2-user 66007 Jul 7 02:27 Cameo-Circle-Blue.png
-rw-r--r-- 1 ec2-user ec2-user 63669 Jul 7 02:27 Cameo-Circle-Green.png
-rw-r--r-- 1 ec2-user ec2-user 66444 Jul 7 02:27 Cameo-Circle-Orange.png
-rw-r--r-- 1 ec2-user ec2-user 65866 Jul 7 02:27 Cameo-Circle-Pink.png
-rw-r--r-- 1 ec2-user ec2-user 64400 Jul 7 02:27 Cameo-Circle-Purple.png
-rw-r--r-- 1 ec2-user ec2-user 62644 Jul 7 02:27 Cameo-Circle-Red.png
-rw-r--r-- 1 ec2-user ec2-user 65329 Jul 7 02:27 Cameo-Circle-Yellow.png
-rw-r--r-- 1 ec2-user ec2-user 64413 Jul 7 02:27 Cameo-Squircle-Blue_1.png
-rw-r--r-- 1 ec2-user ec2-user 64383 Jul 7 02:27 Cameo-Squircle-Blue.png
-rw-r--r-- 1 ec2-user ec2-user 61772 Jul 7 02:27 Cameo-Squircle-Green.png
-rw-r--r-- 1 ec2-user ec2-user 64605 Jul 7 02:27 Cameo-Squircle-Orange.png
-rw-r--r-- 1 ec2-user ec2-user 64138 Jul 7 02:27 Cameo-Squircle-Pink.png
-rw-r--r-- 1 ec2-user ec2-user 62629 Jul 7 02:27 Cameo-Squircle-Purple.png
-rw-r--r-- 1 ec2-user ec2-user 60367 Jul 7 02:27 Cameo-Squircle-Red.png
-rw-r--r-- 1 ec2-user ec2-user 63566 Jul 7 02:27 Cameo-Squircle-Yellow.png
-rw-r--r-- 1 ec2-user ec2-user 79644 Jul 7 02:27 Card_Axes.png
-rw-r--r-- 1 ec2-user ec2-user 80269 Jul 7 02:27 Card_Blades.png
-rw-r--r-- 1 ec2-user ec2-user 80937 Jul 7 02:27 Card_Bolts.png
-rw-r--r-- 1 ec2-user ec2-user 81012 Jul 7 02:27 Card_Eyes.png
-rw-r--r-- 1 ec2-user ec2-user 78025 Jul 7 02:27 Card_Helms.png
-rw-r--r-- 1 ec2-user ec2-user 77435 Jul 7 02:27 Card_Keeps.png
-rw-r--r-- 1 ec2-user ec2-user 79106 Jul 7 02:27 Card_Leaves.png
-rw-r--r-- 1 ec2-user ec2-user 79878 Jul 7 02:27 Card_Lutes.png
Thanks for the detailed info - what version of Tokenizer are you using?
Can you try changing the function to:
static titleString (text) {
const words = text.trim().split(" ");
console.log(`Splitting "${text}"`);
console.log(words);
for (let i = 0; i < words.length; i++) {
if (words[i][0] && (i == 0 || !SKIPPING_WORDS.includes(words[i]))) {
words[i] = words[i][0].toUpperCase() + words[i].substr(1);
}
}
return words.join(" ");
}
And upload the results that appear in the console so we can try to narrow down the cause?
I'm using version 3.2.1
The updated function allows the UI to open, but the "apply frame" button still does nothing.
I notice that the file name is Black-Sun-Portal-Purple.png
but the corresponding log text has replaced the - with spaces:
Splitting "Black Sun Portal Purple.png"
utils.js:197 (4) ["Black", "Sun", "Portal", "Purple.png"]
For what it's worth, I'm using this token set: https://www.drivethrurpg.com/product/283063/Character-Token-Portrait-Frames-for-VTT
I updated to 3.2.5 and this is no longer an issue. Apologies - I thought I was on the latest version.
I've set the Directory for Custom Token Frames to various settings, including: