Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sprocket-rl-parser"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
description = "Python bindings for the Rocket League replay parser boxcars."
authors = ["Jake Bailey <asaxplayinghorse@gmail.com>"]
Expand All @@ -13,6 +13,6 @@ name = "_lib"
crate-type = ["cdylib"]

[dependencies]
boxcars = "=0.11.5"
boxcars = { git = "https://github.com/1l1venbb/boxcars", rev = "a5632f133c8c1a37b388bb0161044c16d66d3d4b" }
serde_json = "1.0.133"
pyo3 = { version = "0.22.0", features = ["generate-import-lib"] }
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "sprocket-rl-parser"
version = "1.3.0"
version = "1.3.1"
description = "Rocket League replay parsing and analysis."
readme = "README.md"
requires-python = ">=3.7"
Expand Down
Binary file not shown.
18 changes: 18 additions & 0 deletions tests/replay_network_regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,21 @@ fn parses_network_frames_with_anonymized_player_names() {

assert_eq!(network_frames.frames.len(), 10_659);
}

const SEASON_24_REPLAY: &[u8] =
include_bytes!("../test-files/2C4334E411F1B759F5C4E0BCBCD7229C.replay");

#[test]
fn parses_network_frames_for_season_24_replay() {
let replay = ParserBuilder::new(SEASON_24_REPLAY)
.with_network_parse(NetworkParse::IgnoreOnError)
.on_error_check_crc()
.parse()
.expect("replay should parse");

let network_frames = replay
.network_frames
.expect("network parsing errors must not be silently downgraded to missing frames");

assert_eq!(network_frames.frames.len(), 7_200);
}