BOLL7708 / OpenVR2Key

Simulates key presses from SteamVR input
120 stars 16 forks source link

Will not switch configurations for different apps. #27

Closed DigitizedLife closed 1 year ago

DigitizedLife commented 1 year ago

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

BOLL7708 commented 1 year ago

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.

DigitizedLife commented 1 year ago

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.

BOLL7708 commented 1 year ago

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.

DigitizedLife commented 1 year ago

screens

DigitizedLife commented 1 year ago

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.

BOLL7708 commented 1 year ago

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 commented 1 year ago

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!