parse a l4d2 VPK file and extract the addoninfo.txt data and the mission data for campaigns
Find a file
2025-11-14 09:07:19 -06:00
resources/tests Fix addonlist not working with workshop\ entries 2025-11-09 12:42:11 -06:00
src Use io::copy instead 2025-11-14 09:07:19 -06:00
tests Add L4D2Asson::hash_256,hash512 and more docs 2025-11-09 15:05:17 -06:00
.gitignore Remove .idea 2025-11-05 13:43:10 -06:00
Cargo.lock Use io::copy instead 2025-11-14 09:07:19 -06:00
Cargo.toml Use io::copy instead 2025-11-14 09:07:19 -06:00
LICENSE Add license, README 2025-11-05 13:49:14 -06:00
README.md Add L4D2Asson::hash_256,hash512 and more docs 2025-11-09 15:05:17 -06:00

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