Rocket League Stream Overlay
Dynamically updating to in-game events
What is it?
A suite of HTML sources for broadcasting software that dynamically update based on in-game Rocket League events, such as scored goals, player boost levels, and the current game time.
Why I built it
Rocket League has a small, third-party modding tool called BakkesMod. It's an executable that hooks into the Rocket League game code at launch and exposes some internal information for modders. While I was working with the College Carball Association (CCA), there was one plugin created for BakkesMod, SOS, that created a WebHook server and broadcasted information about the game state. We saw this and wanted to create a custom stream overlay to make our broadcasts stand out with a personalized touch. This allowed us to add school colors, boost meters, and a custom score bug that included both current game score as well as series score.
Those familiar with Rocket League may notice boost orbs next to the players' names in the above image and think the boost levels on the left and right of the screen are redundant. However, the overlay predates the inclusion of boost orbs by a few years. It was very useful broadcast information in the past.
How it works
For starters, I did not design the overlay. That accomplishment lies with my friend Jack "Xotic" Osterman, who has done fantastic work as the Creative Director of CCA. I just took his mockups and designs and rebuilt them with HTML/CSS.
Technically, it is very simple. A local WebSocket relay server subscribes to the SOS plugin WebSocket server. Then, each stream component is an HTML file that hasa a JavaScript WebSocket client subscribe to the relay server. Each component updates its corresponding values when it receives am update through the WebSocket connection. The broadcaster running the stream just needs to start the relay server locally and add the components to their broadcast software as a source.
We also had broadcast panel accessible through the web. Here, we could set out-of-game information, such as series score and team colors. The relay server would periodically poll the server and send updates to the components with this information as well.
What's left?
I'm quite proud with how long this stream overlay stayed in use without much issue. It's not particularly technically interesting, but it made our broadcasts looks much nicer and is an example of how useful software solutions don't need to be complex.