Skip to content
eminence edited this page Apr 8, 2011 · 2 revisions

Note: With the latest DTT code, this guide is obsolete. Please see the DTT Upgrade Guide for more info

Layers

Rendering

You will have to run gmap.py once for each type of map you want to have. In the future, this will change. Be sure to use different cache directories and output directories. For example:

./gmap.py --cachedir=normal.cache worlddir output_dir/
./gmap.py --cachedir=lighting.cache --lighting worlddir/ output_dir/lighting/
./gmap.py --cachedir=night.cache --night worlddir/ output_dir/night/

config.js configuration

You'll need at least version e9aa4b6228d7d20d041d4e57f691a151c61a5cf4. Modify the mapTypeData variable in config.js:

var mapTypeData=[
  {'label': 'Unlit', 'path': 'tiles'},
  {'label': 'Day',   'path': 'lighting/tiles'},
  {'label': 'Night', 'path': 'night/tiles'},
]

Notes

  • If you modify the config.js in your overviewer directory (instead of in the output_dir directly) you won't have your changes overwritten each time you run gmap.py. If you do this, you should edit config.js before running gmap.py
  • There will be extra unneeded files in the subdirectories of your output_dir (for example another index.html in output_dir/night/). These aren't needed and can safely be deleted. In the future they won't be generated.
Clone this wiki locally