# install all and compile: 6 minutes apt update apt install -y build-essential cmake git-core libboost-all-dev libphysfs-dev libssl-dev liblua5.1-0-dev libglew-dev libvorbis-dev libopenal-dev zlib1g-dev zip git clone -b stable-3.0 https://github.com/icculus/physfs.git && cd physfs && mkdir build && cd build && cmake .. && make -j $(nproc) && make install && cp /usr/local/lib/libphysfs.a /usr/lib/x86_64-linux-gnu/. cd ../.. wget https://github.com/gesior/otclient_mapgen/archive/refs/heads/master.zip unzip master.zip cd otclient_mapgen-master/data wget https://github.com/otland/forgottenserver/raw/refs/heads/1.4/data/world/forgotten.otbm cd things/ wget https://downloads-oracle.ots.me/data/tibia-clients/dat_and_spr/1098.zip unzip 1098.zip cd 1098/ wget https://github.com/otland/forgottenserver/raw/refs/heads/1.4/data/items/items.otb cd ../../.. sed -i 's/g_dispatcher.scheduleEvent(prepareClient_action, 1000)/prepareClient_action()/g' otclientrc.lua echo " function autoStartRender()" >> otclientrc.lua echo " prepareClient(1098, '/things/1098/items.otb', '/forgotten.otbm', 8, 1)" >> otclientrc.lua echo " generateMap('all', 30)" >> otclientrc.lua echo " end" >> otclientrc.lua echo " g_dispatcher.scheduleEvent(autoStartRender, 1000)" >> otclientrc.lua mkdir build cd build/ cmake -DCMAKE_BUILD_TYPE=Release .. make -j $(nproc) mv otclient ../otclient cd .. apt install -y xauth # disconnect from SSH # connect again to SSH with param `-X` ex. ssh -X root@46.62.135.189 # 3 minutes cd otclient_mapgen-master/ ./otclient # wait until it shows: Map images generation finished. # then press CTRL+C to close client mv exported_images/map website_and_php_files/map mkdir exported_images/map cd website_and_php_files/ apt install -y php php-gd php-zip # 45 sec ./linux_run_all.sh cd map_viewer systemctl stop apache2 php -S 0.0.0.0:80 http://46.62.135.189/index.htm#zoom,14,position,76,97,7 # if you have fast connection between servers (100+ mb/), generate zip file without compression, it's much faster zip -0 map.zip map # if you have slow connection between server, generate 7z, which uses more CPU, but reduces compressed files zip by 75% (347MB -> 80 MB) apt install -y p7zip-full 7za a map.7z map # to unpack it on server with www: unzip map.zip # or 7z x map.7z