Giter VIP home page Giter VIP logo

rocketleaguereplayanalyzer's Introduction

Rocket League Replay Analyzer

This is a Python tool that allows you to load JSON replays, and analyze them by writing continuous queries in a Streaming SQL-like language.

Note: I used jjbott's Rocket League Replay Parser to convert replays to JSON format, so if you want to convert one of your replays to JSON so it can be loaded by this tool, you can use that Replay Parser.

Screenshot:

Screenshot

A query has this structure:
IF CONDITION
FOR TIME_WINDOW
THEN PRINT("MESSAGE")
EVERY DELAY SECONDS

CONDITION can be: a Python-like condition, which can use predefined values as well as numbers / booleans / operators etc.:

  • ball.x (the ball's position on the X axis);
  • ball.y (the ball's position on the Y axis);
  • player.1.x;
  • player.1.y;
  • player.2.x;
  • ...
  • player.6.x;
  • player.6.y;
  • midfield.x (the position at the middle of the field on the X axis: 0);
TIME_WINDOW can be:
  • LAST x SECONDS (where 'x' is a number)
  • LAST x ENTRIES (where 'x' is a number)

MESSAGE can be: a string printed when the condition is true 'FOR the LAST x SECONDS/ENTRIES'.

DELAY can be: a number (2, 10, 0.5, etc); the message will be printed AT MOST every DELAY seconds.

Query examples:

IF ball.x < midfield.x
FOR LAST 2 SECONDS
THEN PRINT("Orange team defending")
EVERY 1 SECONDS

IF ball.x > midfield.x
FOR LAST 2 SECONDS
THEN PRINT("Blue team defending")
EVERY 1 SECONDS

IF player.3.x > midfield.x and player.5.x > midfield.x and player.6.x > midfield.x
FOR LAST 1 SECONDS
THEN PRINT("Entire orange team is offensive")
EVERY 0.5 SECONDS

rocketleaguereplayanalyzer's People

Contributors

alxertion avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.