Skip to content

TimLehner/runelite-save-replay-buffer-for-obs-plugin

Repository files navigation

Runelite Save Replay Buffer For OBS Plugin

This plugin is designed to automatically save any existing OBS Replay Buffer.

Disclaimer: this project is not developed, maintained, affiliated or otherwise endorsed by OBS or the OBS Project

Features

  • Never miss a moment! Automatically capture the replay buffer on key events like the Screenshots plugin,
  • Either capture whenever saving screenshots (all) or set specific criteria for videos, such as only video valuable drops over 1m,
  • In-game overlays displaying Error warnings if something is wrosng with the Replay Buffer connections (see Error Overlays)

Usage

Apart from installing from the Runelite Plugin Hub, this plugin requires:

  • Open Broadcaster Software (OBS) v28+.
  • OBS configured with an active Replay Buffer (File -> Settings -> Output -> [Setup Replay Buffer as desired])
  • OBS WebSocket server running with auth (Tools -> WebSocket Server Settings -> [Enable Server] and [Generate Password])

Once configured, add the credentials in the RuneLite settings and turn on the plugin.

Once enabled, the plugin will immediately attempt to open a connection to the OBS WebSocket Server, you can see the session listed in OBS in the "WebSocket Server Settings".

Detailed setup instructions

Below is a more detailed step-by-step guide for plugin setup, with reference pictures.

1. Install the Plugin

Open the RuneLite Plugin Hub.

Search for Replay Buffer (OBS).

Image of Save Replay Buffer in plugin hub search

Click Install.

2. Check Your OBS Version

You must be using OBS version 28 or higher.

To check: Go to Help → About

Image of OBS studio About section

You can also see the version number in the top-left corner of OBS.

Image of OBS version displayed in top left corner

3. Enable the Replay Buffer in OBS

Make sure your Replay Buffer is enabled and configured.

Steps: Go to File → Settings → Output

Image showing how to access settings in OBS

Under the Replay Buffer section, enable it and set your desired settings.

Image of OBS output settings with Replay buffer setting ticked

Maximum Replay Time (Shown in image above) determines how much earlier the clip starts from when you save it or when RuneLite takes a screenshot.

For example: If set to 3 minutes, the saved clip will include the 3 minutes before the save or screenshot.

Choose a duration that best suits your needs.

4. Enable OBS WebSocket Server (with Authentication)

In OBS, go to Tools → WebSocket Server Settings.

Image of Websocket Server Settings option in Tools section of OBS

Check Enable Server.

Make sure Enable Authentication is ticked.

Click Generate Password.

Image of WebSocket Server settings where Websocket server can be enabled

Click "Show Connect Info" button and copy your Server Password.

Image of Websocket Connect Info where you can check and copy your previosuly generated password

5. Connect the Plugin to OBS

In RuneLite, open the Replay Buffer plugin settings (click the ⚙️ cog icon).

Image of Save Replay Buffer plugin settings cog

Paste the password you copied from OBS into the plugin.

Image of Save Replay Buffer for OBS with previously generated password added in

Note the plugin will attempt to reconnect whenever the configuration values change, but this may require leaving the input box

Alternatively, have you tried turning it off and on again?

If everything is set up correctly, you’ll see a successful connection in your OBS WebSocket settings.

Image of successfully connected OBS Websocket Server Settings

6. Optional: Fine-Tune Replay Timing

You can add a delay before saving the replay to include action happening after the moment a screenshot would be taken in Runelite. This can be useful to also capture live reactions to the event, and not having clips that end too abruptly.

Image of Save after delay option highlighted

Example: Replay Buffer: 3 minutes

“Save After Delay” setting: 1 minute Your clip will include 2 minutes before and 1 minute after the trigger (such as a RuneLite screenshot).

7. When Clips Are Saved

A clip is automatically saved when RuneLite takes a screenshot.

Any option in the RuneLite Screenshot plugin that is ticked triggers a clip to save.

Image of Screenshot base plugin options

Fine-grained configuration to save clips for only specific events can be done in "Events to capture" section.

Image of fine-grained configuration options

It is recommended to either disable All screenshots or ensure there is no overlap, otherwise you might try to save buffers multiple times for the same event.

Error Overlays

The plugin can be configured to display warning overlays if something is wrong and the plugin will be unable to save the replay buffer when triggered.

To enable these, ensure the 'Show connection error overlays' option is enabled in the WebSocket Options.

The next section will show examples of the overlays with a brief description of the problem and solution.

Troubleshooting Error Overlays

Unable to connect to the OBS WebSocket Server. Is OBS running and configured?

Problem:

  • OBS is not running,
  • the OBS WebSocket Server is not enabled,
  • the OBS WebSocket Server does not support authentication, and/or
  • configured WebSocket Server Host/Port are incorrect.

Solution:

  1. Ensure OBS is running with WebSocket Server enabled,
  2. ensure WebSocket Options match OBS 'Show connect info' dialog,
  3. restart the plugin/change WebSocket server configuration (the plugin will not attempt to reconnect until you do so)

OBS WebSocket connection closed unexpectedly: Authentication failed.

Problem:

  • The WebSocket Server Password is incorrect

Solution:

  1. Double-check the Password using the 'Show connect info' button in OBS.

OBS Replay Buffer is not active!

Note this overlay will only appear when the plugin setting 'Check if Replay Buffer is enabled' is enabled.

Problem:

  • OBS is reporting that the Replay Buffer is not running.

Solution:

  1. Click 'Start Replay Buffer' in OBS.

Tips and Advanced Guides

  1. Automatically start the Replay Buffer when launching OBS
  2. Integrate with other plugins like Watchdog using Plugin Messages

About

A RuneLite plugin to automatically save OBS Replay Buffers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Generated from runelite/example-plugin