obs-source-record icon indicating copy to clipboard operation
obs-source-record copied to clipboard

Hotkeys set for source save replay are cleared on restart.

Open Tomshiii opened this issue 4 years ago • 14 comments

Every time I boot obs, any custom keybinds I've set to save replays have been wiped and must be set again. New to this whole thing, if you need anything from me lmk and I'll provide.

Tomshiii avatar Jul 04 '21 04:07 Tomshiii

Do you get an crash of OBS during shutdown that makes the hotkey not save?

exeldro avatar Jul 04 '21 05:07 exeldro

No, just a regular shutdown, either by pressing the exit button itself, or closing it on the top windows toolbar

Tomshiii avatar Jul 04 '21 05:07 Tomshiii

I can confirm this issue: When I set CTRL+ALT+I as the hotkey for the Source Record Save Replay, on exit I see no entry in the basic.ini of my profile in the section [Hotkeys] and as a result on next start the hotkey is gone again, of course:

image

rse avatar Jul 10 '21 17:07 rse

@rse the hotkey you found in basic.ini is the global replay buffer hotkey, not the hotkey from source_record. the hotkey should have the "save_replay" name instead of "ReplayBuffer.Save"

exeldro avatar Jul 10 '21 17:07 exeldro

Yes, correct, my fault. I tried to many thing in parallel today ;-) But there is no "save_replay", too.

rse avatar Jul 10 '21 18:07 rse

OK, I tried again from scratch: when I add the hotkey CTRL+ALT+I...

image

...then it works as expected (the replay buffer is correctly saved) and even opening/closing the settings windows always shows that the hotkey is there. Once I exit OBS Studio I see NO entry in basic.ini and as a consequence the hotkey is gone the next time I open OBS Studio again. I also do NOT get any crash dumps, so either Source Record misses to save the hotkey in some way or OBS Studio crashes silently without performing a crash dump. Part of my game is just OBS Studio 27.0.1, Source Record 0.2.1, Source Switcher 0.3.0, Replay Source 1.6.9 and Source Dock 0.1.0 and that's a dedicated OBS Studio in portable mode, so it's a very fresh setup without any other installation "waste".

rse avatar Jul 10 '21 18:07 rse

@rse it should be saved in the json file with the same name as the scene collection you are in like this "save_replay":[{"alt":true,"control":true,"key":"OBS_KEY_I"}]

exeldro avatar Jul 10 '21 18:07 exeldro

Oh, I see. Ok, but neverthelless, once I set the hotkey, close OBS Studio, I just see there:

..., "save_replay":[], ...

rse avatar Jul 10 '21 18:07 rse

And the issue is not related to the particular hotkey CTRL+ALT+I for me, as the hotkey is not persisted even when I use various other key combinations like CTRL+I or CTRL+K or whatever. I always just get this "save_replay":[] in my .json file.

rse avatar Jul 10 '21 18:07 rse

I don't know whether it helps, but in the same OBS Studio, as mentioned above, I also use your Replay Source 1.6.9 plugin and there two hotkeys. These(!) hotkeys are save just fine in the same .json file of my scene collection:

..., "ReplaySource.Replay":[{"alt":true,"control":true,"key":"OBS_KEY_L"}], ...

rse avatar Jul 10 '21 18:07 rse

confirming i also lose my Source Record key binding on OBS restart. I am not using Record or Stream functions, only the replay buffer.

spectangulation avatar Jul 18 '21 18:07 spectangulation

confirming i also lose my Source Record key binding on OBS restart. I am not using Record or Stream functions, only the replay buffer.

actually sometimes, the Source Record hot key field is not even present

spectangulation avatar Jul 19 '21 05:07 spectangulation

This is still an issue for me in later builds. If you require anything from me that could help you pin down this issue I would be more than happy to provide it. As mentioned in above comments, it doesn't seem to be saving in the json file post obs closure, no crashes.

Tomshiii avatar Aug 15 '21 11:08 Tomshiii

Gonna bump this once more because it happens to me as well.

Setting it to "Ctrl+Alt+Numpad9" and it gets cleared every time I launch OBS.

I'm on 0.2.6, as in the newest

Lordmau5 avatar Jan 16 '22 15:01 Lordmau5