Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default config clearing #15

Open
willpickens opened this issue Jun 18, 2022 · 2 comments
Open

Default config clearing #15

willpickens opened this issue Jun 18, 2022 · 2 comments

Comments

@willpickens
Copy link

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
Copy link
Owner

jshea2 commented Jun 18, 2022

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
Copy link
Author

willpickens commented Jul 1, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants