rattletrap: Parse and generate Rocket League replays.

[ game, library, mit, program ] [ Propose Tags ]

Rattletrap parses and generates Rocket League replays.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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, 3.0.0, 3.1.0, 3.1.1, 3.1.2, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.1.0, 4.1.1, 4.1.2, 5.0.0, 5.0.1, 6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.3.1, 6.3.2, 6.4.0, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 8.0.0, 9.0.0, 9.0.1, 9.0.2, 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 9.0.8, 9.0.9, 9.0.10, 9.1.0, 9.1.1, 9.1.2, 9.1.3, 9.1.4, 9.2.0, 9.3.0, 9.3.1, 9.3.2, 9.3.3, 9.4.0, 9.4.1, 10.0.0, 10.0.6, 10.0.7, 11.0.0, 11.0.1, 11.1.0, 11.1.1, 11.2.0, 11.2.1, 11.2.3, 11.2.4, 11.2.5, 11.2.6, 11.2.7, 11.2.8, 11.2.9, 11.2.10, 11.2.11, 11.2.12, 11.2.13, 11.2.14, 12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.1.0, 12.1.1, 12.1.2, 12.1.3, 13.0.1, 13.0.2
Dependencies aeson (>=0.11.2.1 && <0.12), aeson-casing (>=0.1.0.5 && <0.2), base (>=4.9.0.0 && <4.10), bimap (>=0.3.2 && <0.4), binary (>=0.8.3.0 && <0.9), binary-bits (>=0.5 && <0.6), bytestring (>=0.10.8.1 && <0.11), containers (>=0.5.7.1 && <0.6), data-binary-ieee754 (>=0.4.4 && <0.5), rattletrap (>=0.1.0 && <0.2), regex-compat (>=0.95.1 && <0.96), template-haskell (>=2.11.0.0 && <2.12), text (>=1.2.2.1 && <1.3), vector (>=0.11.0.0 && <0.12) [details]
License MIT
Author
Maintainer Taylor Fausak
Category Game
Uploaded by fozworth at 2016-10-27T14:42:14Z
Distributions LTSHaskell:12.1.3, Stackage:13.0.2
Reverse Dependencies 1 direct, 0 indirect [details]
Executables rattletrap
Downloads 63709 total (303 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-11-18 [all 1 reports]

Readme for rattletrap-0.1.0

[back to package description]

Rattletrap

Windows build badge Build badge

Rattletrap parses and generates Rocket League replays.

Install

Rattletrap does not yet offer compiled binaries for download. To install it, first install Stack. Then download or clone this repository and run stack --install-ghc install.

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. A 4.3 MB replay file turns into a 123 MB JSON file. To easily view the file, use a JSON pretty printer and a pager. For example:

> cat output.json | python -m json.tool | less

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