A Visual C# application to batch update the "$basetexture" parameter of VMT files based on where the file is located. I wrote this simply because its annoying to manually change that parameter if you move your vmt file and its near impossible with large quantities. There is a precompiled exe in bin/Debug but this includes the Visual Studio project files so you can compile it yourself.
- Select a folder of Valve texture and material files that are exactly where you want them
- Make a backup of the folder just to be on the safe side
- Hit the "Convert" button
- Wait while the program updates them (it might freeze in which case you can check the log.txt file created where the .exe is located to make sure its still running
- You are finished!
- If you plan on doing it again on a different directory without closing the application, hit the reset button
- Multithreading so I'm not doing all the work on the GUI thread and causing it to freeze
- Fixing the mysterious stopping bug
- Getting a better folder browser
With large numbers of vmt files, sometimes the application won't finish the job and will stop most of the way through. Like so: "Updated wood_plank_a.vmt! 6625/6730"