OpenVR2Key icon indicating copy to clipboard operation
OpenVR2Key copied to clipboard

Will not switch configurations for different apps.

Open DigitizedLife opened this issue 3 years ago • 7 comments

I am receiving the following error in the log window. Not sure if the error is the reason for not loading individual app configurations.

The default configuration works great. But it does not switch when I switch apps.

Screenshot 2022-09-13 010048

DigitizedLife avatar Sep 13 '22 05:09 DigitizedLife

That message is emitted when no game is running on ID change or startup, doesn't mean the program is not working. Maybe I should prevent this log message from showing up if it causes confusion.

Things to check:

  1. What does it say in Current app ID? As that is what profiles are saved for?
  2. You can also check if it is creating files in the config subfolder in the folder of the program.
  3. Did you press the button that says Add app-specific config when a game is running?
  4. Which specific games did you try this with where it didn't work?

I just tried this with a two games, Tentacular and VR Dungeon Knight, and for me it switched config as it should, which is why I need more information.

BOLL7708 avatar Sep 13 '22 17:09 BOLL7708

I am using VPX VR-Launcher 4.exe (Visual Pinball VR Launcher) and VPinballX_VR.exe (Visual Pinball X VR). I can create the configs for them when they are running and they are saved in the config folder with the proper app id, but when I run either of the apps they only use the default config even though the proper app id is shown. I know they are using the default config because I set some values for test. I see that error message every time I switch apps.

DigitizedLife avatar Sep 13 '22 18:09 DigitizedLife

What app IDs do they show up as having? As they seem to be executables from outside of Steam, perhaps their generated names have bumped into an incompatibility... 🤔

And the error should indeed show up every time as it goes to an invalid value before getting an actual value with the next title. This is why I'm thinking it might be best to suppress these messages.

BOLL7708 avatar Sep 13 '22 18:09 BOLL7708

screens

DigitizedLife avatar Sep 13 '22 19:09 DigitizedLife

I just figured it out after looking at the screen shots. The file names of the configs are wrong (missing non text characters). I corrected the file names to accurately reflect the app names and it all works! Seems that when the configs are saved it is not using non text characters in the file name.

DigitizedLife avatar Sep 13 '22 19:09 DigitizedLife

Oh look at that, there are spaces in the generated IDs, I honestly had no idea that was possible 😅 I uh... might have to look at this. Thanks for figuring it out 🤣 I'll have to sync the lookup of files to also remove the spaces, pretty sure I use some standard component to write the files, as such I was surprised this happened 🙃 (or it's my code, it's been a while)

BOLL7708 avatar Sep 14 '22 05:09 BOLL7708

I pushed a pre-release version here with a potential fix, if you have the time for it, please try this version and see if it fixed this issue!

BOLL7708 avatar Oct 15 '22 11:10 BOLL7708