#parser #gamedev #goldsrc

nightly goldsrc-rs

Collection of file's parsers for goldsrc engine

9 releases (breaking)

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

#128 in Data formats

31 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

~255KB