Cuberite Forum
Online Map - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: Online Map (/thread-160.html)



Online Map - Boo - 07-01-2011

Can someone write a plugin?


RE: Online Map - rs2k - 12-28-2011

This won't be too difficult, you just open each pak file and find the top non air block and assign a colored pixel to it based on what kind of block it is. I don't have time to do it at the moment, but I really want to see this happen.


RE: Online Map - mtilden - 12-28-2011

i'm assuming then the pak file only stores information on modified blocks from the original generation? otherwise there'd be no clear way to tell what size to make the map.


RE: Online Map - FakeTruth - 12-28-2011

What?

When rendering a map you should assume all pak files are filled to the brim with chunks, so if each block is 1 pixel, you take the total difference in X of the .pak files and multiply it with 64*16 and that's your map width. Do the same with Z and you got height.. or width, whatever.