This is an old revision of the document!
Minecraft Map-Presenter Setup
Installation auf Redhat / CentOS 7
System Abhängigkeiten nachinstallieren
Installation der benötigten Pakete:
# yum -y update # yum install numpy python-imaging git gcc python-imaging-devel python-pillow-devel
Overviewer einrichten
Installation / Kompilierung des Hauptprogramms:
# mkdir /opt/mapExtractor # cd /opt/mapExtractor # git clone https://github.com/overviewer/Minecraft-Overviewer.git # cd Minecraft-Overviewer # python setup.py build
Konfiguration des mapExtractors
# wget https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/1.12.2.jar -P /opt/MapExtractor/
# vim /opt/mapExtractor/export_conf
worlds["survival"] = "/opt/minecraft/world/" renders["survivalday"] = { "world": "survival", "title": "Genoni-Server Tageszeit", "rendermode": smooth_lighting, "dimension": "overworld", } outputdir = "/var/www/html" texturepath = "/opt/mapExtractor/112.2.jar"
Skript zum Ausführen des mapExtractors
# vim /opt/MapExtractor/perform_mapExtraction.sh
#! /bin/bash newest_client_version=$(curl https://minecraft.net/en-us/download/server | grep https://s3.amazonaws.com/Minecraft.Download/versions/.*/minecraft_server.*.jar | cut -d '/' -f6) client_version_file=$(ls /opt/MapExtractor | grep *.jar) in_use_client_version=${client_version_file::-4} echo $in_use_client_version echo $newest_client_version if [ $in_use_client_version == $newest_client_version ]; then echo "Client is up to date!" fi if [ $in_use_client_version != $newest_client_version ]; then echo "CLIENT NEEDS UPDATE!" rm -f /opt/mapExtractor/*.jar wget "https://s3.amazonaws.com/Minecraft.Download/versions/$newest_server_version"/$newest_server_version.jar" -P /opt/MapExtractor/ sed -ri "s/\/opt\/mapExtractor\/(.*)\.jar/\/opt\/mapExtractor\/$newest_client_version.jar/" /opt/mapExtractor/export_conf fi cd /opt/MapExtractor/ ./overviewer.py -v --config=/opt/mapExtractor/export_conf
# chown -R mcuser:mcuser /opt/MapExtractor # chmod +x /opt/MapExtractor/perform_mapExtraction.sh # /opt/MapExtractor/./perform_mapExtraction.sh