[WIP / Tool] VMF Parser

Discussion in 'Game Modifications' started by REspawn, May 10, 2009.

  1. REspawn

    REspawn Newbie

    Joined:
    May 10, 2009
    Messages:
    3
    Likes Received:
    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
     
  2. tschumann

    tschumann Spy

    Joined:
    May 31, 2008
    Messages:
    838
    Likes Received:
    0
    I opened gm_melonrace.vmf from Garry's Mod 9.0.4 and got this:
    etc etc too many character (almost 30000) pleas shorten to 16000.
     
  3. Barnz

    Barnz Retired Content Creator
    Staff Member

    Joined:
    Jun 11, 2004
    Messages:
    5,171
    Likes Received:
    211
    I believe it ignores hidden brushes, and entities.
     
  4. REspawn

    REspawn Newbie

    Joined:
    May 10, 2009
    Messages:
    3
    Likes Received:
    0
    @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
     
  5. tschumann

    tschumann Spy

    Joined:
    May 31, 2008
    Messages:
    838
    Likes Received:
    0
    That worked better. I'm not too sure what it's meant to do though. Does it just load and check the data?
     
  6. REspawn

    REspawn Newbie

    Joined:
    May 10, 2009
    Messages:
    3
    Likes Received:
    0
    Yea thats all it does, I'm just adding visualization code now, thanks for taking the time to test it.
     

Share This Page