Skip to content

🚀 A simple solution for parsing and reading data from the Rocket League .replay file format.

Notifications You must be signed in to change notification settings

joshua-arts/rocket-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket-Ruby

Rocket Ruby provides developers (specifically in the Rocket League community) with an easy way to parse important match data from the .replay file format.

To-do list:

  • Convert the metadata to JSON in a nice easy to read way.
  • Fix issues parsing problem replays (outlier cases).

Requirements

Rocket Ruby uses the BinData Ruby gem. Currently there is not a bundled version, so if you plan to use Rocket Ruby you should install the BinData Ruby gem.

Usage

In order to use Rocket Ruby, all you have to do in include the replay.rb, property.rb and records.rb classes in your working directory.

require 'replay.rb'

From there, it is very simple to use. Below is a basic implementation where replay_file is a file of the .replay file format. A JSON file can be supplied, or if you need Rocket Ruby to generate its own, just pass nil.

# Create a new JSON file with the data.
myReplay = Replay.new(replay_file)
myReplay.parse_data

# Write to a specific JSON file (json_file).
myReplay = Replay.new(replay_file, json_file)
myReplay.parse_data


# Get back Hash as return.
myReplay = Replay.new(replay_file, nil,"hash")
myReplay.parse_data

Installation

I've yet to setup an easy way to install Rocket Ruby yet, but using it is very simple. Just add replay.rb and records.rb into the directory in which you wish to use Rocket Ruby (and make sure to include them in files that use them).

License

You are free to use Rocket Ruby as you wish. That said, if you do use it, please give me a mention and be sure to let me know so I can check out your project!

Credits

Big thanks to tfausak and danielsamuels as I used their works as a guide to reverse engineer the .replay file format.

And of course Psyonix, the wonderful devs of Rocket League.

About

🚀 A simple solution for parsing and reading data from the Rocket League .replay file format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages