Program to compress Valve Map Files (VMF) for archival purposes. Compatible with any Source Engine game.
P.S. the download link is for the source code, not the program itself. for that, go to "releases" tab and download the first zip file in a latest release.
The program will remove parameters that have default values. When the modified file is opened, Hammer will fill the missing parameters with default values; nothing changes, hence lossless optimization.
Since saving the file will re-add the default values again, the tool is best used for archival purposes. (if you're like me and have a lot of vmfs of your previous map versions, this tool will be useful)
- Launch vmfoptimizer.exe.
- Drop your .vmf file into the command window or type its directory manually.
- After several seconds, the optimized vmf will be created in the same directory as the original file.
- To edit the settings, open "settings" file and change the parameters. The parameters are explained at the bottom.
Code by dabmasterars