|sys4-fr 3ba9c542bb Remplissage du dépôt||1 year ago|
|cmd/mtautocolors||1 year ago|
|mods/automappercolors||1 year ago|
|.hg_archival.txt||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|maps_mt_sha_bang_de_predefined.json||1 year ago|
|predefined.json||1 year ago|
A tool to generate a colors.txt from the registered nodes of a Minetest server. To have a colors.txt for Minetest mapping for example with MTSatellite you need a colors.txt file. You can grab one from VanessaE or build one yourself.
gravgun wrote the generator automappercolors. MTAutocolors is a slightly extended version of this generator being much faster, too (The image processor is written in Go instead of Python). It consists of two parts:
The included mod to be installed into your minetest server to extract the needed node informations.
mtautocolors to generate the final colors.txt file from the
informations gathered by the mod.
Your need a Go 1.8 or later installation to compile the program.
Go 1.9.2+ is recommended as there is a known issue with decoding images in earlier versions.
Mercurial and Git have to be install installed.
$ go get -u bitbucket.org/s_l_teichmann/mtautocolors/cmd/mtautocolors
will result in a binary
mtautocolors to be put into your PATH.
Install the mod into your
Minetest server. Start your game. Now you can type
/amcdumpnodes as a chat command in the Minetest client. This
will result in a file
amc_nodes.txt in the data directory of your world. Once created you can deactivate the
mod until you install or remove mods or update the game in a way which changes the registered nodes.
mtautocolors needs a few arguments. The path to the
amc_nodes.txt file generated with the mod and
paths to the images of your minetest server. This would be the root of the minetest server and/or the folder
where you have the actual minetest game. Something like this (adjusted to your setting):
$ mtautocolors -predefined=/predefined.json \ /home/xyz/minetest/worlds/colors/amc_nodes.txt \ /home/xyz/minetest/ /home/xyz/minetest_game > colors.txt
There is an option to overwrite the machine generated behavior for certain kinds of nodes with a JSON file. Look at predefined.json to get the idea. Basically its a list of entries with a regular expression matching the node name and a tuple of RGBA values which should be used instead of the machine generated.
Transparency: Some nodes should be transparent like glass or water.
mtautocolors only generates
a alpha channel for nodes with of certain draw types. By default this are the ones which drawtype contains ‘glasslike’ or ‘liquid’.
This can be overwritten with the