PDA

View Full Version : Bitmapwidget shifting error



mattekure
March 17th, 2025, 19:20
In one of the extensions I developed, I use a bitmapwidget applied to tokens on a map to indicate that it is being targeted by the currently active token. Recently I have had several reports of odd situations where the bitmapwidget seems to get shifted.

I was able to confirm the issue that can be demonstrated simply, but I do not think the issue is caused by the extension code and have been unable to find anything in the ruleset code that I thought could affect it. To demonstrate it, I stripped out most of the extension, leaving only the very basic functionality of drawing the targeting indicator. All code related to damage/healing has been removed from the test extension. I have attached the test extension and campaign files

Steps to reproduce
Open the campaign
Open the map and charsheet for the PC
verify the targeting indicator is being drawn on the NPC when the PC has initiative
Apply damage to the targeted NPC on the map from the PC.
The graphic should shift.

I have recorded this behavior in this video.

InYyLJw2de0

Moon Wizard
March 18th, 2025, 00:01
That is an odd one. Thanks for the reproduceable test case. I've forwarded to Carl, since this seems to be specifically related to image token widgets.

In the mean time, when attempting to streamline the extension to see if I could narrow further, I created an alternate version that appears to not have that issue. You'll have to add back in your notes.

Regards,
JPG

mattekure
March 18th, 2025, 16:06
Awesome, thanks much. I'll take a look at your changes and see if I can incorporate them back into the full extension.

Moon Wizard
April 6th, 2025, 02:47
This should be addressed in the latest v4.7.0 client in the beta Test channel.

Regards,
JPG

MrDDT
April 6th, 2025, 10:06
Awesome, I will check it out.