Minecraft/Overviewer

Minecraft Overviewer
Minecraft Overviewer - https://github.com/overviewer/Minecraft-Overviewer

North facing issue: https://github.com/brownan/Minecraft-Overviewer/issues/48

This program requires: `Textures`_ section below.
 * Python 2.6 or 2.7 
 * PIL (Python Imaging Library) 
 * Numpy 
 * Either the Minecraft client installed, or a terrain.png file. See the

Install Python 2.7.5: mkdir -p ~/.src ; cd ~/.src wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz tar -zvxf Python-2.7.5.tgz cd Python-2.7.5 ./configure --prefix=$(echo ~)/overviewer-python make clean && make && make install export PATH=$(echo ~)/overviewer-python/bin:$PATH

Install PIL: sudo yum -y install zlib-devel libjpeg-devel mkdir -p ~/.src ; cd ~/.src wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz tar -zvxf Imaging-1.1.7.tar.gz cd Imaging-1.1.7 python setup.py build # check dependencies are meet python setup.py install
 * 1) prerequisite for MO requirement: (zlib libraries) REQUIRED!
 * 1) sudo apt-get install libjpeg-dev zlib1g-dev

python setup.py clean python setup.py build --force python setup.py install
 * 1) if have to repeat
 * 1)   Missing: TKINTER, FREETYPE2, LITTLECMS
 * 2)   Supported: JPEG, ZLIB (PNG/ZIP)

WARNING: Install zlib-devel or you will get this error when running Overviewer: IOError: decoder zip not available

On Ubuntu you may have to do this fix: apt-get install libzzip-dev libjpeg-dev sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
 * 1) #ubuntu-fix freetype/fterrors.h#  cd /usr/include ; ln -s freetype2 freetype

Install numpy: sudo yum -y install git mkdir -p ~/.src ; cd ~/.src git clone git://github.com/numpy/numpy.git numpy cd numpy git checkout v1.7.1 python setup.py install
 * 1) dependency:
 * 1) git tag -l

Test libraries: cd ~ echo "import PIL" | python echo "import numpy" | python # don't try from within numpy source path
 * 1) expect no errors and no response if successful

Make folders and get assets: mkdir -p ~/.minecraft/bin ~/.minecraft/saves/ VERSION=1.6.2 wget https://s3.amazonaws.com/Minecraft.Download/versions/${VERSION}/${VERSION}.jar -P ~/.minecraft/versions/${VERSION}/
 * 1) COPY [DESKTOP]\%appdata%\.minecraft\.bin\minecraft.jar TO ~/.minecraft/bin/
 * 1) mkdir -p ~/.minecraft/bin ~/.minecraft/saves/
 * 2) rm -f ~/.minecraft/saves/World1
 * 3) ln -s /home/minecraft/[WORLD]/world ~/.minecraft/saves/World1
 * 4) Copy jar (from an updated client) to bin:
 * 5) # %appdata%\.minecraft\bin\minecraft.jar
 * 6) # C:\Documents and Settings\kenneth\Application Data\.minecraft\bin\minecraft.jar
 * 7) cp [...]/minecraft.jar ~/.minecraft/bin/
 * 8) for i in $( seq 1 10 ) ; do echo "copy minecraft.jar to ~/.minecraft/bin/" ; done

Install Minecraft Overviewer: cd ~ git clone git://github.com/overviewer/Minecraft-Overviewer.git overviewer cd overviewer cp ~/.src/Imaging-1.1.7/libImaging/Imaging.h. cp ~/.src/Imaging-1.1.7/libImaging/ImPlatform.h. python setup.py build python overviewer.py # test - shows help
 * 1) git clone https://github.com/rmrector/Minecraft-Overviewer MO  # rotate map
 * 2) git clone https://github.com/brownan/Minecraft-Overviewer.git MO  # original
 * 1) ~/overviewer-python/bin/python overviewer.py
 * 2) ./overviewer.py  # test

Update Minecraft Overviewer: cd overviewer git fetch git pull git checkout. python setup.py build python overviewer.py # test - shows help


 * 1) cp /some/path/minecraft.jar .minecraft/bin/

Minecraft Overviewer Execution
Execution: python overviewer.py --rendermodes=normal,lighting,night,spawn,cave 1 /www/minecraft/map
 * 1) overviewer.py [OPTIONS] 

Alternatives: python overviewer.py ~/iago/world /www/minecraft/map /home/minecraft/python/bin/python /home/minecraft/overviewer/overviewer.py --rendermodes=normal,lighting,night,cave ~/iago/world /www/minecraft/map

Crontab: 0 3 * * *	~/genmap.sh

~/genmap.sh:
 * 1) !/bin/sh

MAP_HOME=/www/minecraft USER_HOME=/root PYTHON=/opt/python26/bin/python

THEDATE=`date`

function header { cat > $MAP_HOME/index.html <> $MAP_HOME/index.html <Overview Map: $1 " >> $MAP_HOME/index.html }

header genmap mc footer