maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Bug]: Hex-based Lighting stays in the upper left of a token if the token does not have a center hex.

Open Xlaits opened this issue 10 months ago • 1 comments

Describe the Bug

As the title states. Using Grid lighting does not use the token center, and instead uses the top left of the token. This may have something to do with the light not scaling with token size.

To Reproduce

  1. Create a map with a grid.
  2. Create a new light, using grid lighting. ex, 2:grid 2+100
  3. Place it on a large token.

Expected Behaviour

Light should be centered on the token center and fill out to all hexes around token.

Screenshots

image

MapTool Info

Version: 1.13.2

Desktop

Windows 10

Additional Context

==== MapTool Information ====
MapTool Version: 1.13.2
MapTool Home...: C:\Users\A12306262\.maptool-rptools
MapTool Install: C:\Users\A12306262\AppData\Local\MapTool\app
Max mem avail..: 3 GB
Max mem used...: 188 MB
Custom Property: -DMAPTOOL_LOGDIR=C:\Users\A12306262\.maptool-rptools\logs
Custom Property: -DMAPTOOL_DATADIR=.maptool-rptools

==== Java Information ====
Java Home......: C:\Users\A12306262\AppData\Local\MapTool\runtime
Java Vendor....: Eclipse Adoptium
Java Version...: 17.0.1
Java Parameters: 
  -Djpackage.app-version=1.0
  -Xss8M
  -Dsun.java2d.d3d=false
  -Dsentry.environment=Production
  -Dfile.encoding=UTF-8
  -Dpolyglot.engine.WarnInterpreterOnly=false
  -XX:+ShowCodeDetailsInExceptionMessages
  --add-opens=java.desktop/java.awt=ALL-UNNAMED
  --add-opens=java.desktop/java.awt.geom=ALL-UNNAMED
  --add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED
  --add-opens=java.base/java.util=ALL-UNNAMED
  --add-opens=javafx.web/javafx.scene.web=ALL-UNNAMED
  --add-opens=javafx.web/com.sun.webkit=ALL-UNNAMED
  --add-opens=javafx.web/com.sun.webkit.dom=ALL-UNNAMED
  --add-opens=java.desktop/javax.swing=ALL-UNNAMED
  --add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
  --add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
  -Djpackage.app-path=C:\Users\A12306262\AppData\Local\MapTool\MapTool.exe


==== OS Information ====
OS Name........: Windows 10
OS Version.....: 10.0
OS Architecture: amd64
Processor......: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
PATH...........: C:\Users\A12306262\AppData\Local\MapTool;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Python39\Scripts\;C:\Program Files\Python39\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files (x86)\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Calibre2\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\PuTTY\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\A12306262\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\A12306262\AppData\Local\Programs\Python\Python310\;C:\Users\A12306262\AppData\Local\Microsoft\WindowsApps;C:\Users\A12306262\.dotnet\tools;C:\Users\A12306262\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Users\A12306262\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\A12306262\AppData\Roaming\npm;C:\Users\A12306262\AppData\Local\atom\bin;C:\Users\A12306262\.dotnet\tools;C:\Users\A12306262\AppData\Local\MapTool\app;.
Number of Procs: 8

==== User Information ====
User Name: A12306262
User Home: C:\Users\A12306262
User Dir.: C:\Users\A12306262\AppData\Local\MapTool

==== Network Interfaces ====
Display Name..: Software Loopback Interface 1
Interface Name: lo
Address...: 127.0.0.1
Address...: 0:0:0:0:0:0:0:1

Display Name..: VirtualBox Host-Only Ethernet Adapter
Interface Name: eth4
Address...: 192.168.56.1
Address...: fe80:0:0:0:40b:d72e:f8eb:503b%eth4

Display Name..: Intel(R) Wi-Fi 6 AX201 160MHz
Interface Name: wlan2
Address...: 192.168.0.194
Address...: fd00:402:1599:ac31:ad05:930e:8677:6014
Address...: fd00:402:1599:ac31:e127:16d0:4b39:ddfb
Address...: fe80:0:0:0:bb70:3648:e972:7775%wlan2

Display Name..: Hyper-V Virtual Ethernet Adapter
Interface Name: eth11
Address...: 172.29.32.1
Address...: fe80:0:0:0:33d5:3959:a3f2:9114%eth11

Host Address...: 172.29.32.1
Default Gateway: 192.168.0.1

==== Locale Information ====
Country.: United States
Language: English
Locale..: English (United States)
Variant.: 

==== Encoding Information ====
Default Locale:   en_US
Default Charset:  UTF-8
file.encoding:    UTF-8
sun.jnu.encoding: Cp1252
Default Encoding: UTF8

==== Display Information ====
Number of Displays: 1
Display 1: 1920x1080(32)

==== Internet Gateway Devices ====
	No IGDs Found!```

Xlaits avatar Sep 02 '23 04:09 Xlaits