Amazing stuff, this is such a breath of fresh air for VP and virtual pinball in general. I have a quick question though and sorry if this has already been asked.
How do you maintain multiple installations/versions of VPX on the same machine?
I mean, when you specifically configure VPX_GL for VR (AA off and other settings to improve performance) those visual preferences are stored globally on your system and looks like they affect the regular VPX editor for desktop playing, even if you duplicate the VPX installation folder. Can the settings for VPinballX_GL be stored in an ini file on the game's folder? It would be more convenient to easily switch between devices/play sessions.
Keep up the good work!
EDIT: Think I found a simple solution for my problem. Since Visual Pinball stores the settings in the Windows registry we can change the values using a .reg file that can be opened when we start VPinballX.exe with a batch file. This was my method if you guys want to follow it.
1. Open the registry editor (if you don't know how to do it follow this guide for your Windows version)
2. Navigate to the following path: HKEY_CURRENT_USER\Software\Visual Pinball\VP10\Player
You should see a list of the game's settings starting with AdaptiveVSync, AddCreditKey, etc.
WARNING: Don't make any changes here, the registry should be handled via Visual Pinball only!
3. Save your current settings into a .reg file by going to File -> Export...
For simplicity save the file into your VP root folder, where the game's executable is.
Keep the Registry Editor open because it will be necessary again later.
4. Open VPinballX_GL.exe (no need to load a table)
5. Go to Preferences -> Video/Graphics Options...
6. Change the settings according to the mode you want to configure next. For instance, if you had your preferences set up for VR playing, the .reg file we saved earlier has those settings saved, so we need to change the values for regular screen playing. In my case I just clicked the "Set for HighEnd PC" button but take your time to pick the appropriate settings for your system/setup and test them if necessary. Vice versa if you want to set up VR preferences instead.
7. After changing the visual options press OK and close Visual Pinball.
8. Go back to the Registry Editor and press F5 to refresh the values.
9. Repeat step 3 but save the file with a diferent name. In my case, the 2 files I saved were named after the executable's filename, VPinballX_GL.reg for the VR settings and VPinballX.reg for the regular desktop playing settings.
You can close the Registry Editor.
10. Now that we have the 2 sets of options saved we can use them to automatically change the settings every time we open the game using a simple batch file to achieve this.
Create 2 new blank files inside the root folder of VP (where the game's executable is) and rename them VPinballX.bat and VPinballX_GL.bat for opening their respective executables (the name is not important but make sure the extension is .BAT)
11. Open the VPinballX.bat file with the notepad and copy and paste the following lines of code into it and save. (The first line silently loads the registry edits without requesting user input for permissions, thats what the "/S" flag stands for. The second line just opens VPinballX. Really simple stuff)
regedit.exe /S VPinbalX.reg
start VPinballX.exe
12. Do the same with these lines for the VPinballX_GL.bat
regedit.exe /S VPinbalX_GL.reg
start VPinballX_GL.exe
13. If everything is in the correct place and there were no errors we can now open the game by using these batch files we created. Check if the correct changes are applied for each program.
That's it, not too complicated but it's very useful if you want to play the game on the same system without worrying about configurations. Let me know if you guys need any help or if you have a simpler solution.
Edited by Rogerooo, 14 May 2019 - 04:38 AM.