Roadie

Connect Streamer.bot

Connectors · 7 min read ·

Paste Roadie's connector code into a Streamer.bot action, compile it, link with the code it logs, put Roadie — Play Clip in your alerts' blocking queue, and test it off-stream.

Roadie's Streamer.bot connector is C# code that Streamer.bot compiles and runs. Once it is linked:

  • Everything Roadie shows (clips, alerts, trivia, polls) waits its turn in the same blocking queue as your alerts.
  • An OBS scene change switches the Stage to the view you matched to it.

Roadie never changes your existing actions. The Onboarding guide walks you through this when you tick Streamer.bot; the same steps are on Connectors › Streamer.bot.

Before you start

  • Streamer.bot 1.0.7 or later, on Windows, on the PC that runs your stream.
  • Streamer.bot's own OBS connection works. Roadie uses it for scenes. Note its number in the OBS list: the first one is 0.
  • About 20 minutes, off-stream. Never set this up for the first time during a live stream.

The download is not a Streamer.bot import. There is no .sb file, and pasting the ZIP into Streamer.bot's Import box does nothing useful. You build three actions by hand and paste the code into one of them. The steps below walk through it.

Install

The download has four files: Connector.cs (the code), README.md, settings.example.json and release-notes.json. None holds a password or key.

  1. Press Download in the guide (or on Connectors › Streamer.bot), and extract the ZIP somewhere you can find it.
  2. In Streamer.bot, open Action Queues and add a queue named Roadie Control. Leave Blocking off.
  3. On Actions, add an action named Roadie — Connector and set its queue to Roadie Control.
  4. In that action, add a sub-action: Core › C# › Execute C# Code. The code editor opens.
  5. Name the code Roadie Connector. Delete the sample code, then open Connector.cs in Notepad, copy all of it, and paste it in.
  6. Leave Precompile on Application Start ticked. Without it, the connector only starts when the action runs.
  7. Add the references the code needs. Open the References tab and press Find Refs. Check these three are in the list, and add any that are missing with Add reference from file:
    • System.Net.Http.dll and System.Security.dll, in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
    • Newtonsoft.Json.dll, in your Streamer.bot folder (next to Streamer.bot.exe)
  8. Press Compile. The compile log should say it compiled with no errors. Then press Save and Compile.
  9. Add these triggers to Roadie — Connector, all under OBS Studio, each set to the OBS connection Roadie should use: Scene Changed, Connected, Disconnected, Streaming Started, Streaming Stopped, Recording Started and Recording Stopped.
The Streamer.bot install step, with a Download button and three numbered instructions.
Download, paste the code, and compile.

If the compile fails with "the type or namespace could not be found", a reference from step 7 is missing. Add it and compile again.

The connector starts the moment it compiles. It writes two lines to Streamer.bot's log:

  • Roadie 0.2.0: settings at …\Roadie\Streamerbot\settings.json, which says where its settings live
  • Roadie link code: … — enter in Connectors > Streamer.bot, which is your code

Open the newest log file in the logs folder next to Streamer.bot.exe. In the guide, type the code in Code and press Link. The step turns green when Roadie sees Streamer.bot linked, and the log says Roadie connected.

You do not need to run the action to get a code. If no code shows up, compile again. A code that expires is replaced by a new one in the log on its own.

The key Roadie sends back is saved, encrypted, for your Windows user only. You link once; a restart reconnects on its own.

The alert queue

Linked as it is, the connector already shares your scenes. These steps let Roadie's clips take turns with your alerts.

  1. Add an action named Roadie — Play Clip. Its only sub-action is Core › C# › Execute C# Method: pick the Roadie Connector code and the method PlayClip. Do not paste the code a second time. Every Roadie action must use the same copy.
  2. Set Roadie — Play Clip's queue to the same queue as your alerts, and make sure that queue has Blocking on.
  3. Add an action named Roadie — Cancel Clip on the Roadie Control queue. Its sub-action is Execute C# Method, code Roadie Connector, method CancelClip. Put it on a hotkey or a Stream Deck key so you can always reach it.
  4. Right-click Roadie — Play Clip and copy its action ID.
  5. Open the settings.json the log named (a copy with every option is in settings.example.json). Set:
    • "ObsConnection": your OBS connection's number, starting at 0
    • "PlayActionId": the ID you copied
    • "BlockingQueueConfirmed": true
    • "ShareClips": true
  6. Save the file, then compile Roadie Connector again (or restart Streamer.bot). Settings are read only when the code compiles.

Streamer.bot reports the queue to Roadie, and the step turns green.

The Streamer.bot alert queue step: put Roadie — Play Clip in the same blocking queue as your alerts, then turn on ShareClips. The check is waiting for Streamer.bot to report its queue.
Play Clip goes in your alerts' blocking queue.

Two rules keep the queue in order:

  • Alert actions must wait for their media to finish. An alert that fires and moves on still overlaps a clip, even in a blocking queue.
  • Run Roadie — Cancel Clip before you clear or stop the alert queue. Streamer.bot does not tell Roadie when a queue is cleared, so a clip can stay marked as waiting. Cancel Clip only touches Roadie's clip, never your other alerts.

If the log says Roadie setup failed (ArgumentException) after this step, ShareClips is on but PlayActionId or BlockingQueueConfirmed is not set. Fix settings.json and compile again.

Two bots: choose which runs the queue

If you run Firebot as well, Roadie's queue runs in one of them, and you choose which. Nothing is chosen for you. The guide asks once both are ticked. The other bot stays linked for scenes and history and holds no Roadie queue. For Streamer.bot, that means turning ShareClips off.

The Which bot runs the queue step: a choice between Firebot and Streamer.bot with neither picked, and a Save button.
With two bots, you pick which one runs Roadie's queue.

See it working

Switch scenes in OBS. Streamer.bot tells Roadie, and the Stage follows. The guide's last connector step turns green on the first scene change Roadie hears. Which view each scene shows is set on the Stage manager; use Resync there to read your full scene list.

Test it before you go live

Run through this once, off-stream, with OBS open:

  1. Scenes: switch scenes a few times. The Stage follows each one.
  2. Alert, clip, alert: fire a test alert, play a Roadie clip, then fire another test alert. They play one after another, never on top of each other.
  3. Cancel: start a clip and press your Roadie — Cancel Clip key. The clip stops and the next alert plays.
  4. Skip and stop: skip a clip from Roadie. The queue moves on.
  5. Reconnect: close OBS and open it again, then restart Streamer.bot. The log says Roadie connected again, with no new code, and scenes still switch.

If any step does something else, note the step and what you saw, and send it with the log lines that start with Roadie. The log never holds your key or messages.

Let Automation act on OBS (optional)

To let Roadie's Automation switch scenes, show and hide sources, set text, mute inputs and turn filters on and off through Streamer.bot, set "AllowObsActions": true in settings.json and compile again. It is off until you turn it on. Each step counts as done only when OBS shows the change, and the Stream log says why if it did not.

Update or remove

To update, off-stream: download the new package, replace the code in Roadie Connector with the new Connector.cs, compile, and restart Streamer.bot. Keep your actions, triggers and settings.json. The log shows the new version number.

To remove: run Roadie — Cancel Clip, revoke the connector in Roadie on Connectors › Streamer.bot, delete the three Roadie actions and their triggers, and delete the Roadie\Streamerbot folder the log named.