#parser

nightly goldsrc-rs

Collection of file's parsers for goldsrc engine

9 releases (breaking)

new 0.14.1 Oct 16, 2024
0.13.2 Oct 16, 2024
0.12.1 Oct 14, 2024
0.11.1 Jun 17, 2024
0.7.3 Sep 1, 2022

#29 in Data formats

Download history 10/week @ 2024-07-01 26/week @ 2024-09-23 597/week @ 2024-10-14

623 downloads per month

MIT license

23KB
629 lines

goldsrc-rs

Collection of file's parsers for goldsrc engine.

Supported files

  • .wad containing fonts, mip textures, simple pictures
  • .bsp with all lumps support
  • .spr
  • .mdl

Installation

In your Cargo.toml add new dependency:

[dependcies]
goldsrc-rs = "0.14"

Usage

fn main() {
    let file = File::open("test.wad").unwrap();
    let entries = goldsrc_rs::wad_entries(file);
    // Parsing miptex, fonts and so on...

    let file = File::open("test.bsp").unwrap();
    let bsp = goldsrc_rs::bsp(file);

    // ...
}

Contributing

Pull requests are welcome. This hasn't been tested appropriately.

So I'll be glad to see your results and bugs.

License

MIT

Dependencies

~265KB