spoutn1k / mcmap

Pixel-art map visualizer for Minecraft. Maps are drawn from an isometric perspective.
GNU General Public License v3.0
312 stars 45 forks source link

Nothing to render: -from X Z has to be <= -to X Z #64

Closed JoaoLCordeiro closed 3 years ago

JoaoLCordeiro commented 3 years ago

I'm trying to render part of a world and this error message always appears. I'm using the pre-compiled version for windows and the imput is:

.\mcmap -from 700 0 -to 200 400 -min 50 -sw -v

And, the debug message with the error says:

[Debug] World spans from -6144.-7312.0 ~> 4095.6655.255 (North-West) [Debug] Processed boundaries: 700.0.50 ~> 200.400.255 (South-West) [Error] Nothing to render: -from X Z has to be <= -to X Z

The -sw option is used and the debug message says that is the correct direction. What I can do?

spoutn1k commented 3 years ago

I see the confusion. The argument system is still a bit rustic, so it needs minX < maxX and minZ < maxZ. In your case, that comes down to:

.\mcmap -from 200 0 -to 700 400 -min 50 -sw -v

The orientation (-sw) is evaluated later and does not modify the order of the coordinates.

Hope that helps !

JoaoLCordeiro commented 3 years ago

Thanks for the REALLY FAST answer. It works I will upload the output just if you want to see... Seriously, thank you very very much! image

spoutn1k commented 3 years ago

You're welcome ! It's nice to see people using the tool. That is a cool portal too. Enjoy !