From dcecbaef967da06147fa1dc431062b554cc187bb Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Wed, 26 Mar 2014 17:36:23 +0100 Subject: [PATCH] Clarify autogenerating colors --- autogenerating-colors.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autogenerating-colors.txt b/autogenerating-colors.txt index 4bee21a..2791dc3 100644 --- a/autogenerating-colors.txt +++ b/autogenerating-colors.txt @@ -86,7 +86,7 @@ while read -r p; do set -- junk $p shift if [[ ! $1 == "#" && ! $1 == "" ]]; then - echo $1 `python /path/to/avgcolor.py $(find /minetest/dir -type f -name $2)` + echo $1 `python /path/to/avgcolor.py $(find /path/to/minetest/directory/ -type f -name $2)` fi done < nodes.txt > colors.txt # Use nicer colors for water and lava @@ -94,8 +94,8 @@ sed -re 's/^default:water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106 128 224/' sed -re 's/^default:lava_([a-z]+) [0-9 ]+$/default:lava_\1 255 100 0/' < colors.txt > tmp$$ && mv tmp$$ colors.txt sed -re 's/^default:([a-z_]*)glass ([0-9 ]+)$/default:\1glass \2 64 16/' < colors.txt > tmp$$ && mv tmp$$ colors.txt ==INSTRUCTIONS== -1) Get avgcolors.py running +1) Make sure avgcolors.py outputs the usage instructions 2) Add the dumpnodes mod to Minetest 3) Create a world and load dumpnodes & all mods you want to have a color entry for 4) Execute /dumpnodes ingame -5) Use the command to generate colors.txt +5) Use the command to generate colors.txt (obviously don't forget to replace /path/to/... with the actual path)