Page 1 of 1

Texture folder for games folder

PostPosted: Sat Nov 09, 2013 13:10
by Neuromancer
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.

PostPosted: Sat Nov 09, 2013 18:00
by VanessaE
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.

PostPosted: Sat Nov 09, 2013 18:25
by Neuromancer
Great idea! Thanks Vanessa!