rattletrap

Parse and generate Rocket League replays. https://github.com/tfausak/rattletrap#readme

Version on this page:2.1.5
LTS Haskell 8.6:2.1.5
Stackage Nightly 2017-03-29:2.2.0
Latest on Hackage:2.2.0
MIT licensed
Maintained by Taylor Fausak

Module documentation for 2.1.5

Rattletrap

Version badge Windows build badge Build badge

Rattletrap parses and generates Rocket League replays.

If you only want to parse replays, consider using Octane instead. It uses Rattletrap behind the scenes but provides a nicer interface.

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

Changes

Change log

Rattletrap uses Semantic Versioning. The change log is available through the releases on GitHub.

comments powered byDisqus