MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
299 stars 288 forks source link

Water tiles disappear when zoomed out #3238

Open mjog opened 3 years ago

mjog commented 3 years ago

Water tiles disappear when the board is zoomed out to step 9.

I assume this is related to the animated water hexes? It's been a problem since at least ~0.49.3 and is still a problem under current development mainline.

To reproduce:

  1. Load a map with water
  2. Zoom in as far as possible (optional, but makes it easier to determine what zoom level you are on)
  3. Zoom out to at least step 9
  4. Notice water tiles have disappeared and been replaced by a land tile

Environment

What version of MegaMek does your issue apply to? >= ~0.49.3 What operating system are you using? Windows, Linux What java version are you using? OpenJDK 11

mjog commented 3 years ago

Actually, only an issue under linux - maybe a file name issue then?

mjog commented 2 years ago

I'm seeing a lot of errors like this when doing a ./gradlew build:

Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D0_Structure_15.png because dimensions don't match.  Image is 86 x 74
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D0_Structure_5.png because dimensions don't match.  Image is 86 x 74
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D2_Structure_17.png because dimensions don't match.  Image is 86 x 74
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D0_Structure_35.png because dimensions don't match.  Image is 86 x 74
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D0_Structure_60.png because dimensions don't match.  Image is 86 x 72
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D0_Structure_2.png because dimensions don't match.  Image is 86 x 74
Skipping image data/images/hexes/Structured_Water/SaxarbaWater_D2_Structure_31.png because dimensions don't match.  Image is 86 x 74

Could this be related?

HammerGS commented 2 years ago

Maybe. I thought all the images had to be 84x72 but its part of the data side I don't know well.

mjog commented 2 years ago

Doing some more testing:

mjog commented 2 years ago

3266 doesn't help, unfortunately.

mjog commented 2 years ago

Don't think it's a linux filesystem case sensitivity issue, since all the file names in megamek/data/images/hexes/hq_saxarba.tileset check out.

Might actually still be a problem on Windows since when it was being tested there, that was being done via a built zip rather from source.