Last active
August 29, 2015 14:12
-
-
Save mpgirro/4db25f2d55fc90b8823f to your computer and use it in GitHub Desktop.
Minecraft-Overviewer rendering automator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
MINECRAFT_SERVER_WORLD=/usr/home/max/minecraft/world | |
MINECRAFT_OVERVIEWER_DIR=/usr/home/max/Minecraft-Overviewer | |
MINECRAFT_OVERVIEWER_OUTPUT_DIR=/websites/minecraft.disposia.org/http | |
MINECRAFT_OVERVIEWER_CONFIG_LOCAL=/usr/home/max/minecraft-overviewer-config.py | |
# view the config file at: https://gist.github.com/mpgirro/abe487fbed85c8157c49#file-minecraft-overviewer-config-py | |
MINECRAFT_OVERVIEWER_CONFIG_GIST=https://gist.githubusercontent.com/mpgirro/abe487fbed85c8157c49/raw/minecraft-overviewer-config.py | |
MINECRAFT_OVERVIEWER_TEXTURES=/usr/home/max/.minecraft/versions/1.8/1.8.jar | |
# Export the variables config.py needs | |
export MINECRAFT_SERVER_WORLD | |
export MINECRAFT_OVERVIEWER_DIR | |
export MINECRAFT_OVERVIEWER_OUTPUT_DIR | |
export MINECRAFT_OVERVIEWER_TEXTURES | |
# Download current version of the config file. | |
rm $MINECRAFT_OVERVIEWER_CONFIG_LOCAL | |
curl -fsSL $MINECRAFT_OVERVIEWER_CONFIG_GIST > $MINECRAFT_OVERVIEWER_CONFIG_LOCAL | |
# Render the World | |
cd $MINECRAFT_OVERVIEWER_DIR | |
python2.7 overviewer.py --config=$MINECRAFT_OVERVIEWER_CONFIG_LOCAL | |
# Generate the markers - looks similar to the rendering run, but --genpoi will only generate some JS | |
python2.7 overviewer.py --genpoi --config=$MINECRAFT_OVERVIEWER_CONFIG_LOCAL | |
cp $MINECRAFT_OVERVIEWER_DIR/overviewer_core/data/web_assets/icons/* $MINECRAFT_OVERVIEWER_OUTPUT_DIR/icons/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment