ChunkyMap icon indicating copy to clipboard operation
ChunkyMap copied to clipboard

1.19 support?

Open ghost opened this issue 3 years ago • 9 comments

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 avatar Sep 03 '22 17:09 ghost

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

ghost avatar Sep 03 '22 17:09 ghost

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) ~[?:?]

Dantevg avatar Sep 11 '22 13:09 Dantevg

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. :)

leMaik avatar Oct 06 '22 17:10 leMaik

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.

Dantevg avatar Oct 06 '22 18:10 Dantevg

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

leMaik avatar Oct 06 '22 19:10 leMaik

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:

  • Create new blank server with paper-1.19.2-197.jar. (the latest spigot-1.19.2.jar yields the same results, but takes so much longer to initialise)
  • Place ChunkyMap-2.6.0-pre3-jar-with-dependencies.jar and Dynmap-3.4-spigot.jar in plugins folder. (run server to generate dynmap config files)
  • Place the following in plugins/dynmap/worlds.txt and restart server.
    worlds:
      - name: world
        maps:
          - class: de.lemaik.chunkymap.dynmap.ChunkyMap
            name: chunky_se
            title: "Chunky SE"
            perspective: iso_SE_30_hires
    
  • Execute /dynmap radiusrender world 0 0 64
  • Wait 1 to 2 minutes before getting error:
    [18:27:13 WARN]: [ChunkyMap] Rendering tile 24_-1 failed (directly followed by NullPointerException as above)

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)

Dantevg avatar Oct 07 '22 16:10 Dantevg

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

leMaik avatar Oct 09 '22 22:10 leMaik

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

Dantevg avatar Oct 11 '22 12:10 Dantevg

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)

TMUniversal avatar Mar 25 '23 13:03 TMUniversal