Resource icon

OBS Lua Simple Replay Sorter (SRS) 1.0.0

Simple Replay Sorter (SRS)

Moves your OBS replay buffer clips into per-game subfolders, based on whatever app had focus when the clip saved. Windows only.

Installation
  1. Download obs-simple-replay-sorter.zip from the releases tab.
  2. Extract it wherever you like.
  3. In OBS: Tools -> Scripts -> +, then select srs.lua.
No extra dependencies, everything it needs is already in OBS or Windows.

Search & Replace list

By default, folders are named after the raw executable, title-cased (e.g. ApexLegends becomes Apex Legends). Some exe names are uglier than that (valorant-shipping64_final.exe -> Valorant Shipping64 Final), so this list lets you override the result yourself.

Found under Tools -> Scripts -> Simple Replay Sorter -> Search & Replace List. One rule per line.

Format
Code:
search = replacement
search

search = replacement
Code:
valorant = VALORANT
deadlock = DL
cs2 = Counter-Strike 2
If the detected exe name contains the left side text (case-insensitive), the folder gets named exactly what's on the right. In the example above, deadlock would be renamed to DL.

search only (no =)
Code:
DeadLock
A line with no = just reuses itself as both search and replacement, which is handy when the exe name already contains the "friendly" game name and you just want to change casing rather than fully renaming to something custom.

trailing = with nothing after it
Code:
deadlock =
This is technically a misconfiguration, but it's treated the same way as "search only".

Matching rules
  • Case-insensitive
  • Substring match, meaning it doesn't have to match the whole exe name, only part of it
  • Literal text, not regex (S.T.A.L.K.E.R. matches those exact characters, i.e. "." is not interpreted as regex)
  • First matching rule wins, top to bottom
Precedence
  1. Known system windows (Desktop, Explorer, etc.) are turned into fixed labels, editable in SYSTEM_PROCESS_NAMES_OVERRIDE in srs.lua
  2. Search & Replace list
  3. Raw exe name title-cased automatically
Example list
Code:
VALORANT
deadlock = DL
cs2 = Counter-Strike 2
r5apex = Apex Legends
Ppssppwindows64 = PPSSPP
Quake3 = Quake 3
Diablo IV

Reporting issues
You can report any issues you encounter with this script on the GitHub repository issues tab.
Author
ViktorShev
Downloads
13
Views
82
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top