Map Resource Extractor

From Valve Developer Community
Jump to navigation Jump to search
MRE thumbnail.jpg
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Map Resource Extractor (MRE) is a small program that reads the VMF, and only copies the content that has been used in the map. It's written in C# and requires Microsoft .Net Framework 3.5 or higher.

Features

  • Materials (all materials, model materials as well, also including skybox, detail texture and detail.VBSP)
  • Models
  • Sounds

Usage

1. Select the Map File (.VMF)

Tip.pngTip:You can drag-and-drop files.

2. Add the Game Directory, which you have used custom content from, add multiple if necessary.

Note.pngNote:The program doesn't work with VPK packages, so if you have used any, extract them with any program, GCFScape is a great one.

3. Choose the resources directory, in which the used content will be copied, in the Options on the bottom left. By default, it is in <Program Filepath>/resources

4. Press START... on the bottom right. Now you will have to wait several minutes, depending on your computer. It copies all models found in the map (therefore only used models).

Then you will be prompted to select the decompiled models:


MRE decompile.JPG

There isn't any other way to know what materials the models uses, other than having their QC and SMD. For this you will need to decompile the models, which are in the resources directory.

Tip.pngTip:You can decompile them easily with any program, such as Crowbar


Select the folder you decompiled the models in, and press OK.



Now you have to wait again. The program reads all QC and SMDs to find all the used materials and skins. Then it reads all VMTs it has to read, to find all VTFs.

After that, it copies the used content to the resources directory.


Warning.pngWarning:Please consider that missing files shown in the log are most likely original content, which is found in the map, but not in the folders provided. You don't have to include the original files, as copying them is unnecessary.


Done. You can press the Go To Resources... button on the bottom left to directly go to the resources folder.

Version Log

Current version: Alpha

Developers note: This is the first version. If you find any issues or want to suggest anything (first make sure you have done everything alright) please check the Readme.txt, there is information where to report.

Download

Download @ Gamebanana.com

See also