maptool
maptool copied to clipboard
Cone vision shape produces incorrect personal light radius
Shows in MT 1.4.0.5, 1.4.1.8 & 1.5.0.1 ConeVisionTest1405.cmpgn.zip MT 1.4.0.5 campaign file for testing.
Setting a vision type to cone shape appears to cause the personal light radius value to be a minimum of 1 within the area of the cone and a full square grid cell outside the cone.
With a x2 multiplier and a personal radius of 0.25, expect to get a vision radius of 2 * 0.25 = 0.5.
Lowlight Circle: circle x2 r0.25
Produces the expected:
Lowlight Cone: cone arc=120 x2 r0.25
Produces a radius of 1 and appears to force a blocky vision shape.
Lowlight C2: cone arc=120 x2 r1
Works as expected with a smooth cone curve.
Did some additional testing on this and found some interesting behavior. If you set the radius to 0.6, you get this weird shape:
But if you remove the code that adds the token footprint to the vision shape, it renders the expected shape of just an arc in front of the character.
Doing the reverse (displaying only the footprint) also seems to work fine. So either something is going wrong with the java Shape class when adding these (seems unlikely?) or something above the getShapedArea
call is messing this up.
@amccarthy1 good catch. If you keep working on this, you could have it assigned to you.
Good info.
Important Note: One of the intents of personal light was to make it so a player can always see their token even if their token doesn't have some type of night vision. The rationale being that a person would have some notion of their immediate surroundings by touch if nothing else.
I can't load this campaign and attempting to follow along, I don't know this issue exists. Can this be tested or share exactly what you have in sight and light, so it can be tested?
Yes, the issue still exists and all of the sight definitions were provided above in the comments but here are the relevant ones:
Conic Lowlight P1: cone arc=120 x2 r1
Conic Lowlight P0.6: cone arc=120 x2 r0.6
Conic Lowlight P0.25: cone arc=120 x2 r0.25
Here is a campaign file from MT v1.11.5 with map with tokens using the 3 sight types. Remove the .zip
.
ConeVisionTest1_11_5.cmpgn.zip