Git Product home page Git Product logo

streamgraphicsgsi-rl's Introduction

StreamGraphicsGSI-RL

Version: 1.7.0

Orignal coded based on diogotr7/AuroraGSI-RocketLeague.

Additional ideas and code used as examples pulled from:

Designed for use with OSU Buckeye Gaming Collective's Stream Graphics program.

Setup

Once installed, it's best to create a new line in the cfg/binds.cfg file with the following line:

bind R "plugin reload streamgraphicsgsi-rl"

This will ensure that you can reload the plugin as needed. Sometimes the plugin does not start when joining a match, and pressing R in this case will reload the plugin and start the integration.

Additionally, the URL where the GSI JSON will be sent to via HTTP POST is configured via various variables. This can be set by pressing F6 and typing (for example) streamgraphics_gsi_url "http://localhost:8080". This same text above can also be added to the cfg/config.cfg file in the BakkesMod folder where it can be automatically set when Rocket League starts.

Current list of variables:

  • streamgraphics_gsi_url: Base URL prefix
  • streamgraphics_gsi_url_data: Path to send GSI data to.
  • streamgraphics_gsi_url_event: Event URL prefix
  • streamgraphics_gsi_url_show_player_info: Path to POST on show_player_info
  • streamgraphics_gsi_url_hide_player_info: Path to POST on hide_player_info

How paths are combined:

  • GSI data is sent by combining streamgraphics_gsi_url + streamgraphics_gsi_url_data
  • Event messages are sent by combining (for example): streamgraphics_gsi_url + streamgraphics_gsi_url_event + streamgraphics_gsi_url_show_player_info

Notes

  • If you are not a Spectator in an online game, you will most likely get scrambled boost values for the opposing team. Only rely on the boost values when a Spectator.

Example JSON Output

Note: Example may not be complete and list all fields.

{
    "game": {
        "status": 1
    },
    "match": {
        "playlist": 37,
        "team": {
            "0": {
                "blue": 0.75,
                "boost": 1.1763970851898193,
                "goals": 2,
                "green": 0.18000000715255737,
                "name": "Blue",
                "red": 0.0
            },
            "1": {
                "blue": 0.0,
                "boost": 1.7351298332214355,
                "goals": 2,
                "green": 0.23999999463558197,
                "name": "Orange",
                "red": 0.699999988079071
            }
        },
        "time": -1
    },
    "player": {
        "assists": 1,
        "boost": 1.0,
        "demos": 0,
        "goals": 0,
        "name": "enzanki_ars",
        "own_goals": 0,
        "saves": 0,
        "score": 260,
        "shots": 14,
        "spec_slot": 6,
        "team": 1
    },
    "provider": {
        "appid": 13377331,
        "name": "rocketleague"
    },
    "spec_players": {
        "1": {
            "assists": 0,
            "boost": 0.6616412997245789,
            "demos": 0,
            "goals": 2,
            "name": "the rial gamer",
            "own_goals": 0,
            "saves": 0,
            "score": 692,
            "shots": 45,
            "spec_slot": 1,
            "team": 0
        },
        "2": {
            "assists": 1,
            "boost": 0.1509445458650589,
            "demos": 0,
            "goals": 0,
            "name": "ElectiveBeast66",
            "own_goals": 0,
            "saves": 0,
            "score": 496,
            "shots": 42,
            "spec_slot": 2,
            "team": 0
        },
        "3": {
            "assists": 1,
            "boost": 0.3638111650943756,
            "demos": 0,
            "goals": 0,
            "name": "Dozy_Youtube",
            "own_goals": 0,
            "saves": 0,
            "score": 688,
            "shots": 51,
            "spec_slot": 3,
            "team": 0
        },
        "4": {
            "assists": 0,
            "boost": 0.0,
            "demos": 0,
            "goals": 0,
            "name": "",
            "own_goals": 0,
            "saves": 0,
            "score": 0,
            "shots": 0,
            "spec_slot": 0,
            "team": -1
        },
        "5": {
            "assists": 0,
            "boost": 0.28846094012260437,
            "demos": 0,
            "goals": 2,
            "name": "hockey-Packman",
            "own_goals": 0,
            "saves": 0,
            "score": 892,
            "shots": 54,
            "spec_slot": 5,
            "team": 1
        },
        "6": {
            "assists": 1,
            "boost": 1.0,
            "demos": 0,
            "goals": 0,
            "name": "enzanki_ars",
            "own_goals": 0,
            "saves": 0,
            "score": 260,
            "shots": 14,
            "spec_slot": 6,
            "team": 1
        },
        "7": {
            "assists": 1,
            "boost": 0.4466688930988312,
            "demos": 0,
            "goals": 0,
            "name": "Cr33p3r_HD_817",
            "own_goals": 0,
            "saves": 0,
            "score": 320,
            "shots": 22,
            "spec_slot": 7,
            "team": 1
        },
        "8": {
            "assists": 0,
            "boost": 0.0,
            "demos": 0,
            "goals": 0,
            "name": "",
            "own_goals": 0,
            "saves": 0,
            "score": 0,
            "shots": 0,
            "spec_slot": 0,
            "team": -1
        }
    }
}

streamgraphicsgsi-rl's People

Contributors

diogotr7 avatar enzanki-ars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bwmac

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.