jshea2 / OSC-for-OBS

Control and listen to OBS via OSC
113 stars 7 forks source link

Default config clearing #15

Open willpickens opened 2 years ago

willpickens commented 2 years ago

I am using OSC-for-OBS and it keeps booting up with no config information. I saw that there was a default.txt and defaultOriginal.txt default.txt is an empty file. When I add the proper config info it loads correctly the first time, but when I reload the application it clears that file again. Is there a way to stop that from happening? Thank you for a great program!

jshea2 commented 2 years ago

Does it revert back to original after you reopen more than once or is everything just blank?

If it's blank try this:

Currently, the problem is the app starts and the javascript runs, but the HTML hasn't loaded yet, so it tries to inject the values into the HTML before it has loaded. I tweaked the code to have the delay be around 1000ms, but i've noticed it really depends on the computer and how fast it loads the app.

A workaround (until i can figure out a better way rather than remaking this app with React) is if you change a variable in the index.js file in (Resources>app>src) on line 36 there is: let loadDelay = 1000 Change this to a greater number that works for you.

willpickens commented 2 years ago

It does not load the settings until I open a settings file. I saw that you mentioned changing the delay in index.js as a solve to someone else's problem. I tried that. It did not help. I mean it took longer before it tried to connect, but it never loaded the settings. Is there a function that is clearing the default.txt or is there a way to load another txt file with the settings?

Also, the app installs it self in a strange place on the mac OS. most applications are installed on Macintosh HD -> Applications but OSC-for-OBS installs on Macintosh HD -> Users -> -> Applications This is not a big deal, but it means that it is not available to all users by default.

Thanks for your help!