[WIP / Tool] VMF Parser

REspawn

Newbie
Joined
May 10, 2009
Messages
3
Reaction score
0
I started writing a vmf parser that will load a raw vmf file so its data can be used outside of Hammer. I will release the full source for this when it's done.
I am doing this because I am on a business trip and have an abundance of time in the evenings and the weekend, only thing is I am using my laptop so I can't run the SDK and I don't have a huge selection of .vmf files to test on.

So far I have been testing on files I found on google, if people have two minutes would they mind downloading the app and running it on one or two of their files, all it does is parse the file to see if it can load it and convert the sections into usable data, it does not write anything.
If it can't read the file it will display debug info in the log, if this happens please post the log or the file.

Download: vmfParse.rar

Instructions: Select a vmf file with the "select file" button and then hit the "parse" button, info will be displayed in the log

Thanks for any help,
- Dave
 
I opened gm_melonrace.vmf from Garry's Mod 9.0.4 and got this:
Loading file: C:\Documents and Settings\<user>\Desktop\gm_melonrace.vmf
Loaded file with 648 section (40 root sections)
Starting conversion of raw file data...
ERROR: Failed to find bShowLogicalGrid for the sectionviewsettings, vmfViewSettings::loadSection
ERROR: Failed to load all values for the viewsettings section
ERROR: Failed to find detailmaterial for the sectionworld, vmfWorld::loadSection
ERROR: Failed to find detailvbsp for the sectionworld, vmfWorld::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
ERROR: Failed to load all values for the editor section
warning: Unused subsection in section: solid, name: editor -- vmfSolid::loadSection
ERROR: Failed to find visgroupautoshown for the sectioneditor, vmfEditor::loadSection
etc etc too many character (almost 30000) pleas shorten to 16000.
 
Loading file: C:\Valve\steamapps\thebarneyinblue\sourcesdk\hl2\maps\cable_car_001.vmf
Loaded file with 1722 section (11 root sections)
Starting conversion of raw file data...
warning: Unused subsection in section: world, name: hidden -- vmfWorld::loadSection
warning: Unused subsection in section: world, name: hidden -- vmfWorld::loadSection
warning: Unused subsection in section: world, name: hidden -- vmfWorld::loadSection
warning: Unused subsection in section: root, name: hidden -- vmfFile:: parseAndConvertRawFileContents
warning: Unused subsection in section: root, name: hidden -- vmfFile:: parseAndConvertRawFileContents
warning: Unused subsection in section: root, name: hidden -- vmfFile:: parseAndConvertRawFileContents
warning: Unused subsection in section: entity, name: hidden -- vmfEntity::loadSection
Raw file conversion complete with 0 errors and 7 warnings

I believe it ignores hidden brushes, and entities.
 
@tschumann - Thanks, I got the gm maps and fixed those sections
@Barnz - Thanks, the app was actually loading those sections but I never set the flag to say it had been loaded

Updated to version 0.0.1 at the same location

Thanks for the help guys,
-Dave
 
That worked better. I'm not too sure what it's meant to do though. Does it just load and check the data?
 
That worked better. I'm not too sure what it's meant to do though. Does it just load and check the data?

Yea thats all it does, I'm just adding visualization code now, thanks for taking the time to test it.
 
Back
Top