98 ratings
Repair Textures to Fix Hats and Make Them Paintable in SFM
By Pte Jack and 2 collaborators
First off, I want to thank R234 for inspiring me to create these videos and make this guide. I credit him in my Part 5 video. Other people I want to thank are Raptorn, Zappy and PalmliX. They are all great advisors to the community and from what I've seen in the discussion group, have provided an answer or guidance to almost EVERY question posted.

Believe it or not, 2 days ago I had no idea on how to edit Layers, the process I used was to create a jpg and try to edit that into the material. This is a MUCH simpler method and uses the actual material VTF files. No Exporting required.

This is a six part series on how to repair materials in the Robotic Boogaloo Hats and Misc Items, the Heavy's ToughGuy Toque and the VooDoo JuJu to fix them from being black or glowing and display there proper colours. The fixes also allow you to apply paint to colour your hats and misc items to suit your personal tastes. For now, I am just posting links to my video tutorials on my YouTube channel. If needed, I'll post step by steps later, but I think you'll find that the videos are pretty straight forward. I don't edit them all, but the process to fix the ones I miss is pretty much the same.

The process I demonstrate here uses GIMP with the VTF plug in to access the layed material files associated with paintable items, repair them, then apply the layers and save them back to the TF folders in SFM. I also demonstrate using Notepad++ to edit the material VMT files and what needs to be changed within them to paint the items using RGB colour values.

