User Tools

Site Tools


usage:modules:netmapper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
usage:modules:netmapper [2020-04-12 10:03]
blockhead external links, fix list of options, give an example
usage:modules:netmapper [2023-12-11 06:09] (current)
blockhead capital ell Lua
Line 1: Line 1:
 ====== Netmapper ====== ====== Netmapper ======
  
-''advtrains_netmapper'' is an [[https://git.bananach.space/advtrains_netmapper.git/|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.+''advtrains_netmapper'' is an [[https://git.bananach.space/advtrains_netmapper.git/|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 [[https://github.com/minetest/minetestmapper|mtmapper]] for a complete map.+netmapper produces an SVG file that shows the straight and curved sections of tracks and shades them from blue to red (by default) in ascending height (y-coordinate). It also draws yellow or dark green 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 [[https://github.com/minetest/minetestmapper|mtmapper]] for a complete map.
  
 ===== Options ===== ===== Options =====
Line 15: Line 15:
 </code> </code>
  
-Output will always be to ''<datapath>/out.svg''. netmapper will always clobber any existing file there.+Output will always be to ''<datapath>/out.svg''. netmapper will always clobber (replace) any existing file there.
  
 ===== Examples ==== ===== Examples ====
Line 23: Line 23:
 </code> </code>
  
 +===== Forks =====
  
 +==== Blockhead's Fork ====
 +Blockhead's Fork ([[https://github.com/Montandalar/advtrains_netmapper/tree/drawmore|repository]]) draws linetrack watertrack, draws TCBs perpendicular to the track at the position, draws track numbers on station/stop rail text, attempts to scrape and draw some atlatc stations, and has some other refactoring.
 +
 +Unfortunately, this fork hasn't yet been updated for LuaSer / format, the format used used since Advtrains 2.2.0.
usage/modules/netmapper.1586678616.txt.gz · Last modified: 2020-04-12 10:03 by blockhead