-
Notifications
You must be signed in to change notification settings - Fork 263
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
[Bug]: Vision not revealed correctly when near VBL/MBL #3541
Comments
When moving away from the building, the vision for each token appears to display as expected. |
The lighting problem can be reproduced using other tokens, such as "Goblin 34 (Goblin)":
Note: Also, eventually, after using "Edit Token" on other tokens that they also eventually become broken and you get a Java exception like you see above -- however, "Edit Token" did work on them at the start of this. |
The map is intellectual property, so please only download and use it for the purpose of addressing this issue. I've attached as as a fair use of copyright law. |
Same underlying problem as #3521, but this one demonstrates I shouldn't have been so aggressive with the precision model. |
Interestingly if I just wipe out all the VBL and redraw they way I normally draw VBL it works just fine. |
Tested fix. Vision working as expected now on supplied map. |
Describe the Bug
An NPC for which I pressed Ctrl-I with normal vision standing near a building in day vision with MBL for walls and VBL for across the center part of the roof is getting obscured vision when looking out away from the building -- when that should all be revealed:
.
To Reproduce
Vision problem.zip
.
Expected Behaviour
The "Aldem Foxglove (Politician)" token should be able to see away from the building because there is no VBL (or even MBL) there.
Screenshots
No response
MapTool Info
1.12.0.beta
Desktop
Windows 10
Additional Context
Initially, I was able to use the "Edit Token" dialog for "Aldem Foxglove (Politician)" token to enable his vision (and I can still use "Edit Token" for other tokens on this map) -- but after doing that for "Aldem Foxglove (Politician)" I now get the following exception:
java.lang.NullPointerException: Cannot invoke "net.rptools.maptool.model.Token.getOwners()" because the return value of "net.rptools.maptool.client.ui.token.EditTokenDialog.getModel()" is null
at net.rptools.maptool.client.ui.token.EditTokenDialog$OwnerListModel.(EditTokenDialog.java:2120)
at net.rptools.maptool.client.ui.token.EditTokenDialog.lambda$bind$0(EditTokenDialog.java:293)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:54)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.displayPopup(MapToolEventQueue.java:109)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:73)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
The text was updated successfully, but these errors were encountered: