Create account / Log in

Mask image disappears if Piece rotates

Issues with the Vassal engine.

Moderators: uckelman, Tim M

Mask image disappears if Piece rotates

Postby m3tan » November 16th, 2020, 5:08 am

The mask image is only visible if the Piece is in the true north (initial facing). If I rotate the piece, the other piece images rotate properly but the mask image disappears. The mask image only reappears if the piece is rotated back to it's initial facing. I'm Running Windows 10 Vassal 3.4.8 on HDCP (laptop) and non-HDCP (desktop) displays. It happens on both.

PS The mask image works for the opposing player, but not for the owning player.
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby m3tan » November 17th, 2020, 3:51 pm

Has any developer had a chance to look at this or at least log the error? I've confirmed that the issue dates back to at least 3.2.17.
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby uckelman » November 25th, 2020, 12:22 am

Would you able able to post a minimal test module showing the problem?
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby cpangracs » November 29th, 2020, 4:44 am

Maybe I'm missing something, but the placement of the "Rotate" property in the stack of properties for a piece makes a difference, at least for me. I have pieces with many different attributes, and by placing the rotate property at the BOTTOM of the property list guarantees that all information above it rotates properly. Maybe check the order of this property in that side's pieces, and ensure they match how the other side's pieces are built - just to verify that it isn't a bug?
cpangracs
 
Posts: 31
Joined: June 12th, 2020, 12:06 pm

Re: Mask image disappears if Piece rotates

Postby m3tan » November 30th, 2020, 10:17 pm

Joel, I'm PM'd you a test module.

I don't think it's the location of my Rotate trait. It's below the Mask trait and everything else above Can Rotate works.
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby m3tan » December 13th, 2020, 4:27 pm

Joel,

Have you had a chance to look into this issue yet? My holiday break begins in 5 days and I was planning to continue working on this module. But I'm at an impasse until I know whether this is a bug and if so, whether it's fixable in a future release. Thanks.

Mike
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby uckelman » December 21st, 2020, 1:27 pm

I'm looking at the test module now.
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby uckelman » December 21st, 2020, 1:53 pm

Looking specifically at the "American Medium" prototype: You have the Mask trait under the "Vehicle" prototype, and it's the Vehicle prototype which contains the Can Rotate trait. I'm not sure why that doesn't render the mask image rotated.
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby m3tan » December 21st, 2020, 4:48 pm

To clarify, within the "American Medium" prototype, the Mask trait is above the "Vehicle" prototype. which contains the Can Rotate trait. This seems like a bug correct?
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby uckelman » December 21st, 2020, 5:06 pm

I always speak of the traits as a stack, so "below" is nearer to the bottom of the stack, i.e., closer to the Basic Piece trait. The editor shows the trait stack growing downward, which is unfortunate.
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby m3tan » December 21st, 2020, 5:26 pm

Got it. Anyway, I created a stripped-down Piece sans all the other traits as I was thinking maybe it's an interaction with another image or trait that causes the mask rotation to not work. No such luck. Same behavior with a Piece that simply consists of:

Basic Piece
Mask
Can Rotate - Facing

If I arrange the traits as:

Basic Piece
Can Rotate - Facing
Mask

The mask always works, but of course, no longer rotates.
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby uckelman » December 22nd, 2020, 1:11 am

I think I've found what's wrong---the VISIBLE_STATE property of the Can Rotate trait isn't having the SELECTED property included in it in all cases. I'm not sure why not yet.
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby uckelman » December 22nd, 2020, 11:54 am

Try VASSAL-3.4.12-SNAPSHOT-bug13850-d6caf3b17:

http://www.vassalengine.org/~uckelman/tmp/

Does that solve the problem for you?
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Mask image disappears if Piece rotates

Postby m3tan » December 22nd, 2020, 2:50 pm

That fixed it. Well done!
User avatar
m3tan
 
Posts: 232
Joined: August 12th, 2018, 11:49 pm

Re: Mask image disappears if Piece rotates

Postby uckelman » December 22nd, 2020, 3:19 pm

Thus spake m3tan:
> That fixed it. Well done!

This fix will be in 3.4.12 in a day or two.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 9227
Joined: December 10th, 2007, 9:48 am
Location: Durham, England


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 2 guests