User Tools

Site Tools


Sidebar



Minetest Forum
Content Database
Git Repository
Bug Tracker
Website

usage:modules:netmapper

This is an old revision of the document!


Netmapper

advtrains_netmapper is an external program that reads the advtrains node database as well as the train save file. It uses these to produce a map of the railway network in a minetest world. It is written in Lua 5.1, so it is not compatible with 5.2 or above. You will need a command line lua interpreter to run it, available from the lua project, from the LuaJIT project, or through your package manager on linux.

netmapper produces an SVG file that shows the straight and curved sections of tracks and shades them from blue to red in ascending height (y-coordinate). It also draws yellow circles at the front of trains and black text to indicate their Line Number property next to that circle. You can optionally overlay it on the output of another program like mtmapper for a complete map.

Options

main.lua [-m file] [-t] [-w file] <datapath> <mapppath>
-m, --map-file    Only draw trains, requires an already-drawn file to draw on top of
-t, --no-trains   Do not draw trains
-w, --world-image Overlay a world image (this is an external image, e.g. from mtmapper that will be linked in the SVG output)
usage/modules/netmapper.1586660170.txt.gz · Last modified: 2020-04-12 04:56 by blockhead