https://github.com/benct/mapcrafter-config
Mapcrafter configuration
https://github.com/benct/mapcrafter-config
config mapcrafter minecraft setup
Last synced: over 1 year ago
JSON representation
Mapcrafter configuration
- Host: GitHub
- URL: https://github.com/benct/mapcrafter-config
- Owner: benct
- Created: 2018-09-11T20:19:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T23:02:43.000Z (over 7 years ago)
- Last Synced: 2025-01-28T02:26:21.357Z (over 1 year ago)
- Topics: config, mapcrafter, minecraft, setup
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mapcrafter Configuration
Configuration and setup files for [Mapcrafter](https://mapcrafter.org/),
used for generating a map for the [Minecraft](https://minecraft.net/) server
[Lompemakeriet](http://minecraft.tomlin.no/maps/new/).
#### 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`