-
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
New Maps with white background cause errors #261
Comments
Steps to reproduce:
Selecting any other color first, works as expected and allows subsequent selection of white cell. |
Bug confirmed in 1.4.0.5, 1.4.1.8 and dev release 1.5.0.1. Java 10.0.1 |
Great, guys. Thanks for filing the issue! |
I think this bug was been around forever and it may be that the bug is in JIDE libs but was never fixed. Long, long ago I trained myself to always click on one of the other color cells first and had forgotten about it. |
Thanks, and ya, that sounds familiar, IIRC was JRE specific. Maybe it came back? Can you tell us, are these using "installs" or JAR versions and if later, what version of JRE used for testing? Being it's "white" it's probably not handling the 0 index of the component or color or such. |
For myself, testing was with jar versions. I just tested the installed 1.5.0.0 version and it also does it. Previous post updated. |
I was using install versions
…On Tue, Feb 26, 2019, 11:15 AM Phergus ***@***.***> wrote:
For myself, testing was with jar versions. I just tested the installed
1.5.0.0 version and it also does it. Previous post updated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Afks8yqAW1HylSfUrWBvLQMvgukb8Z6Oks5vRWvNgaJpZM4bRXW7>
.
|
Cool, thanks for the info. Should be easy to replicate and hopefully easy to fix. If we can get it in for this release I'll try but i don't want to hold the release for lower priority bugs. Hopefully we can agree this is low priority as it's been around for a while now. :) |
Yeah. I think it definitely falls into the low category. |
It's an interesting problem. The white cell is somehow a TexturePaint object and the code expects Color and AssetPaint (which is a subclass of TexturePaint). I thought it might be enough to broaden the check from AssetPaint to TexturePaint, but it's not that simple as an Asset is needed to create the Drawable object. I'm leaving this for @Jaggeroth (he likely knows more about the Drawables than anyone else), but it seems like the simplest solution is to ensure that the cell in question is an Asset or Color object... |
Weird that only that cell seems to be the only one with an issue. |
I wonder if this goes back to 1.4.0.0? Between 1.4.0.0 -> 1.4.0.5 is where @Jaggeroth did a lot of the drawables work. (not blaming, it's just easier to compare across commits/releases to find bugs sometimes) |
Same error in MT 1.3.b91. Bug was introduced some time after 1.2 as the option to pick background, map images and FoW came in with 1.3. BTW, 1.2.b32 still runs under Java 10. |
FYI: As a workaround, if you pick another color and then immediately pick white, it works ok... |
Sentry issue: MAPTOOL-1X |
Thought about turning the returned TexturePaint into an asset but that just left the background the default grass texture instead of the White matching the color of the swatch clicked on. New code just forces it to be white. |
Fixed with PR #478 |
Grrr. Replaced one bug with another. Fix in process. |
Fixed in 1.5.3. Closing. |
In 1.4.1.8 If you attempt to create a new map and set the color to the top left option (white) in the color palette you get the following error which I can reproduce reliably on 2 windows 10machines in very different environments:
The text was updated successfully, but these errors were encountered: