Hl2Parse up on GitHub (Java library)

Grab your favourite IDE and tinker with the innards of game engines

Hl2Parse up on GitHub (Java library)

Postby Terr on Tue Mar 08, 2011 12:04 am

I finally got around to putting the Hl2Parse library (which I created for PackBSP) up on GitHub.

Github link

There's an interesting mix of stuff where I tried to handle everything and the kitchen sink and other areas where it's a very quick-and-dirty way to parse just the data I want out of files.

Of interest:
  • Map materials
  • Map entity data
  • Steam's ClientRegistry.blob
  • Various "Valve Data Format" files (soundscapes, material files)
  • FGD files
  • MDL files
  • PHY files

I'm currently working on a separate branch, exploring how to parse the DMX/PCF format and possibly converting some of the binary-format code to use Preon rather than raw byte manipulation.
Terr
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 12, 2009 11:35 pm

Re: Hl2Parse up on GitHub (Java library)

Postby Terr on Thu Mar 10, 2011 6:40 pm

For coders in other languages, I should also mention that the ANTLR grammar files for FGDs and Valve's key/value format can be used to build parsers in the language of your choice.
Terr
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 12, 2009 11:35 pm

Re: Hl2Parse up on GitHub (Java library)

Postby hekar on Mon Mar 14, 2011 10:47 pm

Wow, great job. What I did was convert keyvalue files into JSON through a series of regex and hacks, then parsed them using a JSON library.

Thanks for sharing the library, man. I bet this will help many people
hekar
Dumpling
Dumpling
 
Joined: Thu Dec 09, 2010 2:04 am

Return to Programming

Who is online

Users browsing this forum: No registered users