16 unstable releases (4 breaking)
| 0.6.0 | Nov 1, 2025 |
|---|---|
| 0.5.5 | Oct 19, 2025 |
| 0.5.4 | Aug 10, 2025 |
| 0.4.2 | Feb 21, 2025 |
| 0.2.3 | Jan 9, 2025 |
#440 in Game dev
380KB
10K
SLoC
Parser for Wolf RPG Editor map files
The aim of this crate is to allow users to easily parse Wolf RPG Editor map (.mps) files and expose a complete
interface to enable interaction with each component of a map, from the tiles to the events.
This package includes both a library crate that parses the map into a tree of rust structs and a binary crate that outputs the result in JSON format.
Usage
You can run the standalone directly through Cargo:
$ cargo run --project wolfrpg-map-parser --bin wolfrpg-map-parser --features="serde" <filepath>
Or you can add the crate and import the needed modules:
use wolfrpg_map_parser::Map;
fn main() {
match fs::read("filepath.mps") {
Ok(bytes) => {
let map: Map = Map::parse(&bytes);
// Data manipulation ...
}
Err(_) => {
// Error handling ...
}
}
}
Dependencies
~3.5MB
~126K SLoC