Texture folder for games folder

User avatar
Neuromancer
Member
 
Posts: 793
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Texture folder for games folder

by Neuromancer » Sat Nov 09, 2013 13:10

I've noticed that when working on creating a game, that I have a bunch of mods that I want to keep updated to latest, but that I also want to tweak their textures to create a unified style for the game. Unfortunately, it seems like the only way to modify the textures in the game itself is to change the textures in the mod folders and then to keep re-applying the textures to the mods every time the mods are upgraded. I assumed I could just create a texture folder in the games folder and dump custom textures in there that would override all the Mod's textures, kind of like we do now for texture packs. Unfortunately this didn't work. I think it would make sense for texture packs in the normal textures folder to work as they do now, overriding game textures.

What I'm saying is that any texture in games\[gamename]\textures should automatically override all the game's mod textures. This shouldn't be configurable by the player. If they want to modify the games texture, they should enable a texture pack the way they normally do.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Sat Nov 09, 2013 18:00

Simple: abuse the mod dependency resolver. :-) Create a new mod to "unify" everything. It need not do anything other than supply a depends.txt, an empty init.lua file, and a textures folder.

Put all of the mods you want to change into this mod's depends.txt. For each one that you want to be strictly optional, add a question mark as usual, e.g.:
depends.txt
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
default
plants_lib
wool?
moreblocks?
mesecons?

..and so on. Include the updated textures into your "unifier" mod's texture folder. Then simply add this mod to your game or whatever, so that it gets loaded in the usual manner.

As long as the other mods are loaded first and your "unifier" mod is the very last one to load, your new textures should override the defaults.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Neuromancer
Member
 
Posts: 793
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Sat Nov 09, 2013 18:25

Great idea! Thanks Vanessa!
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests