Resource icon

Advanced Filename Formatter 1.2.0

Somoswebmasters

New Member
I think the problem is Python, it tells me that it is not currently loaded, but I installed it, and nothing yet :(

I get a command prompt and I don't know what to do with it.

I didn't understand the documentation, any guide now? :(
 

codeSTACKr

New Member
Getting an error. Ever seen this before?

Bash:
[adv-ff.py] Found pyparsing 3.1.2
[adv-ff.py] Traceback (most recent call last):
[adv-ff.py]   File "/Applications/OBS.app/Contents/PlugIns/frontend-tools.plugin/Contents/Resources/scripts/adv-ff.py", line 216, in <module>
[adv-ff.py]     libobs = ct.CDLL("obs")
[adv-ff.py]              ^^^^^^^^^^^^^^
[adv-ff.py]   File "/Library/Frameworks/Python.framework/Versions/Current/lib/python3.11/ctypes/__init__.py", line 376, in __init__
[adv-ff.py]     self._handle = _dlopen(self._name, mode)
[adv-ff.py]                    ^^^^^^^^^^^^^^^^^^^^^^^^^
[adv-ff.py] OSError: dlopen(obs, 0x0006): tried: 'obs' (relative path not allowed in hardened program), '/System/Volumes/Preboot/Cryptexes/OSobs' (no such file), '/Applications/OBS.app/Contents/Frameworks/obs' (no such file), '/usr/lib/obs' (no such file, not in dyld cache), 'obs' (relative path not allowed in hardened program), '/usr/lib/obs' (no such file, not in dyld cache)
 

Penwy

Member
Getting an error. Ever seen this before?

Bash:
[adv-ff.py] Found pyparsing 3.1.2
[adv-ff.py] Traceback (most recent call last):
[adv-ff.py]   File "/Applications/OBS.app/Contents/PlugIns/frontend-tools.plugin/Contents/Resources/scripts/adv-ff.py", line 216, in <module>
[adv-ff.py]     libobs = ct.CDLL("obs")
[adv-ff.py]              ^^^^^^^^^^^^^^
[adv-ff.py]   File "/Library/Frameworks/Python.framework/Versions/Current/lib/python3.11/ctypes/__init__.py", line 376, in __init__
[adv-ff.py]     self._handle = _dlopen(self._name, mode)
[adv-ff.py]                    ^^^^^^^^^^^^^^^^^^^^^^^^^
[adv-ff.py] OSError: dlopen(obs, 0x0006): tried: 'obs' (relative path not allowed in hardened program), '/System/Volumes/Preboot/Cryptexes/OSobs' (no such file), '/Applications/OBS.app/Contents/Frameworks/obs' (no such file), '/usr/lib/obs' (no such file, not in dyld cache), 'obs' (relative path not allowed in hardened program), '/usr/lib/obs' (no such file, not in dyld cache)
can you send a log?
(ideally, pop by the obs sup^port discord, it'll be easier to troubleshoot)
 

Probablynotyou

New Member
Am I just bad or what? I cant get it to work with replay buffer. The formatting I use is: v$title$/%CCYY-%MM-%DD %hh-%mm-%ss
When I record, A folder with the game name gets created and my records go there but if I use replay buffer, it all goes in a v$title$ folder. I dont see any separate option for replays and I also tried the custom obs build from Github though i have no idea if I did it right. What am I doing wrong?

BTW, thanks for the scripts. I would have though this would be a basic feature of OBS by now.
 

Penwy

Member
The replay buffer will only work with the github custom build provided.
If you don't understand how to install it, or it doesn't work, simplest honestly would be to pop by in the obs support discord, for ease of discussion.
 

niky45

New Member
Hello, and thank you so much for making this.
I am trying to get it to work, but this is how far I've gotten (logs get updated on hitting "check formatting")
1725187761178.png

I did tell python to install pyparser, as per the instructions in a previous post, but it tells me it's already installed.
my python version is the latest (3.12.5), and AFAIK OBS is also updated (version says 30.1.2)
PS: also, some quick installing instructions in the docs would be great. I could help and write up a small thing if you'd like ;)
--------
not-an-EDIT: ooohhh, it didn't have an executable hooked so it was throwing an error. changing it to "scene" fixed it.
still posting this in case someone else runs into the same issue, but yeah, feel free to ignore this post.
 

l1i1l

Member
Hi.
When trying to install the script, an error message appears:

Code:
[adv-ff.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\adv-ff.py", line 532
[adv-ff.py]     match node[0]:
[adv-ff.py]              ^
[adv-ff.py] SyntaxError: invalid syntax
 

Penwy

Member
Hi.
When trying to install the script, an error message appears:

Code:
[adv-ff.py]   File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\adv-ff.py", line 532
[adv-ff.py]     match node[0]:
[adv-ff.py]              ^
[adv-ff.py] SyntaxError: invalid syntax
did you make sure you're on a supported version of python? (3.10 and above)
 

Penwy

Member
The info on the wiki is out of date.
Obs itself now supports up to 3.12, and this script requires at least 3.10 to work.
 

Penwy

Member
Penwy updated Advanced Filename Formatter with a new update entry:

Version 1.1.2

  • Changed filename cropping to be performed only post-generation, and to behave correctly with multi-bytes characters
  • Added zero-width spaces sanitisation (this can be changed with the remove_zws customisation parameter)
  • Fixed default data arrays (counter) causing crashes : Electric bogaloo, this time I think I found out what the actual fuck is happening with them.
  • Fixed ctypes wrapping on macos
  • Added version number printing at script load
  • From now on, to limit build...

Read the rest of this update entry...
 
Hi, Sorry, but I am confused by how to install this script. The download leads me to a download that appears to be an OBS installer and not a python script. Does this override the full OBS studio with your script or if I finish the installation it will install the script? i am not good with python, but have sucessfully installed one or two python scripts. Thank you for making this script. Can't wait to use it. I am using Mac OS Ventura.
 

TWM

New Member
@Penwy We record a lot of clips for sports competitions so that athletes can see their next performance before the next round. If we have a start list of athlete's names can we load it into a script and hit record and have it put the athlete's name in file one and athlete name 2 in the second file?
 

Penwy

Member
Hi, Sorry, but I am confused by how to install this script. The download leads me to a download that appears to be an OBS installer and not a python script. Does this override the full OBS studio with your script or if I finish the installation it will install the script? i am not good with python, but have sucessfully installed one or two python scripts. Thank you for making this script. Can't wait to use it. I am using Mac OS Ventura.
In the downloads section, the file named `adv-ff.py` is the script itself.
The obs installers are for a modified version of obs that allows the script to work with the replay buffer, you don't need them if you just want to use it for recording.
 

Penwy

Member
@Penwy We record a lot of clips for sports competitions so that athletes can see their next performance before the next round. If we have a start list of athlete's names can we load it into a script and hit record and have it put the athlete's name in file one and athlete name 2 in the second file?
Pretty sure I saw you on the discord.
Ping me there (Penwywern), it'll be more practical to discuss what exactly you need and whether the script can do it.
 
In the downloads section, the file named `adv-ff.py` is the script itself.
The obs installers are for a modified version of obs that allows the script to work with the replay buffer, you don't need them if you just want to use it for recording.
Thank You for your quick response. Will give it a try .
 

Penwy

Member
Unfortunately no properties available. Python 13.12 is installed. It's been like that with python installs, some work and some don't unfortunately. Thanks.
Works correctly on my end with python 3.13.0, on linux. If you are on windows, obs doesn't support 3.13 there yet, so you'll have to use 3.12.
Does it give you an error message?
 
Works correctly on my end with python 3.13.0, on linux. If you are on windows, obs doesn't support 3.13 there yet, so you'll have to use 3.12.
Does it give you an error message?
Thank you for your quick reply. Well, when I try to use it the error "no properties available" comes up in scripts. Python 3.12 is installed on Mac OS Ventura 13.7.1. current release. OBS Beta 31. beta 3.

I got this from the script log:

^^^^^^^^^^^^^^^^^^^^^^^^^^
[adv-ff.py] File "/Library/Frameworks/Python.framework/Versions/Current/lib/python3.12/subprocess.py", line 389, in call
[adv-ff.py] with Popen(*popenargs, **kwargs) as p:
[adv-ff.py] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[adv-ff.py] File "/Library/Frameworks/Python.framework/Versions/Current/lib/python3.12/subprocess.py", line 1026, in __init__
[adv-ff.py] self._execute_child(args, executable, preexec_fn, close_fds,
[adv-ff.py] File "/Library/Frameworks/Python.framework/Versions/Current/lib/python3.12/subprocess.py", line 1955, in _execute_child
[adv-ff.py] raise child_exception_type(errno_num, err_msg, err_filename)
[adv-ff.py] FileNotFoundError: [Errno 2] No such file or directory: 'python3.12'
[adv-ff.py]
[adv-ff.py] The above exception was the direct cause of the following exception:
[adv-ff.py]
[adv-ff.py] Traceback (most recent call last):
[adv-ff.py] File "/Applications/OBS.app/Contents/PlugIns/frontend-tools.plugin/Contents/Resources/scripts/adv-ff.py", line 73, in <module>
[adv-ff.py] raise ImportError("Could not install or find pyparsing, make sure it is installed on the python executable used by obs"
[adv-ff.py] ImportError: Could not install or find pyparsing, make sure it is installed on the python executable used by obs
 
Top