• 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    Great catch!! It is working great for me now. Sorry for all the confusion. I'll go up and edit the old messages so someone doesn't copy/paste the command in error.


    A million thanks, you have built a great tool!


    Scott

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    Thanks for your active work on this. I tried the latest release (0.13.2) of the Linux CLI and I am still having the same problem on a very large world:


    unmined-cmd_0.13.2-dev_net5.0-linux-x64_sc$ ./unmined-cli image render --output=world1.png --area="r(1,1,1,2)" --world /var/minecraft/world1/world/
    [00:10:57 INF] (main) uNmINeD command line interface v0.13.2-dev
    [00:10:57 INF] (main) Platform: .NETCoreApp,Version=v5.0 (.NET 5.0.0) on Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
    [00:10:57 INF] (main) Architecture: X64, threads: 4, 64 bit: True
    [00:10:58 INF] (Image) World path: /var/minecraft/world1/world/
    [00:10:58 INF] (Image) Dimension: null
    [00:10:58 INF] (Image) World name: world
    [00:10:58 INF] (Image) World version name: 1.16.4
    [00:10:58 INF] (Image) World version id: 2584
    [00:10:58 INF] (Image) World data version: 2584
    [00:10:58 INF] (Image) World size: 1171 regions
    [00:10:58 INF] (Image) World size: 166912 x 125952 blocks
    [00:10:58 INF] (Image) World rectangle: r(-129, -49, 326, 246)
    [00:10:58 INF] (Image) Rendering rectangle: r(-129, -49, 326, 246)
    [00:10:58 INF] (Image) Output file name: world1.png
    Unhandled exception. System.OverflowException: Arithmetic operation resulted in an overflow.
       at Unmined.WebExport.ImageMapExport.RunAsync(CancellationToken ctsToken, Action`2 progressCallback)
       at Unmined.Cmd.Image.ImageRenderer.Run()
       at Unmined.Cmd.Image.ImageModule.<Run>b__6_0(ImageRendererOptions opts)
       at CommandLine.ParserResultExtensions.MapResult[T1,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 notParsedFunc)
       at Unmined.Cmd.Image.ImageModule.Run(String[] args)
       at Unmined.Cmd.ModuleManager.Run(String[] args)
       at Unmined.Cmd.Program.Main(String[] args)
    Aborted (core dumped)


    I'm a pretty experienced sysadmin and developer (although not with .NET), so I'm happy to try and diagnostics you might think are helpful.


    Thanks!


    Scott

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    I also tried --zoom=-2 and it got further:


    ~/unmined/unmined-cmd_0.12.25-dev_net5.0-linux-x64_sc$ ./unmined-cli image render --output=world1.png --world /var/minecraft/world1/world/ --area "r(-1,-1,1,2)" --zoom=-2
    [02:19:13 INF] (main) uNmINeD command line interface v0.12.25-dev
    [02:19:13 INF] (main) Platform: .NETCoreApp,Version=v5.0 (.NET 5.0.0) on Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
    [02:19:13 INF] (main) Architecture: X64, threads: 4, 64 bit: True, little endian: True
    [02:19:13 INF] (Image) World path: /var/minecraft/world1/world/
    [02:19:13 INF] (Image) Dimension: null
    [02:19:14 INF] (Image) World name: world
    [02:19:14 INF] (Image) World version name: 1.16.4
    [02:19:14 INF] (Image) World version id: 2584
    [02:19:14 INF] (Image) World data version: 2584
    [02:19:14 INF] (Image) World size: 1171 regions
    [02:19:14 INF] (Image) World size: 166912 x 125952 blocks
    [02:19:14 INF] (Image) World rectangle: r(-129, -49, 326, 246)
    [02:19:14 INF] (Image) Rendering rectangle: r(-129, -49, 326, 246)
    [02:19:14 INF] (Image) Output file name: world1.png
    [02:19:16 INF] (Image) Rendering region r(0, 4), 0 / 1171, 0.00%
    [02:19:16 INF] (TerrainRender) Rendering region r(0,4) [100%]
    [02:19:17 INF] (Image) Rendering region r(-4, -36), 1 / 1171, 0.09%
    [02:19:17 INF] (TerrainRender) Rendering region r(-4,-36) [100%]
    [02:19:17 ERR] (TerrainRender) Error loading chunk c((-97, -1153)) in region r((-4, -37)): InvalidOperationException: Cannot use BeginChildren() on tag type LongArray
    Unhandled exception. System.InvalidOperationException: Cannot use BeginChildren() on tag type LongArray
       at Unmined.Minecraft.Nbt.NbtParserBase.BeginChildren()
       at Unmined.Level.DataSources.Flattened.FlattenedChunkExtractor.Load(INbtParser parser)
       at Unmined.Level.DataSources.BlockDataSourceRegion.<>c__DisplayClass18_0.<LoadChunkData>b__0()
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
    --- End of stack trace from previous location ---
       at Unmined.Level.DataSources.BlockDataSourceRegion.LoadChunkData(ChunkPoint chunkPoint, CancellationToken ctsToken)
       at Unmined.Level.DataSources.BlockDataSourceRegion.GetChunk(ChunkPoint chunkPoint, CancellationToken ctsToken)
       at Unmined.Core.Render.Terrain.TerrainRenderer.<>c__DisplayClass22_1`1.<<Render>g__GenerateSorroundingElevationMap|1>d.MoveNext()
    --- End of stack trace from previous location ---
       at Unmined.Core.Render.Terrain.TerrainRenderer.Render[TPixel](IBlockDataSourceDimension dataSource, IBlockRegistry blockRegistry, BlockRect blockRect, Memory`1 destPixels, Int32 destStride, Int32 destX, Int32 destY, Int32 zoomLevel, SliceGeneratorOptions sliceGeneratorOptions, CancellationToken ctsToken)
       at Unmined.WebExport.ImageMapExport.RunAsync(CancellationToken ctsToken, Action`2 progressCallback)
       at Unmined.Cmd.Image.ImageRenderer.Run()
       at Unmined.Cmd.Image.ImageModule.<Run>b__6_0(ImageRendererOptions opts)
       at CommandLine.ParserResultExtensions.MapResult[T1,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 notParsedFunc)
       at Unmined.Cmd.Image.ImageModule.Run(String[] args)
       at Unmined.Cmd.ModuleManager.Run(String[] args)
       at Unmined.Cmd.Program.Main(String[] args)
    Aborted (core dumped)


    Thanks!


    Scott

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    I downloaded the latest (unmined-cmd_0.12.25-dev_net5.0-linux-x64_sc) and tried with the --area you suggested, but am still having the same problem:


    ~/unmined/unmined-cmd_0.12.25-dev_net5.0-linux-x64_sc$ ./unmined-cli image render --output=world1.png --world /var/minecraft/world1/world/ --area="r(1,1,1,2)"
    [02:07:50 INF] (main) uNmINeD command line interface v0.12.25-dev
    [02:07:50 INF] (main) Platform: .NETCoreApp,Version=v5.0 (.NET 5.0.0) on Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
    [02:07:50 INF] (main) Architecture: X64, threads: 4, 64 bit: True, little endian: True
    [02:07:50 INF] (Image) World path: /var/minecraft/world1/world/
    [02:07:50 INF] (Image) Dimension: null
    [02:07:51 INF] (Image) World name: world
    [02:07:51 INF] (Image) World version name: 1.16.4
    [02:07:51 INF] (Image) World version id: 2584
    [02:07:51 INF] (Image) World data version: 2584
    [02:07:51 INF] (Image) World size: 1171 regions
    [02:07:51 INF] (Image) World size: 166912 x 125952 blocks
    [02:07:51 INF] (Image) World rectangle: r(-129, -49, 326, 246)
    [02:07:51 INF] (Image) Rendering rectangle: r(-129, -49, 326, 246)
    [02:07:51 INF] (Image) Output file name: world1.png
    Unhandled exception. System.OverflowException: Arithmetic operation resulted in an overflow.
       at Unmined.WebExport.ImageMapExport.RunAsync(CancellationToken ctsToken, Action`2 progressCallback)
       at Unmined.Cmd.Image.ImageRenderer.Run()
       at Unmined.Cmd.Image.ImageModule.<Run>b__6_0(ImageRendererOptions opts)
       at CommandLine.ParserResultExtensions.MapResult[T1,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 notParsedFunc)
       at Unmined.Cmd.Image.ImageModule.Run(String[] args)
       at Unmined.Cmd.ModuleManager.Run(String[] args)
       at Unmined.Cmd.Program.Main(String[] args)
    Aborted (core dumped)


    It seems based on the output that the program is still using the world size for the rendering rectangle, even when I specify an --area.


    Thanks!


    Scott

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    Still no luck:


    ./unmined-cli image render --output=./world5-area.png --world /var/minecraft/world1/world/ --area="r(1, 1, 1, 2)"
    [05:45:31 INF] (main) uNmINeD command line interface v0.12.20-dev
    [05:45:31 INF] (main) Platform: .NETCoreApp,Version=v5.0 (.NET 5.0.0) on Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
    [05:45:31 INF] (main) Architecture: X64, threads: 4, 64 bit: True, little endian: True
    [05:45:32 INF] (Image) Input world path: /var/minecraft/world1/world/
    [05:45:32 INF] (Image) World name: world
    [05:45:32 INF] (Image) World version name: 1.16.4
    [05:45:32 INF] (Image) World version id: 2584
    [05:45:32 INF] (Image) World data version: 2584
    [05:45:32 INF] (Image) World area: r(-129, -49, 326, 246)
    [05:45:32 INF] (Image) World size: 166912 x 125952 blocks
    [05:45:32 INF] (Image) Rendering area: r(-129, -49, 326, 246)
    [05:45:32 INF] (Image) Output image size: 166912 x 125952 pixels (80196 MiB)
    [05:45:32 INF] (Image) Output image file: ./world5-area.png
    Unhandled exception. System.OverflowException: Arithmetic operation resulted in an overflow.
       at Unmined.Cmd.Image.ImageRenderer.Run()
       at Unmined.Cmd.Image.ImageModule.<Run>b__6_0(ImageRendererOptions opts)
       at CommandLine.ParserResultExtensions.MapResult[T1,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 notParsedFunc)
       at Unmined.Cmd.Image.ImageModule.Run(String[] args)
       at Unmined.Cmd.ModuleManager.Run(String[] args)
       at Unmined.Cmd.Program.Main(String[] args)
    Aborted (core dumped)


    I've tried various ways of quoting the --area parameter, but all give me this same result.


    Thanks!

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    I tried limiting the generated image size using something like

    "--area=r(3307,4890,1800,1800)"


    but it still failed

    Posted in: Minecraft Tools
  • 0

    posted a message on uNmINeD - 2D mapper [Windows / Mac / Linux]

    I am attempting to generate a map from a spigot-1.16.4 server using the Linux version of the cli tool (unmined-cmd_0.12.20-dev_net5.0-linux-x64_sc). I get the following:


    ./unmined-cli image render --output=world1.png --world /var/minecraft/world1/world/ --log-level debug
    [02:12:15 INF] (main) uNmINeD command line interface v0.12.20-dev
    [02:12:15 INF] (main) Platform: .NETCoreApp,Version=v5.0 (.NET 5.0.0) on Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
    [02:12:15 INF] (main) Architecture: X64, threads: 4, 64 bit: True, little endian: True
    [02:12:16 INF] (Image) Input world path: /var/minecraft/world1/world/
    [02:12:16 INF] (Image) World name: world
    [02:12:16 INF] (Image) World version name: 1.16.4
    [02:12:16 INF] (Image) World version id: 2584
    [02:12:16 INF] (Image) World data version: 2584
    [02:12:16 INF] (Image) World area: r(-129, -49, 326, 246)
    [02:12:16 INF] (Image) World size: 166912 x 125952 blocks
    [02:12:16 INF] (Image) Rendering area: r(-129, -49, 326, 246)
    [02:12:16 INF] (Image) Output image size: 166912 x 125952 pixels (80196 MiB)
    [02:12:16 INF] (Image) Output image file: world1.png
    Unhandled exception. System.OverflowException: Arithmetic operation resulted in an overflow.
     at Unmined.Cmd.Image.ImageRenderer.Run()
     at Unmined.Cmd.Image.ImageModule.<Run>b__6_0(ImageRendererOptions opts)
     at CommandLine.ParserResultExtensions.MapResult[T1,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 notParsedFunc)
     at Unmined.Cmd.Image.ImageModule.Run(String[] args)
     at Unmined.Cmd.ModuleManager.Run(String[] args)
     at Unmined.Cmd.Program.Main(String[] args)
    Aborted (core dumped)


    Any advice for me?


    Thanks!


    Scott

    Posted in: Minecraft Tools
  • To post a comment, please .