Page 1 of 1

How to make your own texture common for all TP?

PostPosted: Tue Jan 24, 2017 15:24
by Sergey
How to make your own texture common for all texture packs (TP)?

For example, I want to make my texture for highlighting block I point to. To do this I have to make halo.png. But if I make folder ~/.minetest/textures/all and put halo.png there, then I just make another TP with only thing that differ from default TP.

Re: How to make your own texture common for all TP?

PostPosted: Tue Jan 24, 2017 15:38
by RHR
Did you also selected the right TP in the menu?

Re: How to make your own texture common for all TP?

PostPosted: Tue Jan 24, 2017 15:44
by Sergey
RHR wrote:Did you also selected the right TP in the menu?

Yes. But view of right TP is not with my highlighting feature.

I have file ~/.minetest/textures/all/halo.png which defines highlighting of block I point to. Of course, in Settings tab "node highlighting" is selected in drop-down list instead of default "node outlining". I downloaded vanilla 32x32 texture pack. Unpack archive into ~/.minetest/textures/ folder. In Texturepacks tab now there are None, all and vanilla 32x32 texture packs. I select the lower texture pack and start playing but my highlighting method is ignored. Instead, default semitransparent blue wrapper around pointing block is applied.

Image

Re: How to make your own texture common for all TP?

PostPosted: Wed Jan 25, 2017 11:04
by RHR
Sergey wrote:I select the lower texture pack and start playing but my highlighting method is ignored. Instead, default semitransparent blue wrapper around pointing block is applied.

Of course, minetest only loads the texturepack you selected. If you want to play with the "vanilla 32x32 texture pack" and your new "halo.png" then you have to copy and paste it from the all folder to the vanilla 32x32 folder if you want to do it this way.

I saw you changed your title to "a texture for all texture packs". You can also change the original halo.png textrure in minetest/textures/base/pack then it is also loaded for all other texture packs you want to use.

Re: How to make your own texture common for all TP?

PostPosted: Wed Jan 25, 2017 16:31
by Sergey
RHR wrote:
Sergey wrote:I select the lower texture pack and start playing but my highlighting method is ignored. Instead, default semitransparent blue wrapper around pointing block is applied.

Of course, minetest only loads the texturepack you selected. If you want to play with the "vanilla 32x32 texture pack" and your new "halo.png" then you have to copy and paste it from the all folder to the vanilla 32x32 folder if you want to do it this way.

I saw you changed your title to "a texture for all texture packs". You can also change the original halo.png textrure in minetest/textures/base/pack then it is also loaded for all other texture packs you want to use.


Neither ~/.minetest/textures/all nor ~/.minetest/textures/base/pack does help. By the way, none of these folders did exist after I installed the game. Folder ~/.minetest/textures was empty. But, as I just said, manual creation of these folders and putting files in it, does not help.

Re: How to make your own texture common for all TP?

PostPosted: Sat Jan 28, 2017 18:05
by Sergey
Can anyone help me how to use my halo.png with any TP?

Re: How to make your own texture common for all TP?

PostPosted: Sat Jan 28, 2017 18:17
by ExeterDad
I think if you replace halo.png in textures/base/pack/halo.png
It will work with any texture pack. This will only work in your client.

Re: How to make your own texture common for all TP?

PostPosted: Sat Jan 28, 2017 18:22
by Sergey
ExeterDad wrote:I think if you replace halo.png in textures/base/pack/halo.png
It will work with any texture pack. This will only work in your client.

I already said that there were no folders like ~/.minetest/textures/all or ~/.minetest/textures/base/pack after installation of game. Folder ~/.minetest/textures was just empty. And manual creation of them and putting file there does not help.

Re: How to make your own texture common for all TP?

PostPosted: Sat Jan 28, 2017 22:47
by ExeterDad
Sergey wrote:
ExeterDad wrote:I think if you replace halo.png in textures/base/pack/halo.png
It will work with any texture pack. This will only work in your client.

I already said that there were no folders like ~/.minetest/textures/all or ~/.minetest/textures/base/pack after installation of game. Folder ~/.minetest/textures was just empty. And manual creation of them and putting file there does not help.

The textures folder I'm referring to isn't located in /.minetest. I'm sorry I didn't think to specify.
On my Debian system it's /usr/share/minetest/textures/base/pack
But it's a .deb package I rolled myself so the location might not be the same as official Debian. With a run in place build, I believe the textures folder is located right next to the bin folder. In a Windows run in place build it is there as well.
Sorry I can't be more specific, but there's so many ways to run Minetest :P

Re: How to make your own texture common for all TP?

PostPosted: Sat Jan 28, 2017 23:36
by Sergey
ExeterDad wrote:The textures folder I'm referring to isn't located in /.minetest. I'm sorry I didn't think to specify.
On my Debian system it's /usr/share/minetest/textures/base/pack
But it's a .deb package I rolled myself so the location might not be the same as official Debian. With a run in place build, I believe the textures folder is located right next to the bin folder. In a Windows run in place build it is there as well.
Sorry I can't be more specific, but there's so many ways to run Minetest :P

I don't want to overwrite what MT copied to system folders while installation (like in /usr/share/minetest). There are folder/file(s) for user-specific adjustment in user home directory (or in its config subdirectory). That is their purpose.

Re: How to make your own texture common for all TP?

PostPosted: Sun Jan 29, 2017 06:09
by ExeterDad
Sergey wrote:
ExeterDad wrote:The textures folder I'm referring to isn't located in /.minetest. I'm sorry I didn't think to specify.
On my Debian system it's /usr/share/minetest/textures/base/pack
But it's a .deb package I rolled myself so the location might not be the same as official Debian. With a run in place build, I believe the textures folder is located right next to the bin folder. In a Windows run in place build it is there as well.
Sorry I can't be more specific, but there's so many ways to run Minetest :P

I don't want to overwrite what MT copied to system folders while installation (like in /usr/share/minetest). There are folder/file(s) for user-specific adjustment in user home directory (or in its config subdirectory). That is their purpose.


At this time, aside from placing your own copy of halo.png in each texture pack, editing the system files are your only option. The image files in that texture folder ARE system files, and currently can't be overridden in the way you are wanting. The same goes for the mini map images. Feel free to submit a pull request with a fix on Github. This issue has been discussed countless times, and to my knowledge no one has made a move to help fix it.

Re: How to make your own texture common for all TP?

PostPosted: Wed Feb 01, 2017 21:37
by Sergey
ExeterDad wrote:
Sergey wrote:
ExeterDad wrote:I think if you replace halo.png in textures/base/pack/halo.png
It will work with any texture pack. This will only work in your client.

I already said that there were no folders like ~/.minetest/textures/all or ~/.minetest/textures/base/pack after installation of game. Folder ~/.minetest/textures was just empty. And manual creation of them and putting file there does not help.

The textures folder I'm referring to isn't located in /.minetest. I'm sorry I didn't think to specify.
On my Debian system it's /usr/share/minetest/textures/base/pack
But it's a .deb package I rolled myself so the location might not be the same as official Debian. With a run in place build, I believe the textures folder is located right next to the bin folder. In a Windows run in place build it is there as well.
Sorry I can't be more specific, but there's so many ways to run Minetest :P

I had to move my halo.png to system directory
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo cp -b halo.png /usr/share/minetest/textures/base/pack

Flag -b is needed to backup existing file. Just in case.

Re: How to make your own texture common for all TP?

PostPosted: Wed Mar 29, 2017 17:12
by DS-minetest
Just call create a folder named "server" in your .minetest/textures folder. Put in there the halo.png.