Does anyone know how can i make obs react to ingame events?

Alexandremix

New Member
For example how can i make obs react to healing in a game, to being shot. Something similar like this?

When my health is low make the webcam red. Im trying to find how to do this.

can anyone guide me ? Ive been googling this for 1 hour.
 

.norman.

Member
I doubt that you will find any answers for your scenario. this would require some very advanced coding to pull that information from your game and translate that into something that could be applied to OBS. while it is a very cool idea, you are going to need more than an hour.
 

upgradeQ

Member
There is an interview (2022) by Eposvox very well made as an introduction to this streaming tech.


You might be tempted to use OBS Studio as game engine / live video editing solution for this, but be warned that when major release happens there will be broken plugins which may break your production. Though its fine to add interactivity to sources for small things, when it's grows its becomes maintenance hurdle. For more control like resolution adaptivity, performance, assets management I would suggest to use o3de, unreal engine, love2d, godot, etc. This why there is no native support for VTubers in this software, just green screen + window capture.

Additionally you could try "gamehacking" that's depends on the target game, I did experiment in 2020 with this red transparent overlay when HP is low in certain open source video game


This is no longer works without fixes, because of changes to new Color Correction source, as well as it's uses status file at high Hz, which touches the disk, better to use named pipes / shared memory.

This resource is a good place to start, there is also articles, books, videos, forums, real-time chat rooms on this topic, tons of information... As I wrote earlier, this depends on the game, there is legal side of things too. Some E-Sports orientated games have ability to share important data in real-time like this


If it is not a secret could you please share what video game you dealing with?
 

Alexandremix

New Member
There is an interview (2022) by Eposvox very well made as an introduction to this streaming tech.


You might be tempted to use OBS Studio as game engine / live video editing solution for this, but be warned that when major release happens there will be broken plugins which may break your production. Though its fine to add interactivity to sources for small things, when it's grows its becomes maintenance hurdle. For more control like resolution adaptivity, performance, assets management I would suggest to use o3de, unreal engine, love2d, godot, etc. This why there is no native support for VTubers in this software, just green screen + window capture.

Additionally you could try "gamehacking" that's depends on the target game, I did experiment in 2020 with this red transparent overlay when HP is low in certain open source video game


This is no longer works without fixes, because of changes to new Color Correction source, as well as it's uses status file at high Hz, which touches the disk, better to use named pipes / shared memory.

This resource is a good place to start, there is also articles, books, videos, forums, real-time chat rooms on this topic, tons of information... As I wrote earlier, this depends on the game, there is legal side of things too. Some E-Sports orientated games have ability to share important data in real-time like this


If it is not a secret could you please share what video game you dealing with?
Im dealing with warzone, I came across pixel match switcher but it uses a old obs release that is bugged
 

upgradeQ

Member
Im dealing with warzone, I came across pixel match switcher but it uses a old obs release that is bugged
Okay, seems that there is no direct support of real-time game state sharing.
You could try to program Computer Vision for that case, pre-process frames (this will add delay) and react to "events".
You might also try to contact that gamedev company sales/support channels and see if they provide you with custom client or some API.
The "gamehacking" solution is risky because that is multiplayer video game, there might be bad actors, you PC might catch a virus, etc.
 

Heavy

New Member
For example how can i make obs react to healing in a game, to being shot. Something similar like this?

When my health is low make the webcam red. Im trying to find how to do this.

can anyone guide me ? Ive been googling this for 1 hour.
Might come late to the party but I actually created something that do just that
You can create actions that controls OBS and map those actions to in-game events to automatically execute them when the event happens in-game
Only 8 games are supported for now (with more to come) including CoD Warzone
 
Top