As for the image editing program, you can use any editor that allows you to apply a masing layer to a material image. GIMP, Photoshop, and a program called Paint.net have plugins available so that you can work with the VTF directly, (you don't have to export the material using VTFEdit to work with it). I am not sure if the plugin for Photoshop works with the Photoshop Essentials version or not, I haven't tried it yet, so if someone out there does try it, please leave a comment here on whether it works or not.

The videos here are geared to the novice user. So yes, they may seem long, but that is the way I create my tutorials, so that the novice understand the process and sees it repeated a few times and he can work along with it.
Rate  
Favorite
Favorited
Unfavorite
Here is a link to the entire Robo Boogaloo package that has been repaired by Sync.
For those who do not want to go through the agony of repairing the items themselves, Sync. has repaired all the items and posted a workshop download below.
http://steamcommunity.com/sharedfiles/filedetails/?id=239911131
All credit goes to Sync. for his effort.
(Beautiful Poster Sync. and the Community thanks you)
Now for Those Who Want to Learn... Samples of Before and After!!
Hats using their original Materials


Hats After their materials were edited


ToughGuy Toque and VooDoo JuJu Before

ToughGuy Toque and VooDoo JuJu After

Programs required for the process (and a couple of other vids)
This video discusses the various programs that will be required to fix the material VTF files and edit the VMT files.


http:// http://youtu.be/PqpeZO2WzOw

How to get the Boogaloo items into SFM

http:// http://youtu.be/WjLOiJfyhjo

Where to find the New TF2 VPK (Game Cache) files and how to extract them and get into SFM.

http:// http://youtu.be/__e0hZV0dp4
Fixing the Robotic Boogaloo Medic's Archimedes
How to fix the Black Robo Archimedes and make it Paintable

http:// http://youtu.be/GX1HIfLRDxI
Repairing the Heavy Bot's Tungsten Toque
How to fix the Tungsten Toque and a little secret on how to change the colour of the light on top.

This model appears translucient in SFM, even after applying the fix. I believe it has something to do with the ambient occulsion setting added to the model when it was compiled by the author. I'm still working on figuring out how to fix that, BUT, it does look alright in renders.

http:// http://youtu.be/67ChqAAqbbQ
Repairing the Pyro Bot's Figment Filament
Hmmm, Your light bulb a little Glowy? Can't change the colour from White to anything else?
Want to change this


into this


or make it Red like this


This one is an easy fix, no need for a lengthy video!!! (Yeaaaaahhhh!!!!)

Here's the fix:

1. Go to folder C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\tf\materials\models\workshop\player\items\pyro\robo_pyro_figment_filament and find the robo_pyro_figment_filament_1.vmt file

2. Open it in a text editor and find the line "$selfillum" "1"

3. change "$selfillum" "1" to "$selfillum" "0"

4. Save the file and over write the original

5. MAKE A BACK UP of the changed file.

Open SFM and load the Figment Filament and you'll find it clear, no glow.

Now to colour it simply change the RGB colours found in the "$colortint_base" "{ 100 87 76 }" line. To make it red like in the picture, the command would be "$colortint_base" "{ 255 0 0 }"

and that's it, you now have a functioning red Figment Filament.
Time lapse - Repairing the Robotic Boogaloo Gibus, Capotain, Demo Fro, Texastingallon, Last Watt and Baker Boy hats
This is a time lapse of me fixing the rest of the hats I had in the picture.

http:// http://youtu.be/OjQ3jz1m9ZY

The process was pretty much the same as the first 2 I demonstrated.
  • Search for the VTFs associated for the item being repaired,
  • open them up in the image editor,
  • inspect the base material to determine if it needs to be changed, if yes, initiate the mask layer,
  • select the areas you don't want to change,
  • then invert the selection,
  • copy the selection,
  • switch to the base material and make it the active edit,
  • paste the selection,
  • commit the floating layer,
  • switch back to the mask layer,
  • select the items you don't want to change,
  • invert the selection then
  • colour the selection pure white,
  • apply the mask
  • then export as a vtf back into the folder the original came from
  • Overwrite the old file.
Repairing the Heavy's ToughGuy Toque
The ToughGuy Toque is a good example of selecting Items in a mixed colour environment. It demonstrates how to use a different selection tool and to combine the selections and get them pasted onto the base material.

http:// http://youtu.be/euP5NuH0bzQ

Fixing the VooDoo JuJu - No material fixes require, just an edit to the VMT.
Now the JuJu has mystified a lot of us. It is nothing more than a white blob when imported into SFM. This is an example of a model and texture file that are perfectly fine. The actual problem lays in a setting used in the material's vmt file. A simple value fix in the vmt is all that is required.

http:// http://youtu.be/i4WCaghXQ1E

Repairing the Magical Mercenary
Making the Hat with No Name Paintable
Repairing the Cool Cat Cardigan
Material Fix Resource
Also here is a library of material fixes compiled by Sync.http://steamcommunity.com/sharedfiles/filedetails/?id=182880961
Fixes include dem Jujus, Filament and others. Go and have a look at it !
Nearly All The Material Fixes In 1 Pack !
All the Material Fixes, You Can Download it Here:

Note by PteJack about this material pack

I have downloaded this fix pack and have found that with changes to SFM since it was put together, a lot of the fixes just don't work. Models will go invisible or remain unpaintable. As such I have removed the link from this guide


https://www.dropbox.com/s/vuf9ovx1a5qlx62/Sfmmaterialsfixespack.rar

*Place The "Materials" Folder In Usermode OR Tf2 Folders, Copy and replace

Made By Doud!
Doud's Fix for Weapon Sheens and KillStreak Eyes
A Guide That i made for a Tricky Way on How To Make The sheens ?

Check This Guide:
http://steamcommunity.com/sharedfiles/filedetails/?id=251231034

Need The Killstreaker Effects ?

R234 & Cmp™ Made This Easy Guide

Check the Guide:
http://steamcommunity.com//sharedfiles/filedetails/?id=261359148

For Any Questions, Comment down below.
51 Comments
< >
Freedom in our Feathers May 6 @ 1:39am 
Thanks for the help, I uploaded a fixed version of the Belgian Detective for the Spy
LAME Ygg Mar 7 @ 6:36am 
do you guys know a mthod to add AO support? I know you can fix the transparency by disabling AO, but i want to actually fix it.
lowgrasswhite Dec 22, 2014 @ 1:42am 
Wow, thank you! ^^
Pte Jack  [author] Dec 21, 2014 @ 6:08pm 
At 12:55 in this video ( http://youtu.be/PqpeZO2WzOw?list=PLZavzoXLqZCoShnZFj-FWJIrgUReqLArP ) I show how to setup the GIMP plugin... Which files go in which folders.
lowgrasswhite Dec 20, 2014 @ 2:38am 
Thanks a lot, but sadly i had already tried that and it gave me an error message of some missing file, so i do believe i didn't download the right Gimp. It's confusing but i'll have to solve this on my own somehow :<
Pte Jack  [author] Dec 19, 2014 @ 11:05am 
http://code.google.com/p/gimp-vtf/ Get the plugin that is relavent to your OS
lowgrasswhite Dec 19, 2014 @ 8:18am 
I downloaded Gimp only for the sake of dem thousands of problematic models in SFM - and i found it does not read valve texture files, which is no shocker. Could someone tell me what to do with Gimp to make vmt and vtf files compatible with it? Or which version of Gimp am i supposed to download? Please provide a link if you can help, thanks a bunch in advance!
Arrow Prime™ [YouTube] Aug 5, 2014 @ 5:01am 
im not sure if the making backup par for filamental was necessary.. i painted it lime.. then i changed map.. and had to load everything again.. i put the filamental on and its just unpainted version.. but i cant paint it in any colour.. even if i change the rgb value in the vmt file.. i didnt make the backup..
Pte Jack  [author] Aug 4, 2014 @ 8:02am 
Hmmm, maybe I had already fixed it then... Hard to say, I have so many different versions floating on this laptop from other requests and personal projects.... lol
Taser, Shiny Hunter! ⇋HG-A⇌ Aug 4, 2014 @ 8:00am 
Okay. Thanks for the heads up. Managed to get the paint thing to get the right colour on it in the end. Hat proxy looks like it would need the Scrap Pack to have the same sort of fix the CCC had, just as a heads up.

Thanks again!