Mike_da_Spike Posted July 12, 2023 Share Posted July 12, 2023 @Dacstyle asked me for documentation for settings up Vpinball 10.8 (still in beta) with different settings. Some use cases : Default cabinet support Used for tables with that needs some lower graphics settings VR system Headtracking devices In previous versions all settings where set in the registry and using for example another system needs a launch script to change the value in the registry. Starting from VisualPinballX 10.8 all the settings are stored in an INI file When launching the VpinballX.EXE (VpinballX_GL.EXE, VPinballX64.exe or VPinballX_GL64.exe) for the first time, it will copy all the settings from the registry to %appdata%\VPinballX\VPinballX.ini When this file exists, everytime you launch VpinballX 10.8 (or higher) it will use this INI file. any change you make to the configuration will be made to this file as well To use Visual Pinball with different settings, you can make copies of this file. In my example I will make 3 different settings files : Standard Visual Pinball Visual Pinball 64 bit GL for headtracking Visual Pinball 64 Bit GL for VR But as I said, you can make your settings file If you save the INI file next to your table file, with the same table name, it will use this ini file for the specific table as well ! (But hard to manage 1100+ tables like me) My steps : Copy the file %appdata%\VPinballX\VPinballX.ini to your Visual Pinball Directory. For me it is C:\Pinball\Visual Pinball Rename the file so, it you know the purpose of it In my example : Will be the standard VP settings (no extra ini, just the one from appdata) Visual VPinballX_Headtracking.ini Visual VPinballX_VR.ini So I got 2 ini files in my Visual Pinball directory : To launch Visual Pinball with a specific INI file, you need to launch the exe from the command line with a special -ini parameters : For example to launch the VR : This is not really user friendly, so I want to make it a bit easier. When just checking tables, I'm not using my front end, but just using file explorer. When I right click on them, I want to options that I created (see the 3 above). Like this : Open and Edit are still the default But 'Edit Kinect' and 'Edit VR', I added (with the correct Ini files). Create a text file call VP.reg (or anything with the extension .reg) paste the following into it : Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell\Edit VR] [HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell\Edit VR\command] @="\"C:\\Pinball\\Visual Pinball Beta\\VPinballX_gl64.exe\" -ini \"C:\\pinball\\Visual Pinball\\VPinballX_VR.ini\" -edit \"%1\"" [HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell\Edit Kinect] [HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell\Edit Kinect\command] @="\"C:\\Pinball\\Visual Pinball Beta\\VPinballX64.exe\" -ini \"C:\\pinball\\Visual Pinball\\Visual VPinballX_Headtracking.ini\" -edit \"%1\"" Modify the names to display ('Edit Kinect' and 'Edit VR') for your own purpose Also change the paths to the EXE files and the INI files to your own needs save the file and should show up like this : Double click the file click Yes and click Yes to confirm Now you have the 2 extra menu options Note : If you want to setup for all users, replace the following lines from: HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell to: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VPX_auto_file\shell If you now right click on a VPX file, you can edit this in the system you want, and when exiting Visual Pinball , it will save it to that file. For example, we only copied the files to the Viusl Pinball Direcorty. now I want to setup my VR environment : I right click on a VPX and select Edit VR Visual Pinball will open (Gl version with the ini file for VR) I can make my adjustments for any settings and close Visual Pinball. this will automaticlly save the INI file Testing a table ? just click run (F5) in the editor Now do this for all your ini files. If you want to setup a specific INI file for a table that needs special threatment. just copy an in ifile to the location where your VPX table is, and name the INI file with the same name : How to setup your frontend ? Different configs needs to be separated by extra System (I hope that Tom will add this feature request ) to the parameters, add -ini with the INI file as well I have my VR tables in a different folder and set it up like this : 3 Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted July 12, 2023 Share Posted July 12, 2023 Thank you @Mike_da_Spike this configuration works perfectly. Now I can use VPX GL for both cabinet and VR 1 Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted August 16, 2023 Share Posted August 16, 2023 Mike, when I use the 'right click' and select 'edit VR' from the menu, as you demonstrated in the example above, it opens Visual Pinball and launches the table. Is that correct, or am I missing something? It would be better if that menu could open the editor without launching the table. Quote Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted August 17, 2023 Author Share Posted August 17, 2023 10 hours ago, Dacstyle said: Mike, when I use the 'right click' and select 'edit VR' from the menu, as you demonstrated in the example above, it opens Visual Pinball and launches the table. Is that correct, or am I missing something? It would be better if that menu could open the editor without launching the table. You properly missed the -edit option in the registry. Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted December 13, 2023 Share Posted December 13, 2023 Hi @Mike_da_Spike do you know if VR LAUNCHER can run VPX with the -ini command to use an .ini file with the active VR function in the same way you explain here? I have it solved in pinup system, but I have a friend who uses pinballx for cabinet and vr launcher for VR. Now he wants to use the GL version also for cabinet, so he needs to create the separate .ini for VR and he is asking me for help to set up VR launcher. I don't know if VR LAUNCHER supports the -ini command or if I will have to create a .bat file and run the .bat from vr launcher. Quote Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 13, 2023 Author Share Posted December 13, 2023 11 hours ago, Dacstyle said: Hi @Mike_da_Spike do you know if VR LAUNCHER can run VPX with the -ini command to use an .ini file with the active VR function in the same way you explain here? I have it solved in pinup system, but I have a friend who uses pinballx for cabinet and vr launcher for VR. Now he wants to use the GL version also for cabinet, so he needs to create the separate .ini for VR and he is asking me for help to set up VR launcher. I don't know if VR LAUNCHER supports the -ini command or if I will have to create a .bat file and run the .bat from vr launcher. It's completely of topic 😉 And you mention 2 front ends that are competitors of PinballX. But yes ... vr launcher can use the -ini as well. I (euh ... I don't use vr launcher, but just ... euh ... tested it 😁) put it in the parameter field as first option (not at pc for screenshot) That should work ... but ... euh ... our secret that I have VR Launcher as well Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted December 13, 2023 Share Posted December 13, 2023 Sorry for the semi off-topic, I don't use VR launcher either, but I want to help my friend who is just starting out. Thank you, Mike, and sorry to everyone for the semi off-topic. 1 Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted December 14, 2023 Share Posted December 14, 2023 Now, in my case, after trying all the frontends for both cabinet and VR, I've decided to go back to PinballX. The main reason: I can't be on the opposite side of the street from Mike But seriously: The VR mode launchers like VR Launcher or the VR mode of Pinup were not practical for me, despite having attracted me to change the first time I tried them. Eventually, I find it much more comfortable to use the same menu and choose a table in cabinet or VR. If I launch the VR one, I do it normally and then put on the headset at that moment. This way, I'll be able to enjoy the database manager and the Pinemhi plugins that I loved again. So, you'll have me around here asking or helping out as much as I can. 2 Quote Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 14, 2023 Author Share Posted December 14, 2023 Welcome back ! And scutters did an update of pinemhi plugin. Also the weekly pin challange is available ! Maybe @Tom Speirs will port pinballx to a vr version in unity. So same interface but only in VR. Quote Link to comment Share on other sites More sharing options...
Dacstyle Posted December 15, 2023 Share Posted December 15, 2023 OK already set up pinballx and a separated system for VR. It works perfectly, just one problem: the focus is not on the table. I'm using opencomposite, need to investigate this Quote Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 15, 2023 Author Share Posted December 15, 2023 Use my "bring vpx on front" tool. Thats what multiple vr users are using 2 Quote Link to comment Share on other sites More sharing options...
ZoltanGaal Posted January 15 Share Posted January 15 OK, I'm stupid, doing something wrong, or it's Windows 11 that is killing me. But I can't get that context working. I've tried the reg settings, but I don't even get the open or edit up, I get. I am besaddened. Quote Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted January 16 Author Share Posted January 16 9 hours ago, ZoltanGaal said: OK, I'm stupid, doing something wrong, or it's Windows 11 that is killing me. But I can't get that context working. I've tried the reg settings, but I don't even get the open or edit up, I get. I am besaddened. How is your registry part looking ? type regedit and launch registry editor : paste the following text in the bar in registry editor and hit enter HKEY_CURRENT_USER\Software\Classes\VPX_auto_file\shell\ registry editor will jump automaticly to the location By default 'edit 'and 'open' will be showed (if you install VP via the VP minimal installer). If VPX-AUTO-FILE is not present, re-install VP via VP installer, otherwise you don't have all the DLL registered for VP If FILE is present, you can add a sub key with a name you like, and under that one, make a command subkey In the default key put the path and parameters, like I did below This is pointing to my VP 8 directory and I start the specific table in edit mode with a custom settings called VP.ini Now I have the following options : I hope this make sense Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.