vpx_vr_setup
                no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | vpx_vr_setup [2021/12/02 19:02] (current) – created pinupadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== VPX VR Config ====== | ||
| + | |||
| + | This page is to configure Visual Pinball X (VR Version) with PinUP PopperVR. | ||
| + | |||
| + | **You must have VPXVR working 100% on its own and setup BEFORE adding it and the VR Tables to the frontend!** | ||
| + | |||
| + | You should watch this video by Scampa to help understand how it all works together. | ||
| + | |||
| + | {{ youtube> | ||
| + | |||
| + | Make New emulator if needed in Popper called somethin like Visual Pinball VR: I suggest to put VPXVR tables into a subfolder of virtualpinball\TABLESVR | ||
| + | |||
| + | ==== Emulator Launch setup Option 1 (Advanced suggested) ==== | ||
| + | |||
| + | Default SteamVR launch script. Note this has many options on top for default/ | ||
| + | |||
| + | useB2S, | ||
| + | |||
| + | those are found in the keys config dialog in vpx-vr. You any combination separated by comma on the game in Games Manager. | ||
| + | |||
| + | **Launch Script: (note you must ensure that the first line starts with ;ahk (no blank lines before))** | ||
| + | < | ||
| + | ;ahk | ||
| + | DetectHiddenWindows, | ||
| + | |||
| + | ;Change the following line to EnableTrueFullScreen to default FullScreen Exclusive in VPX. | ||
| + | FSMODE=DisableTrueFullScreen | ||
| + | |||
| + | ;changle this to 1 if you want to close/ | ||
| + | ClosePOPVR=0 | ||
| + | |||
| + | ;set vpxvr default values for vr | ||
| + | DisableB2S=1 | ||
| + | BGSet=0 | ||
| + | MaxTexDimension=3072 | ||
| + | BallStretchMode=1 | ||
| + | CapExternalDMD=1 | ||
| + | CapPUPDMD=1 | ||
| + | |||
| + | ;check for overrides | ||
| + | CUSTOMVAR: | ||
| + | if InStr(CUSTOMVAR," | ||
| + |  | ||
| + | } | ||
| + | if InStr(CUSTOMVAR," | ||
| + |  | ||
| + | } | ||
| + | if InStr(CUSTOMVAR," | ||
| + |  | ||
| + | } | ||
| + | |||
| + | ;update registry for vpxvr | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | |||
| + | VPXEXE=VPinballX_GL.exe | ||
| + | if (" | ||
| + | VPXEXE=[ALTEXE] | ||
| + | } | ||
| + | |||
| + | ;we now launch stuffs. | ||
| + | TableName: | ||
| + | SetWorkingDir, | ||
| + | Run, | ||
| + | sleep,5000 | ||
| + | FileAppend,, | ||
| + | sleep,500 | ||
| + | WinWait, | ||
| + | sleep,2500 | ||
| + | Postmessage, | ||
| + | |||
| + | if (ClosePOPVR=1) | ||
| + | { | ||
| + | WinKill, | ||
| + | FileAppend,, | ||
| + | } | ||
| + | Loop, 5 { | ||
| + | sleep,1000 | ||
| + | WinGetActiveTitle, | ||
| + | if (" | ||
| + | WinActivate, | ||
| + | } | ||
| + | } | ||
| + | |||
| + | ;set vpx default values for cabinet back after launch | ||
| + | DisableB2S=0 | ||
| + | BGSet=1 | ||
| + | MaxTexDimension=0 | ||
| + | BallStretchMode=2 | ||
| + | CapExternalDMD=1 | ||
| + | CapPUPDMD=1 | ||
| + | |||
| + | ;update registry for cabinet | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | RegWrite, | ||
| + | |||
| + | ;uncomment below to set your VPX_GL-defined recenter key to recenter your view (numpad 5 is key in example) | ||
| + | ;Send {Numpad5} | ||
| + | |||
| + | </ | ||
| + | |||
| + | Default Close Script: | ||
| + | |||
| + | < | ||
| + | ;ahk | ||
| + | DetectHiddenWindows, | ||
| + | setTitleMatchMode, | ||
| + | |||
| + | FileDelete, | ||
| + | ;if we are in restart POPVR.exe mode this file will exists from launch script. | ||
| + | if FileExist(" | ||
| + | { | ||
| + | SetWorkingDir, | ||
| + | Run, | ||
| + | FileDelete, | ||
| + | WinWait, | ||
| + | } | ||
| + | WinKill," | ||
| + | ;Process, Close, VPinballX_GL.exe | ||
| + | ;put popvr in focus | ||
| + | PostMessage, | ||
| + | Loop, 2 { | ||
| + | WinGetActiveTitle, | ||
| + | if (" | ||
| + |  | ||
| + | sleep,1000 | ||
| + | } | ||
| + | ;hide poppervr force as unity needs this | ||
| + | PostMessage, | ||
| + | ;tell popper to return | ||
| + | Postmessage, | ||
| + | ;now keep Popper in Focus. | ||
| + | Loop, 3 { | ||
| + | sleep,1000 | ||
| + | WinGetActiveTitle, | ||
| + | if (" | ||
| + | WinActivate," | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Option #2 (no registry overrides, not using AHK) ==== | ||
| + | |||
| + | Default STEAMVR launch script (using hibernation mode) | ||
| + | |||
| + | < | ||
| + | cd /d " | ||
| + | START /min "" | ||
| + | timeout 5 | ||
| + | " | ||
| + | echo 1>> " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
| + | Close Script | ||
| + | |||
| + | < | ||
| + | " | ||
| + | del " | ||
| + | timeout 2 | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Emulator Launch setup Option #3 ==== | ||
| + | |||
| + | If you want to close/ | ||
| + | |||
| + | For SteamVR OPENXR Driver use these as sample launch/ | ||
| + | |||
| + | Launch | ||
| + | |||
| + | < | ||
| + | cd /d " | ||
| + | START /min "" | ||
| + | " | ||
| + | taskkill /im " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
| + | Close | ||
| + | |||
| + | < | ||
| + | cd /d [STARTDIR]PopperVR | ||
| + | START "" | ||
| + | timeout 1 | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Emulator Launch setup Option #4 ==== | ||
| + | |||
| + | Using NON-SteamVR as your OPENXR driver here are sample launch/ | ||
| + | |||
| + | NON-STEAMVR Launchscript: | ||
| + | |||
| + | < | ||
| + | cd /d " | ||
| + | START /min "" | ||
| + | timeout 5 | ||
| + | taskkill /im " | ||
| + | " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
| + | NON STEAMVR-Closescript: | ||
| + | |||
| + | < | ||
| + | " | ||
| + | timeout 1 | ||
| + | rem if using oculus for OPENXR then use the next two lines by removing REM | ||
| + | taskkill /im vrmonitor.exe | ||
| + | taskkill /im vrserver.exe | ||
| + | cd /d [STARTDIR]PopperVR | ||
| + | START "" | ||
| + | " | ||
| + | START "" | ||
| + | |||
| + | </ | ||
| + | |||
vpx_vr_setup.txt · Last modified: 2021/12/02 19:02 by scampa123
                
                
