Log in

View Full Version : Bug: Token asset file names cannot contain @ symbol



Dire Weasel
October 10th, 2021, 03:22
Steps:

1) Add image file to campaign tokens folder (that doesn't contain @ symbol in file name; ie. image.png).
2) Refresh campaign token list in FGU.
- Note how image is present.
3) Rename image file name to contain @ symbol (ie. [email protected]).
4) Refresh campaign token list in FGU.
- Note how image is NOT present.

LordEntrails
October 10th, 2021, 03:46
I suspect the reply from a dev is going to come back and say that yes indeed you can not put an @ symbol in an asset name (or possible any object name). The xml for FG uses the @ symbol to differentiate between the object (NPC, token, image, etc) and the source of the object/record.

For instance, the xml of FG indicates a "goblin" from the source of "monstermanual' would be "goblin@monstermanual" So by using the @ in the object name, you are confusing FG, because in your example it is looking for the token "image" from the source ".png". Which of course means FG can't find it.

damned
October 10th, 2021, 04:07
its not a bug. Its a rule.

Dire Weasel
October 10th, 2021, 06:47
Thank you, that makes sense.

I looked at the linked help (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996640745/Using+Tokens), but it didn't mention this restriction.

damned
October 10th, 2021, 06:50
Internally thats how the modules are referenced.

token@module (or something like that)