basic.ini edits doesn't stick

DRI374

New Member
I want to use OBS_KEY_MOUSE2 as a hotkey to clear the whiteboard (OBS Whiteboard plugin). The hot key UI does not allow it. When I edit basic.ini in my profile to change say, OBS_KEY_MOUSE5 (the current key) to OBS_KEY_MOUSE2, it doesn't stick. I'm desperate enough to have rebooted my computer. This is latest OBS as of today.
 

AaronD

Active Member
A couple of things here:

OBS overwrites the settings files when it closes. I believe it keeps everything in RAM, so that the file could be out of date if OBS is still running, and then it dumps everything back to the files at the last moment. So if you're editing the file while OBS is running, it doesn't do anything.
That can actually be thought of as a feature, in that a bad setting that causes OBS to crash, whether the core app or a plugin, doesn't get saved. Hopefully there aren't any settings that do that, but it's still a good safety net.

Is there a Discussion thread for the Whiteboard plugin? Every plugin that is hosted here has one. You might try asking there instead. There might be a different way to do what you want, that they would know and the rest of us don't.
Edit: I just looked at your other post. Yes, that thread exists, and you found it already, even before posting here. A link to it from here would have shown that. I still think it would be better to ask over there though.
 

DRI374

New Member
Is there a Discussion thread for the Whiteboard plugin?
There is, but I'm asking how to use OBS_KEY_MOUSE2 as a hotkey in OBS, the whiteboard clear is just an example. For the sake of this thread, let's say I'm using a hotkey to switch a scene.

Something is off as some of my shortcuts are not listed in the profile basic.ini file. Only new hotkeys goes in basic.ini and whatever I manually change in that file does not bite. Editing the basic.ini file on Mac while OBS is shutdown works just fine. Including using OBS_KEY_MOUSE2 as a hotkey.

To reproduce:
  1. Start OBS
  2. Create a Hotkey in the GUI, it could be anything, say ALT + K to switch a scene.
  3. Apply, save, and quit OBS.
  4. Open basic.ini for the profile. Observe OBS_KEY_K set at the bottom of the file.
  5. Change to say ALT + P, save and quit.
  6. Start OBS, observe the change in basic.ini didn't bite nor work.
The expected behavior is that the new hotkey ALT + P should apply.
So, the question is, where is OBS hidden cache of settings that override anything a user put in basic.ini for the profile?
 

AaronD

Active Member
There is, but I'm asking how to use OBS_KEY_MOUSE2 as a hotkey in OBS, the whiteboard clear is just an example. For the sake of this thread, let's say I'm using a hotkey to switch a scene.

Something is off as some of my shortcuts are not listed in the profile basic.ini file. Only new hotkeys goes in basic.ini and whatever I manually change in that file does not bite. Editing the basic.ini file on Mac while OBS is shutdown works just fine. Including using OBS_KEY_MOUSE2 as a hotkey.

To reproduce:
  1. Start OBS
  2. Create a Hotkey in the GUI, it could be anything, say ALT + K to switch a scene.
  3. Apply, save, and quit OBS.
  4. Open basic.ini for the profile. Observe OBS_KEY_K set at the bottom of the file.
  5. Change to say ALT + P, save and quit.
  6. Start OBS, observe the change in basic.ini didn't bite nor work.
The expected behavior is that the new hotkey ALT + P should apply.
So, the question is, where is OBS hidden cache of settings that override anything a user put in basic.ini for the profile?
That, I don't know, but it does seem clear to me that you're not supposed to edit it manually. Sure, you *could*, if you had the knowledge that you're asking for - that's true for any app - but you're really supposed to use the GUI to do it. Also, editing the settings file manually risks creating something that crashes OBS on startup, whereas using the GUI would cause that change to not be saved, if it were even possible.

This still seems like an XY problem to me.
 
Top