jpenilla / squaremap

squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style
https://modrinth.com/plugin/squaremap
Other
342 stars 41 forks source link

bug: tiles for zoom 3 and above are transparent #285

Open pernydev opened 2 months ago

pernydev commented 2 months ago

Hey! When experimenting with this plugin, I came across a strange bug with the tiles for zoom level 3 and above are completely transparent. The console also seems to stop progress at around 86% but I don't know if that's just the rendering updates printing so infrequently that it finished in that time.

Logs for the render:

map fullrender minecraft:overworld
[11:36:49 INFO]: [squaremap] Started full map render for minecraft:overworld
[11:36:49 INFO]: [squaremap] Scanning region files... (this may take a moment)
[11:36:49 INFO]: [squaremap] Found 4 region files
[11:36:50 INFO]: [squaremap] (0.00%) World: minecraft:overworld Regions: 0/4 Chunks: 0/4096 Elapsed: 00:00:01 ETA: -17:56:-29 Rate: 0.0 cps
[11:36:51 INFO]: [squaremap] (1.71%) World: minecraft:overworld Regions: 0/4 Chunks: 70/4096 Elapsed: 00:00:02 ETA: 00:00:57 Rate: 70.0 cps
[11:36:52 INFO]: [squaremap] (3.12%) World: minecraft:overworld Regions: 0/4 Chunks: 128/4096 Elapsed: 00:00:03 ETA: 00:01:02 Rate: 64.0 cps
[11:36:53 INFO]: [squaremap] (8.59%) World: minecraft:overworld Regions: 0/4 Chunks: 352/4096 Elapsed: 00:00:04 ETA: 00:00:31 Rate: 117.3 cps
[11:36:54 INFO]: [squaremap] (14.99%) World: minecraft:overworld Regions: 0/4 Chunks: 614/4096 Elapsed: 00:00:05 ETA: 00:00:22 Rate: 153.5 cps
[11:36:56 INFO]: [squaremap] (17.41%) World: minecraft:overworld Regions: 0/4 Chunks: 713/4096 Elapsed: 00:00:06 ETA: 00:00:23 Rate: 142.6 cps
[11:36:56 INFO]: [squaremap] (31.91%) World: minecraft:overworld Regions: 1/4 Chunks: 1307/4096 Elapsed: 00:00:07 ETA: 00:00:12 Rate: 217.8 cps
[11:36:57 INFO]: [squaremap] (37.55%) World: minecraft:overworld Regions: 1/4 Chunks: 1538/4096 Elapsed: 00:00:08 ETA: 00:00:11 Rate: 219.7 cps
[11:36:58 INFO]: [squaremap] (41.55%) World: minecraft:overworld Regions: 1/4 Chunks: 1702/4096 Elapsed: 00:00:09 ETA: 00:00:11 Rate: 212.8 cps
[11:36:59 INFO]: [squaremap] (50.93%) World: minecraft:overworld Regions: 2/4 Chunks: 2086/4096 Elapsed: 00:00:10 ETA: 00:00:08 Rate: 231.8 cps
[11:37:00 INFO]: [squaremap] (63.82%) World: minecraft:overworld Regions: 2/4 Chunks: 2614/4096 Elapsed: 00:00:11 ETA: 00:00:05 Rate: 261.4 cps
[11:37:01 INFO]: [squaremap] (72.61%) World: minecraft:overworld Regions: 2/4 Chunks: 2974/4096 Elapsed: 00:00:12 ETA: 00:00:04 Rate: 270.4 cps
[11:37:02 INFO]: [squaremap] (77.51%) World: minecraft:overworld Regions: 3/4 Chunks: 3175/4096 Elapsed: 00:00:13 ETA: 00:00:03 Rate: 264.6 cps
[11:37:03 INFO]: [squaremap] (86.38%) World: minecraft:overworld Regions: 3/4 Chunks: 3538/4096 Elapsed: 00:00:14 ETA: 00:00:02 Rate: 272.2 cps
[11:37:04 INFO]: [squaremap] Finished rendering map for minecraft:overworld

End result with transparent tiles: 2024-08-28_14-45 (screenshot taken with zoom level 3)

Paper version: 1.21.1-52-master@e08e667 (2024-08-26T18:02:06Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT) Plugin artifact: squaremap-paper-mc1.21.1-1.2.7