OpenCubicChunks / WorldPainterSupportCC

WorldPainter plugin for CubicChunks mod support
GNU General Public License v3.0
15 stars 3 forks source link

Illegal argument exception: minHeight 0 when trying to export #14

Open ghost opened 1 year ago

ghost commented 1 year ago

This error occurs when I try to export my world (imported from a TIF heightmap) ` java.lang.IllegalArgumentException: minHeight 0 at org.pepsoft.worldpainter.plugins.BlockBasedPlatformProvider.createChunk(BlockBasedPlatformProvider.java:69) at org.pepsoft.worldpainter.exporting.WorldPainterChunkFactory.createChunk(WorldPainterChunkFactory.java:124) at org.pepsoft.worldpainter.exporting.WorldPainterChunkFactory.createChunk(WorldPainterChunkFactory.java:101) at org.pepsoft.worldpainter.exporting.AbstractWorldExporter.createChunk(AbstractWorldExporter.java:846) at org.pepsoft.worldpainter.exporting.AbstractWorldExporter.firstPass(AbstractWorldExporter.java:531) at org.pepsoft.worldpainter.exporting.AbstractWorldExporter.lambda$exportRegion$9(AbstractWorldExporter.java:776) at org.pepsoft.util.mdc.MDCUtils.doWithMdcContext(MDCUtils.java:59) at org.pepsoft.worldpainter.exporting.AbstractWorldExporter.exportRegion(AbstractWorldExporter.java:729) at org.pepsoft.worldpainter.exporting.AbstractWorldExporter.lambda$parallelExportRegions$2(AbstractWorldExporter.java:261) at org.pepsoft.util.mdc.MDCThreadPoolExecutor.lambda$wrap$0(MDCThreadPoolExecutor.java:55)

Diagnostic context: region.coords: java.awt.Point[x=2,y=1]

WorldPainter version: 2.18.4 (20230627210413)

java.version: 20 java.vendor: Oracle Corporation java.vm.version: 20+36-2344 java.vm.vendor: Oracle Corporation java.vm.name: Java HotSpot(TM) 64-Bit Server VM os.name: Windows 10 os.arch: amd64 os.version: 10.0 user.home: C:\Users\jasam user.dir: C:\Program Files\WorldPainter user.country: US user.language: en

Free memory: 3209768360 bytes Total memory size: 7373586432 bytes Max memory size: 14277410816 bytes

World name: smppakrac2-v0 Platform: Cubic Chunks (1.10.2 - 1.12.2) (org.pepsoft.cubicchunks) Seed: -7404336506295398071 Bounds: 0, 0 => 307, 107 Height: 1024 Number of tiles: 33264 Layers in use: Frost Border: ENDLESS_BARRIER @ 0 Sub surface material: Stone Mix Water height: 0

Operation: Spawn Radius: 50 Brush: Plateau Circle (radius=0, brushShape=CIRCLE, level=1.0)/Sine Circle (radius=7, brushShape=CIRCLE, level=1.0) Level: 0.51/0.51 Zoom: -4 Hidden layers: [Biome] `

SurvivorBob commented 1 year ago

Root cause is API change in WorldPainter: https://github.com/Captain-Chaos/WorldPainter/commit/cdedbe99dcdaf98692db8f2a02ecf726f2a6f6e4#diff-2c4ceef0263041cef7c66126b5f645c65bca23aa64951112d8dc54816f756595