VMF Optimizer
Jump to navigation
Jump to search
Tip:You can combine VMF Optimizer with traditional file archivers, such as 7Zip, to compress the maps even further.
Important:Saving the file will re-add the default values again, increasing the file size back to it's original size. Thus the tool is best used for archival purposes.
Warning:Custom FGDs may change default values. It is recommended to disable them, or else the map may be corrupted.
Important:If the settings file is missing, the program will create a new one with the settings reset to default.
Important:"remove_ws" parameter slows down the program's performance by about 30%.
Note:TF2Maps page is no longer updated since Alpha 6 due to a permanent ban of the sole creator's account.
VMF Optimizer | |
---|---|
![]() | |
Download | |
Type | Open source Third Party Tool |
Developers | dabmasterars |
Engine | ![]() |
Platforms | ![]() |
VMF Optimizer is an open-source program that reduces the file size of VMF files. The tool was designed with Team Fortress 2 in mind, but can work with any
Source game.
Features
The program will remove VMF 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.
Maps made in Hammer and
Hammer++ can be compressed to around 75-80% and 50-60% of their original size respectively. After the program had finished optimizing, a log file will be generated, containing detailed statistics about the amount of space saved.



Instructions
- 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.
- You can continue adding files and perform the optimization consecutively with each file.
- To edit the settings, open "settings" file and change the parameters. The parameters are explained at the bottom.
Settings
The settings can be changed inside "settings.ini" file.
- verbose (bool)
- If 1, the program outputs more information. Affects log. Defaults to 0.
- remove_vertplus (bool)
- If 1, vertices_plus data is removed (
Hammer++ only). Defaults to 1.
- remove_ws (bool)
- If 1, whitespaces, tabs and newlines are removed. Defaults to 1.
- savelog (bool)
- If 1, a log file is made after the program stops working. Defaults to 1.
- tag (bool)
- If 1, tags the file as optimized, preventing the files to be optimized again. Defaults to 1.


External links

|