I'm trying to use this script to implement multiple replay buffer timers, so you can get the last 1, 5 or 10 minutes of your current gameplay depending on how you configure it. The script run good at the beginning when obs is being just launched, however after some 10 minutes or so, the script wont work anymore, and when u attempt to save a clip it says this in the log:
I tried to solve the issue doing some research but my knowledge in code is very limited, but I suspect that the obspython.py is somewhat messing with the script but since I'm not a pro I can't detect where the issue is or if its easy to solve just by adding a few lines to the script itself.
Thanks for any help anyone could provide.
Code:
[AdditionalReplays.py] [AR] save_replay
[AdditionalReplays.py] [AR] seconds=180
[AdditionalReplays.py] [AR] path=D:/OBS_Recordings/Replays_New/medium_clips
[AdditionalReplays.py] [AR] remove=True
[AdditionalReplays.py] [AR] from_end=True
[AdditionalReplays.py] Traceback (most recent call last):
[AdditionalReplays.py] File "C:/Anything/Programs/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 157, in save_replay2
[AdditionalReplays.py] save_replay(replay2_seconds, replay2_path, replay2_remove, replay2_from_end)
[AdditionalReplays.py] File "C:/Anything/Programs/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 185, in save_replay
[AdditionalReplays.py] last_replay = save_and_get_last_replay()
[AdditionalReplays.py] File "C:/Anything/Programs/obs-studio/data/obs-plugins/frontend-tools/scripts\AdditionalReplays.py", line 128, in save_and_get_last_replay
[AdditionalReplays.py] file_timestamp = os.path.getctime(path)
[AdditionalReplays.py] File "D:/Program Files/Python/Python36\lib\genericpath.py", line 65, in getctime
[AdditionalReplays.py] return os.stat(filename).st_ctime
[AdditionalReplays.py] TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
I tried to solve the issue doing some research but my knowledge in code is very limited, but I suspect that the obspython.py is somewhat messing with the script but since I'm not a pro I can't detect where the issue is or if its easy to solve just by adding a few lines to the script itself.
Thanks for any help anyone could provide.