OBS has the ability to update a text label by reading a .txt file, with this it gave me an idea. (An idea of NOT writing an OBS plugin, because the process for doing that is so horrible.)
I whipped up a simple python script that constantly monitors for an active roblox game you’re playing, and updates it with either the id of it, or the game name (if you enable that in settings).
The source can be found here, and I added some brief instructions:
This is extremely useful for when you’re live streaming and want your audience to know which game you’re playing by just looking at the screen. I witnessed this first hand when my audience kept asking which game I was in.
Instructions to set it up are pretty straight forward, this assumes you have already downloaded OBS, and Python 3:
- Clone the repo, or simply click the download button on the gitlab page.
- Extract it, you should have the two files:
monitor.py
andcurrent_game.txt
. - In OBS, create a “Text (GDI+)” source, and open the properties of it.
- Select “Read from file”, and set the file as the
current_game.txt
file in the directory you previously extracted. When done properly, it should look like this:
- Run
pip3 install psutils requests
, this will install the modules needed for the program to run. - [OPTIONAL] Edit the monitor.py with notepad, or a text editor of your choice. And where it says “USER SETTINGS” you can modify the settings you want, they should be pretty straight forward. Then save it.
- Finally, start the
monitor.py
script withpython3 .\monitor.py
.
Now, if set up properly, you should see the program say “Roblox is not currently open…”:
Now simply join a ROBLOX game and the program should detect it, OBS will then monitor the .txt file for any changes by the program and update the text label with the game you’re playing.