Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token-Images on world mosters not updated, not case-sensitive? #519

Open
xenexelen opened this issue Nov 9, 2024 · 1 comment
Open

Token-Images on world mosters not updated, not case-sensitive? #519

xenexelen opened this issue Nov 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xenexelen
Copy link

xenexelen commented Nov 9, 2024

I imported the adventure in a campaign (Dungeon of the Mad Mage) a long time ago and recently copied the campaign to a new server directory. Although I re-imported the monsters and also selected “Update world monsters”, the (correct) token images are missing on the map (Is only the image updated, but not the token image?).

image

I have re-imported both without and with “Media Optimizer” activated, in each case a webp file is stored as the icon, which has not been changed. Unfortunately, the file name is not quite correct and is not corrected: the name is not correct on a Linux system (case sensitive) and would only be correct on a Windows system (not case sensitive).

For example, “ddb-images/other/npc-token-Xorn.webp” is stored, but the correct build would be “ddb-images/other/npc-token-xorn.webp”.

image

(The image, but not the token-icon, is correct.)

image

(The directory contains the file in lower case, but Linux is case-sensitive)

I don't know if the ddbimporter doesn't correct the paths or is not case sensitive, but it would be nice if you didn't have to change all links or files manually (the Dungeon of the Mad Mage is not exactly small)...

Environment:

  • Browser: current versions of Chrome, Edge and Firefox
  • Foundry Version: 12.331
  • 5e System Version: 3.3.1
  • Module Version: 5.2.38 (Due to module dependencies to e.g. Caultron of Everything)
  • Does this behaviour occur with other modules disabled: Yes and No (Import originally with Media Optimizer, but even without it the token image is not changed)
@xenexelen xenexelen added the bug Something isn't working label Nov 9, 2024
@MrPrimate
Copy link
Owner

Please note that Updating World Actors updates the world actor, not the token on the scene. Tokens have their own image references for portrait and tokens.

You would need to write a script to loop through all your scenes and update the placed token images with the world one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants