https://github.com/vikpe/bspparser
Extract information from .bsp files.
https://github.com/vikpe/bspparser
bsp maps quake quakeworld
Last synced: 5 months ago
JSON representation
Extract information from .bsp files.
- Host: GitHub
- URL: https://github.com/vikpe/bspparser
- Owner: vikpe
- License: mit
- Created: 2024-06-24T16:02:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-26T20:15:21.000Z (about 1 year ago)
- Last Synced: 2024-09-17T01:39:23.078Z (10 months ago)
- Topics: bsp, maps, quake, quakeworld
- Language: Rust
- Homepage:
- Size: 681 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.YML
- License: LICENSE
Awesome Lists containing this project
README
# bspparser [](https://github.com/vikpe/bspparser/actions/workflows/test.yml) [](https://crates.io/crates/bspparser) [](https://docs.rs/bspparser/)
> Parse Quake .bsp files
## Usage
```rust
let file = &mut fs::File::open("tests/files/povdmm4.bsp")?;
let bsp = BspFile::parse(file)?;
println!("{:?}", bsp.entities);
``````json
[
{
"wad": "gfx/base.wad",
"worldtype": "2",
"sounds": "6",
"message": "The Abandoned Base",
"classname": "worldspawn"
},
{
"classname": "light_fluoro",
"origin": "264 -32 88"
}
// ...
]
```