The rattletrap package

[Tags:library, mit, program, test]

Rattletrap parses and generates Rocket League replays.


[Skip to Readme]

Properties

Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 1.0.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.3.0, 2.3.1, 2.4.0, 2.5.0, 2.5.1, 2.5.2
Change log CHANGELOG.markdown
Dependencies aeson (>=1.0.2 && <1.3), base (>=4.9.1 && <4.11), bimap (>=0.3.2 && <0.4), binary (>=0.8.3 && <0.9), binary-bits (==0.5.*), bytestring (>=0.10.8 && <0.11), containers (>=0.5.7 && <0.6), data-binary-ieee754 (>=0.4.4 && <0.5), rattletrap, template-haskell (>=2.11.0 && <2.13), text (>=1.2.2 && <1.3), vector (>=0.11.0 && <0.13) [details]
License MIT
Author
Maintainer Taylor Fausak
Category Game
Home page https://github.com/tfausak/rattletrap#readme
Bug tracker https://github.com/tfausak/rattletrap/issues
Source repository head: git clone https://github.com/tfausak/rattletrap
Uploaded Tue Jul 25 13:03:22 UTC 2017 by fozworth
Distributions LTSHaskell:2.5.0, NixOS:2.5.2, Stackage:2.5.2, Tumbleweed:2.1.5
Downloads 1186 total (113 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-07-25 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for rattletrap

Readme for rattletrap-2.5.2

Rattletrap

Version badge Windows build badge Build badge

Rattletrap parses and generates Rocket League replays.

Install

Get Rattletrap by downloading and unpacking the latest release for your platform.

To build Rattletrap from source, install Stack. Then run stack --resolver nightly install rattletrap.

Replays

Rocket League saves your replays in a folder that depends on your operating system.

  • Windows: %UserProfile%\Documents\My Games\Rocket League\TAGame\Demos
  • macOS: $HOME/Library/Application Support/Rocket League/TAGame/Demos
  • Linux: $HOME/.local/share/Rocket League/TAGame/Demos

Parse

Rattletrap can parse (decode) Rocket League replays and output them as JSON.

> rattletrap decode input.replay output.json
# or
> rattletrap decode input.replay > output.json
# or
> rattletrap.decode < input.replay > output.json

The resulting JSON is minified, but extremely large. The output can be up to 50 times larger than the input.

Generate

Rattletrap can also generate (encode) Rocket League replays from JSON files.

> rattletrap encode input.json output.replay
# or
> rattletrap encode input.json > output.replay
# or
> rattletrap.encode < input.json > output.replay

If the JSON was generated by Rattletrap, the resulting replay should be identical to the original.

Modify

By inserting another program between parsing and generating, Rattletrap can be used to modify replays.

> rattletrap decode < original.replay |
  modify-replay-json |
  rattletrap encode > modified.replay