Clarify autogenerating colors

This commit is contained in:
Sfan5 2014-03-26 17:36:23 +01:00
parent d92ef319f1
commit 66813a36b8
1 changed files with 3 additions and 3 deletions

View File

@ -86,15 +86,15 @@ 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
sed -re 's/^default:water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
sed -re 's/^default:lava_([a-z]+) [0-9 ]+$/default:lava_\1 255 100 0/' < 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)