leMaik / ChunkyMap

Photorealistic Dynmap world map renderer using Chunky (Minecraft 1.13 and newer). :world_map::sparkles:
GNU General Public License v3.0
86 stars 11 forks source link

1.19 support? #46

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi, by any chance will there be 1.19 support for this? I would love to see it on the latest version, and as of now the plugin works on 1.19.2 but it's buggy. (I've manually built this plugin using Maven with the Chunky 2.4 branch)

As of now, I've been getting a lot of errors about tile rendering failure and missing header in region files. I hope the development continues, this plugin is amazing :)

ghost commented 2 years ago

I also forgot to mention that it's also been giving me a lot of NullPointerException:null errors. I hope this helps.

Dantevg commented 2 years ago

I also tried to get it working on 1.19 with the chunky-2.4 branch and got the same errors. This is the specific stack-trace for the NullPointerExceptions:

java.lang.NullPointerException: Cannot invoke "se.llbit.chunky.chunk.ChunkData.getBiomeData()" because "chunkData" is null
        at se.llbit.chunky.renderer.scene.Scene.loadChunks(Scene.java:1030) ~[ChunkyMap-2.6.0-pre3-jar-with-dependencies.jar:?]
        at de.lemaik.chunkymap.dynmap.ChunkyMapTile.lambda$render$6(ChunkyMapTile.java:142) ~[ChunkyMap-2.6.0-pre3-jar-with-dependencies.jar:?]
        at de.lemaik.chunkymap.rendering.local.ChunkyRenderer.render(ChunkyRenderer.java:109) ~[ChunkyMap-2.6.0-pre3-jar-with-dependencies.jar:?]
        at de.lemaik.chunkymap.dynmap.ChunkyMapTile.render(ChunkyMapTile.java:69) ~[ChunkyMap-2.6.0-pre3-jar-with-dependencies.jar:?]
        at org.dynmap.MapManager$FullWorldRenderState.processTile(MapManager.java:810) ~[Dynmap-3.4-spigot.jar:?]
        at org.dynmap.MapManager$FullWorldRenderState.run(MapManager.java:726) ~[Dynmap-3.4-spigot.jar:?]
        at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$1.run(MapManager.java:234) ~[Dynmap-3.4-spigot.jar:?]
        at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$2.run(MapManager.java:252) ~[Dynmap-3.4-spigot.jar:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
leMaik commented 2 years ago

Did you build against an old Chunky version? The chunky-2.4 branch worked fine for me. I'll update it and try again and then publish a proper prerelease. :)

Dantevg commented 2 years ago

Not OP, but I believe I used chunky from the installer (not the remove-static-registries branch because I couldn't get it to compile). But, I only got these errors at the very start and I personally haven't seen these errors occur since.

leMaik commented 2 years ago

The recommended (and tested) Chunky snapshot is in the pom.xml file and maven should get it automatically from my repo.

Dantevg commented 2 years ago

Ah, I see. I followed the readme, didn't know that was not necessary. I just recompiled it and I'm getting the same errors on a blank world / server. My exact steps:

Exact Dynmap version: v3.4-828

Java version:

java version "18.0.2" 2022-07-19
Java(TM) SE Runtime Environment (build 18.0.2+9-61)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing)
leMaik commented 2 years ago

Try this build and please report any bugs you see! :pray: https://github.com/leMaik/ChunkyMap/releases/tag/v2.6.0-pre4

Dantevg commented 2 years ago

I don't see any errors anymore, so it seems to be all good!

TMUniversal commented 1 year ago

Using 2.6.0-pre4 (have not tested other versions) on 1.19.2 (git-Purpur-1858 (MC: 1.19.2)), I get only blank images. Have I misconfigured something?

from worlds.txt

worlds:
-   name: world
    title: Overworld
    enabled: true
    extrazoomout: 2
    maps:
    -   class: de.lemaik.chunkymap.dynmap.ChunkyMap
        chunkyThreads: 4
        name: surface
        title: Surface
        perspective: iso_SE_30_hires
        prefix: t
        shader: stdtexture
        lighting: shadows
        mapzoomin: 1
        mapzoomout: 3
        boostzoom: 2

from configuration.txt

defaulttilescale: 2

storage:
  type: filetree

image-format: jpg-q90

The images are black, and seem to get deleted (possibly since they are blank?) soon after generation.

Java Version:

openjdk version "19" 2022-09-20
OpenJDK Runtime Environment (build 19+36-2238)
OpenJDK 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)