Skip to content

benct/mapcrafter-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapcrafter Configuration

Configuration and setup files for Mapcrafter, used for generating a map for the Minecraft server Lompemakeriet.

Build

  • git clone https://github.com/mapcrafter/mapcrafter.git
  • brew install boost libpng cmake libjpeg-turbo
  • cd mapcrafter
  • cmake . -DJPEG_INCLUDE_DIR=/usr/local/opt/jpeg-turbo/include/ -DJPEG_LIBRARY=/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib
  • make

Run

  • ./src/mapcrafter -c src/config.conf -j 8
  • ./src/mapcrafter -c src/config.conf -j 8 -F (force rerender)

Upload

  • tar -zcf map.tar.gz worlds/map_world_*
  • scp map.tar.gz xxxxx@xxx.tomlin.no:/www/lompemakeriet/maps/new/
  • ssh xxxxx@xxx.tomlin.no
  • cd /www/lompemakeriet/maps/new/
  • tar zxvf map.tar.gz &

Modifications

  • Copy leaflet.label.js/css to static/leaflet
  • Add leaflet.label.js/css to index.html
  • Replace in static/handler/markers.js: marker.bindPopup(markerInfo.text ? markerInfo.text : markerInfo.title); with marker.bindLabel(markerInfo.title, { noHide: true, direction: 'right', offset: [-20, -5] });
  • Copy markers from markers.js