l4d2_addon_parser

Crates.iol4d2_addon_parser
lib.rsl4d2_addon_parser
version1.3.1
created_at2025-11-07 18:41:36.400943+00
updated_at2025-11-15 05:40:52.797777+00
descriptionParse L4D2 VPK files and extract info from addoninfo.txt data and the mission data for campaigns, and other utilities
homepage
repositoryhttps://git.jackz.me/jackz/l4d2-addon-parser
max_upload_size
id1921995
size68,402
Jackz (Jackzmc)

documentation

README

L4D2 Addon Parser

A simple library that lets you parse l4d2 vpk files and extract useful information.

  • checksum (SHA256, SHA512) of VPK file
  • addoninfo.txt data (title, version, author, description, content types (weaon, campaign, sound, etc..))
  • mission data (coop campaign chapter ids)
  • check/set enabled addons

Usage

let file = File::open("addons/my-addon.vpk").unwrap();
let mut vpk = L4D2Addon::new(file).expect("failed to open vpk");
let info = vpk.info().expect("failed to parse addon").expect("addon does not include addoninfo.txt");
println!("Addon Title: {:?}", info.title);
println!("Addon Author: {:?}", info.description);
println!("Is Map: {}", info.content.is_map);

License

MIT

Commit count: 0

cargo fmt