User Tools

Site Tools


pinup_optional

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pinup_optional [2021/05/25 18:55]
outhere [Option #3. Dual Boot Puppack by default custom parameters.]
pinup_optional [2021/10/28 14:02] (current)
outhere [Option #4. Using alternate Rom with Option #3]
Line 73: Line 73:
 This will launch the table, and if **HIDEPUP **is in **Custom Launch ****Param ** (for this game), Popper will create a text file called "**PUPHideNext.txt**" in the PuP-Pack folder you specified (in the ROM field) for the game in Games Manager. When the pup-pack tries to start, it will check for that PUPHideNext.txt file. If that file exists, then the PuP-Pack won't start, and the PUPHideNext.txt file is deleted. This will launch the table, and if **HIDEPUP **is in **Custom Launch ****Param ** (for this game), Popper will create a text file called "**PUPHideNext.txt**" in the PuP-Pack folder you specified (in the ROM field) for the game in Games Manager. When the pup-pack tries to start, it will check for that PUPHideNext.txt file. If that file exists, then the PuP-Pack won't start, and the PUPHideNext.txt file is deleted.
 ===== Option #3. Dual Boot Puppack by default custom parameters. ===== ===== Option #3. Dual Boot Puppack by default custom parameters. =====
-**To add the ability to use an alternate Rom ith this Option <font inherit/inherit;;#e74c3c;;inherit>(SEE Option 4 Below)</font>** +**To Add the Ability to use an Alternate Rom <font inherit/inherit;;#e74c3c;;inherit>(SEE Option 4 Below)</font>**
- +
-Requires new 10.6 beta that supports custom parameters.+
  
 THIS IS AN ADVANCED METHOD where you use one VPX Table to load Either the BackGlass or Puppack. THIS IS AN ADVANCED METHOD where you use one VPX Table to load Either the BackGlass or Puppack.
Line 82: Line 80:
  
 How it works\\  How it works\\ 
-In controller setup you will select a Key For MENU SELECT KEY +In Controller Setup you will select a Key For (MENU SELECT KEY)\\
 That will bring up the games menu with all other options\\ That will bring up the games menu with all other options\\
 So on the front-end you can start the table directly or you can press the Menu select key So on the front-end you can start the table directly or you can press the Menu select key
Line 95: Line 93:
 ---- ----
  
-In Game Manager on the Left Pick the Game and on the Right In <font inherit/inherit;;#e74c3c;;inherit>**Alternate Run Modes**</font> Put <font inherit/inherit;;#2980b9;;inherit>**NOPUP**</font>+In Game Manager on the Left Pick the Game and on the Right In <font inherit/inherit;;#e74c3c;;inherit>**Alternate Run Modes**</font> Put <font inherit/inherit;;#2980b9;;inherit>**NOPUP**</font>\\ 
 +See Sample Launch and Close Scripts Below
 <code> <code>
 Rem Put the next 2 lines above this line in your launch script and add this %ALTPARAM% Rem Put the next 2 lines above this line in your launch script and add this %ALTPARAM%
Line 135: Line 134:
  
 To use command line in new vpx 10.6 you need to pass **-c1 NOPUP** depending on a parameter or alt-run-mode. To use command line in new vpx 10.6 you need to pass **-c1 NOPUP** depending on a parameter or alt-run-mode.
-===== Option #4. Dual Boot Back-Glass by default custom parameters. =====+===== Option #4. Using alternate Rom with Option #3 ===== 
 +This option will change where VP (VPinMame) looks for the Rom By making a change in the Windows registry\\
  
-Requires new 10.6 beta that supports custom parameters+Make a <font inherit/inherit;;#e74c3c;;inherit>altrom</font> folder in your VPinMame folder and in that folder put the regular Rom\\ 
 +Put the alternate Rom in the Rom's Folder
  
-THIS IS AN ADVANCED METHOD where you use one vpx table file and using the ALT-RUN-MODE in v1.4 or Newer to load Either the BackGlass or Puppack.+In Game Manager on the Left Pick the Game and on the Right In <font inherit/inherit;;#e74c3c;;inherit>**CUSTOM2**</font> Put <font inherit/inherit;;#2980b9;;inherit>**ALTROM**</font>\\ 
 +See Sample Launch and Close Scripts Below
  
-This will use the new option in 10.6 that allows custom parameters to be sent via command line (front end will need to pass them depending on variables).+<code> 
 +Rem :Add next Line To Launch Script -- See sample Launch and Close Script Below
  
-This is where you use ONE vpx table file and name the directb2s exactly the same.+ if /I "[CUSTOM2]"=="ALTROM" (REG ADD "HKCU\SOFTWARE\Freeware\Visual PinMame\globals" /v "rompath" /t REG_SZ /d "%E:\Visual Pinball\VPinMame\altrom%" /f) 
 +</code>
  
-There is also some pertinent information you will need from here\\ +<code> 
-https://www.nailbuster.com/wikipinup/doku.php?id=alt_mode&s[]=fx3+Rem :Add next Line To close Script -- See sample Launch and Close Script Below
  
-In Game Manager on the Left Pick the Game and on the Right In <font inherit/inherit;;#e74c3c;;inherit>**Alternate Run Modes**</font> Put <font inherit/inherit;;#2980b9;;inherit>**PUPSWITCH**</font>+ if /I "[CUSTOM2]"=="ALTROM" (REG ADD "HKCU\SOFTWARE\Freeware\Visual PinMame\globals" /v "rompath" /t REG_SZ /d "%E:\Visual Pinball\VPinMame\roms%" /f) 
 +</code> 
 + 
 +Launch Script
 <code> <code>
-Rem Put the next 2 lines above this line in your launch script and add this %ALTPARAM% +@echo off
-rem START /min "" %VPXEXE% "[DIREMU]" -%FSMODE% -minimized -play "[GAMEFULLNAME]" %ALTPARAM%+
  
-SET ALTPARAM= +START "" "[STARTDIR]Launch\VPXSTARTER.exe30 10 30 "Visual Pinball Player"
-if /I "[ALTMODE]"=="PUPSWITCH(SET ALTPARAM=-c1 PUPSWITCH )+cd /d "[DIREMU]"
  
-</code>+rem Change the following to EnableTrueFullScreen to default FullScreen Exclusive!     DisableTrueFullScreen
  
-See the sample here: You will add the one line of code to the controller startup In Table Script like below.\\ +FSMODE=EnableTrueFullScreen
-<font inherit/inherit;;#27ae60;;inherit>With the</font> <font inherit/inherit;;#e74c3c;;inherit>One line</font> <font inherit/inherit;;#27ae60;;inherit>from below the BackGlass will Launch by default</font>\\ +
-Example “PUPSWITCH” will decide how the table is started.+
  
-<code> +SET VPXEXE=vpinballx.exe
-Sub Table1_Init +
-    vpmInit Me +
-    With Controller +
-   .GameName cGameName +
-        If Err Then MsgBox "Can't start Game " & cGameName & vbNewLine & Err.Description:Exit Sub +
-        .SplashInfoLine = "Batman, Data East 1991" & vbNewLine & "VPX table by Javier v1.0" +
-        .HandleKeyboard = 0 +
-        .ShowTitle = 0 +
-        .ShowDMDOnly = 1 +
-        .ShowFrame = 0 +
-        .HandleMechanics = 0 +
-        .Hidden = 0 +
-         if GetCustomParam(1)= "PUPSWITCH" Then .LaunchBackglass=0 else .PuPHide=1 end if +
-        .Games(cGameName).Settings.Value("sound") = 1 +
-        On Error Resume Next +
-        .Run GetPlayerHWnd +
-        If Err Then MsgBox Err.Description +
-    End With +
-    On Error Goto 0+
  
-</code>+if "[RECMODE]"=="1" (SET FSMODE=DisableTrueFullScreen ) 
 +if /I "[CUSTOM1]"=="NOFSX" (SET FSMODE=DisableTrueFullScreen ) 
 +if NOT "[ALTEXE]"=="" (SET VPXEXE=[ALTEXE] )
  
-Note:+SET ALTPARAM= 
 +if /I "[ALTMODE]"=="NOPUP" (SET ALTPARAM=-c1 NOPUP ) 
 +if /I "[CUSTOM2]"=="ALTROM" (REG ADD "HKCU\SOFTWARE\Freeware\Visual PinMame\globals" /v "rompath" /t REG_SZ /d "%E:\Visual Pinball\VPinMame\altrom%" /f)
  
-To use command line in new vpx 10.6 you need to pass **-c1 PUPSWITCH** depending on a parameter or alt-run-mode.+START /min "" %VPXEXE% "[DIREMU]" -%FSMODE% -minimized -play "[GAMEFULLNAME]" %ALTPARAM%
  
 +if %FSMODE%==DisableTrueFullScreen (START "" "[STARTDIR]Launch\PopperKeepFocus.exe" "Visual Pinball Player" 10)
 +</code>
  
 +
 +Close Script
 +<code>
 +"[STARTDIR]LAUNCH\PUPCLOSER.EXE" WINTIT "Visual Pinball" 10 1
 +Timeout /t 2
 +if /I "[CUSTOM2]"=="ALTROM" (REG ADD "HKCU\SOFTWARE\Freeware\Visual PinMame\globals" /v "rompath" /t REG_SZ /d "%E:\Visual Pinball\VPinMame\roms%" /f)
 +</code>
pinup_optional.1621983310.txt.gz · Last modified: 2021/05/25 18:55 by outhere