0 of 0

File information

Last updated

Original upload

Created by

Mattski123

Uploaded by

mattski123

Virus scan

Safe to use

Tags for this mod

About this mod

This allows you to remove sections when editing .vmf files.

Permissions and credits
Donations
Why make this?
Well, if I was to make a texture pack for instance,
and I didn't want to have to keep highlighing and backspacing duplicate lines
I have already checked, then this script will help to remove those lines
so that I don't have to go over the same textures.

It is very niche I know, but thought it might help or be useful for someone.

Example Use case

Prerequisites:
Python
A knowledge of how to run python scripts
Copies of your original VMF files

How to use:
Spoiler:  
Show
1. Download script.
2. Put script into your folder that has your newly copied .vmf files
3. Open script in IDE or text editor and look for line 57
(which says "if re.search(r'"material"\s+"tools/toolsnodraw"', stripped_block_line, re.IGNORECASE):")
4. For example, if you wanted to remove the pier wood you would replace
"tools/toolsnodraw" with "wood/pierwoodd".
You can edit this to whatever materials you'd like to have removed.
5. Run script in whatever terminal you use (cmd, powershell whatever)
6. Cleaner .vmf files now!