better descriptions for the paths
parent
62ffd2258b
commit
146ce6abfb
6
init.lua
6
init.lua
|
@ -187,12 +187,14 @@ for nr = 1,#path_names do
|
||||||
local f = lengths[2] -- "front" in 1/10 nodes
|
local f = lengths[2] -- "front" in 1/10 nodes
|
||||||
|
|
||||||
local h = string.format(":"..path_names[nr] .."path_track_%02d%02d",b,f)
|
local h = string.format(":"..path_names[nr] .."path_track_%02d%02d",b,f)
|
||||||
|
local d = string.format(path_names[nr] .."path %02d-%02d",b,f)
|
||||||
local h2 = string.format(":"..path_names[nr] .."path_track_narrow_%02d%02d",b,f)
|
local h2 = string.format(":"..path_names[nr] .."path_track_narrow_%02d%02d",b,f)
|
||||||
|
local d2 = string.format(path_names[nr] .."path (narrow) %02d-%02d",b,f)
|
||||||
|
|
||||||
minetest.register_node(own_name..h,
|
minetest.register_node(own_name..h,
|
||||||
{
|
{
|
||||||
tiles = { tile_name[nr], },
|
tiles = { tile_name[nr], },
|
||||||
description = h,
|
description = d,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
@ -213,7 +215,7 @@ for nr = 1,#path_names do
|
||||||
minetest.register_node(own_name..h2,
|
minetest.register_node(own_name..h2,
|
||||||
{
|
{
|
||||||
tiles = { tile_name[nr], },
|
tiles = { tile_name[nr], },
|
||||||
description = h2,
|
description = d2,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 718 B |
|
@ -1,14 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ls -1r *.lua *.txt | head -12 >.filelist
|
find *.lua *.txt textures -type f | fgrep -v textures/advtrains_platform_version_node.png | head -12 >.filelist
|
||||||
|
|
||||||
echo "$(date --iso=m) [$(basename "$(realpath . )")]" >.datelist
|
echo -n "" >.datelist
|
||||||
|
|
||||||
cat .filelist | while read line ; do
|
cat .filelist | while read line ; do
|
||||||
echo "$(date --iso=m -r ${line}) ${line}" >>.datelist
|
echo "$(date --iso=m -r ${line}) ${line}" >>.datelist
|
||||||
done
|
done
|
||||||
|
|
||||||
anytopnm .datelist >.image
|
|
||||||
|
|
||||||
|
(echo "$(date --iso=m) [$(basename "$(realpath . )")]" ; cat .datelist | sed 's/ textures/ t/' | sort -r ) | anytopnm >.image
|
||||||
|
|
||||||
WIDTH=$(head -2 .image | tail -1 | awk '{ print $1 }')
|
WIDTH=$(head -2 .image | tail -1 | awk '{ print $1 }')
|
||||||
HEIGHT=$(head -2 .image | tail -1 | awk '{ print $2 }')
|
HEIGHT=$(head -2 .image | tail -1 | awk '{ print $2 }')
|
||||||
|
|
Loading…
Reference in New Issue