TPF Tools/Installer Tutorial!
This tutorial will go over what TPF Tools can do and how to go about doing it.
Basically it replaces ModGenerator and ModMaker for textures by bypassing .mod's completely. This prevents problems where a .mod doesn't have the correct information for a specific user (eg wrong DLC/localisation) by building for each users' system.
For users who don't know the terms: Vanilla, .mod, .tpf, etc
A .mod is a file created by Saltisgood, The Fob, and WV as a means of distributing textures so users didn't have to fiddle with Texplorer. Texture .mods are now obsolete.
A vanilla install is a fresh installation with absolutely no modifications. Texplorer checks this and WV's VanillaMaker can help ensure you have a good installation.
Also read this.
- Ability to view TPF without extraction incl details, preview, and .def
- Extract specific textures from TPF
- Convert textures between .dds surface formats (DXT1, DXT5, etc)
- Install textures directly from TPF's and raw .dds files
- Create .mod as you would from Texplorer's ModGenerator
- Multiple TPF's and raw image installation supported
- Ability to replace invalid textures via right click
- Save all opened files as .tpf (2 versions, safe one = texmod incompatible, unsafe = texmod compatible)
- Works for ME1, 2, and 3
MOST PEOPLE LOOK HERE
Most users just want to install textures, so all you need to do is have a fixed TPF from Antarius or somewhere similar, and click the "Install valid mods" button. That's it!
You have to select which game you want to mod first with the top right "Change" button.
If you don't have a fixed TPF, you can try "Autofix and Install" which will attempt to fix invalid textures before installing. May not work...
NOTE: Invalid textures will be ignored.
How to use
How to open
First, how to get to it. Right here in the tools menu:
Main window info
That opens this window where you can see several things to do.
You can load textures through the Load TPF menu, or by dropping and dragging TPF's or .dds images.
NOTE: The top right button changes which Texplorer tree to look at (ie change this to mod each game)
After loading TPF
You can load a tpf up the top and explore it as you could in Salt's TPF Explorer tool. (Cos that's where I got the code from)
From here, you can see the contents of the TPF, extract them by right clicking, or extract them all with the menu up top.
Otherwise, right-clicking a texture gives the option to extract, convert, or replace it.
You can also remove textures from the list using the Delete key.
You can then Analyse the TPF against the Texplorer tree. This will search for matching textures as Texplorer's ModGenerator does. (Cos that's where I got the code)
Any invalid textures are flagged and the details of what's wrong with them is displayed next to them, and in the right-hand details pane.
You can now replace invalid textures with valid ones, and the program will check them again.
The Analyse button takes you to this stage automatically.
You can now both see and select the PCC's you wish the install to alter in the PCC's pane.
The final step then is to install all valid textures. This will ignore all invalid textures and only try to install valid ones.
New buttons are "Autofix and Install" and "Save to .mod". They perform their various functions without requiring user input after selecting TPF's.
Some other things you can do are repacking all open files as a .tpf. This is builds a tpf that this program can read, that is, you can distribute tpfs for this program. HOWEVER, they are not compatible with texmod. I'll see what I can do about that.
However you can also Rebuild with Texmod. This button is experimental and may not work on all systems. It creepily takes control of the mouse and just clicks the relevant buttons in Texmod.
You can also convert .dds textures between various surface formats, such as DXT1, DXT5, V8U8, and more.
DISCLAIMER: I take credit only for smooshing functions together. All real work was done by Salt, AK, WV, and no doubt others.