Resource icon

Replay Buffer/Recording Folders v1.0.0

Draeg0

New Member
Draeg0 submitted a new resource:

Replay Buffer/Recording Folders - Linux version of Shadowplay/MedalTV capturing

Saves replay buffer and recording files to game-specific folders (like ShadowPlay/MedalTV). Edited for linux computers.

In order to install the script, unzip the release, open OBS -> Tools -> Scripts, and add "obsReplayFolders.lua" to Loaded Scripts.

Upon doing so, whenever a clip is made using the OBS Replay Buffer feature or a recording is started, it will always be saved to a folder of the focused window.

Read more about this resource...
 

oxypatic

Member
Hello, I have a question (not a Linux user):
Why prefer the lua to the python scripts (except the better reliability at some points)?
 

Draeg0

New Member
Hello, I have a question (not a Linux user):
Why prefer the lua to the python scripts (except the better reliability at some points)?
To be honest, I forked this from redraskal's obs replay buffer folder organizer for Windows and just made it compatible with Linux, so I am not entirely sure the reason; however, from my understanding, Lua integrates better with OBS' API, and python may run into compatibility issues depending on what python version you have downloaded. Once again, I am not entirely sure-- this is just purely speculation.
 

oxypatic

Member
To be honest, I forked this from redraskal's obs replay buffer folder organizer for Windows and just made it compatible with Linux, so I am not entirely sure the reason; however, from my understanding, Lua integrates better with OBS' API, and python may run into compatibility issues depending on what python version you have downloaded. Once again, I am not entirely sure-- this is just purely speculation.
I understand, thank you for sharing your view.

Lua does look like a better choice for OBS because of its easy integration. But it would be interesting to know if there are any limitations compared to Python?
It's only my assumption, so do not take it for granted - I think that the LUA is working with OBS, while the python scripts are attaching themselves to the OBS, which in turn has an impact for it's reliability (as @Draeg0 mentioned using other words).
When I was at early points with a script of mine it couldn't really fetch some values in a reliable way, which has made me use global variables.
My biggest complaint is that it's really hard to not use the global values in your scripts (globals are not really good resolution to anything in my honest opinion if they are not static, because they can do some unexpected side-effects)
 

oxypatic

Member
To avoid global variables, you can try to divide the code into separate modules and use special objects to store state. This can make the code cleaner and more predictable.
Thought about this, but if I understand this type of programming right, it would require to split the code into different files, which would defeat the purpose of my script
 
Top