-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_render_remote_script.sh
44 lines (33 loc) · 1.66 KB
/
map_render_remote_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# This script is used by ./map_render.py. Don't call this script directly!
echo "Renderer: Installing Overviewer..."
cd ~
# Installing dependencies
sudo apt-get update >/dev/null 2>&1
sudo apt-get install -y build-essential python3-pillow python3-dev python3-numpy >/dev/null 2>&1
# Downloading Overviewer
wget -O overviewer-source.tar.gz https://github.com/overviewer/Minecraft-Overviewer/archive/dc6f8cfcbd1056facac369152e88fb24bab86cc9.tar.gz >/dev/null 2>&1
tar xvzf overviewer-source.tar.gz >/dev/null 2>&1
rm overviewer-source.tar.gz >/dev/null 2>&1
mv Minecraft-Overviewer* overviewer
cd ~/overviewer
# Compiling Overviewer
python3 setup.py build >/dev/null 2>&1
echo "Renderer: Downloading Minecraft textures and our map config..."
# Downloading the Minecraft client for textures
wget -O client.jar https://overviewer.org/textures/1.15.2 >/dev/null 2>&1
# These variables are used in config.py, see https://github.com/dq-server/overviewer-config
export MINECRAFT_WORLD_DIR="~/world-backup"
export MINECRAFT_MAP_DIR="~/overviewer/map"
export MINECRAFT_CLIENT_PATH="~/overviewer/client.jar"
# Downloading map config and icons from https://github.com/dq-server/overviewer-config
wget -O config.tar.gz https://github.com/dq-server/overviewer-config/tarball/master >/dev/null 2>&1
tar xvzf config.tar.gz >/dev/null 2>&1
rm config.tar.gz >/dev/null 2>&1
mv dq-server-overviewer-config* config
echo "Renderer: Rendering the map, this takes 10-15 minutes..."
mkdir ~/overviewer/map
cd ~/overviewer/config
python3 ../overviewer.py --config=config.py --processes 96 >/dev/null 2>&1
python3 ../overviewer.py --config=config.py --genpoi >/dev/null 2>&1
cp -r icons/* ../map/icons