0

added note to docs about anvil format

This commit is contained in:
Andrew Brown
2012-03-02 19:17:12 -05:00
parent d17931c112
commit cfddfc468f
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,13 @@ See also the `Github Homepage`_ and the `Updates Blog`_
.. _Updates Blog: http://overviewer.org/blog/ .. _Updates Blog: http://overviewer.org/blog/
.. warning::
This version of The Overviewer is being phased out. If you want to render
worlds for Minecraft 1.2 (the new "Anvil" format) then see the `Anvil <http://docs.overviewer.org/en/anvil/index.html>`_ docs.
Also see `this blog post <http://overviewer.org/blog/2012/03/01/anvil-support/>`_ on the topic.
Introduction Introduction
============ ============
The Minecraft Overviewer is a command-line tool for rendering high-resolution The Minecraft Overviewer is a command-line tool for rendering high-resolution

View File

@@ -79,7 +79,7 @@ class World(object):
# if not mcregion, error out early # if not mcregion, error out early
data = nbt.load(os.path.join(self.worlddir, "level.dat"))[1]['Data'] data = nbt.load(os.path.join(self.worlddir, "level.dat"))[1]['Data']
if not ('version' in data and data['version'] == 19132): if not ('version' in data and data['version'] == 19132):
logging.error("Sorry, This version of Minecraft-Overviewer only works with the new McRegion chunk format") logging.error("Sorry, This version of Minecraft-Overviewer only works with the old McRegion format. You will need to upgrade to render Minecraft 1.2 ('Anvil') worlds")
sys.exit(1) sys.exit(1)
if 'LevelName' in data: if 'LevelName' in data:
# level.dat should have the LevelName attribute so we'll use that # level.dat should have the LevelName attribute so we'll use that