Clarify autogenerating colors
This commit is contained in:
parent
e96c23a8f7
commit
dcecbaef96
@ -86,7 +86,7 @@ while read -r p; do
|
|||||||
set -- junk $p
|
set -- junk $p
|
||||||
shift
|
shift
|
||||||
if [[ ! $1 == "#" && ! $1 == "" ]]; then
|
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
|
fi
|
||||||
done < nodes.txt > colors.txt
|
done < nodes.txt > colors.txt
|
||||||
# Use nicer colors for water and lava
|
# 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: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
|
sed -re 's/^default:([a-z_]*)glass ([0-9 ]+)$/default:\1glass \2 64 16/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
|
||||||
==INSTRUCTIONS==
|
==INSTRUCTIONS==
|
||||||
1) Get avgcolors.py running
|
1) Make sure avgcolors.py outputs the usage instructions
|
||||||
2) Add the dumpnodes mod to Minetest
|
2) Add the dumpnodes mod to Minetest
|
||||||
3) Create a world and load dumpnodes & all mods you want to have a color entry for
|
3) Create a world and load dumpnodes & all mods you want to have a color entry for
|
||||||
4) Execute /dumpnodes ingame
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user