8000 GitHub - elephantflea/WadParser: A helper library to parse WAD files and extract lumps contained in Doom, Quake and Half-life WAD files.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A helper library to parse WAD files and extract lumps contained in Doom, Quake and Half-life WAD files.

Notifications You must be signed in to change notification settings

elephantflea/WadParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WadParser

A helper library to parse WAD files and extract lumps contained in WAD files.

Based on:

Supported Formats

  • IWAD/PWAD
    • Doom, Heretic, Hexen and Strife
  • WAD2
    • Quake
  • WAD3
    • Half-Life, Opposing Force, Blue Shift

Usage

import nz.doom.wadparser.containers.Lump;
import nz.doom.wadparser.containers.WAD;
import nz.doom.wadparser.parser.WadParser;

public class ListLumps {
    public static void main(String[] args) throws Exception {
        if(args == null || args.length != 1){
            System.err.println("WAD file required");
            System.exit(2);
        }
        
        Path wadPath = Paths.get(args[0]);
        
        WAD wad = WadParser.parse(wadPath);
        
        for(Lump lump : wad.getLumps()){
            System.out.println(lump.getName());
        }
    }    
}

See also

Also available for C# .NET Core https://github.com/elephantflea/WadParser-dotnet

About

A helper library to parse WAD files and extract lumps contained in Doom, Quake and Half-life WAD files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0