User Tools

Site Tools


pinup_optional

V1.4 Running PinUP Table and have option to run without PinUP.

So you have a table called Transformers.vpx that loads the puppack/rom “trm_101”

if you create a copy of that to TransformersPUPHide.vpx, it still uses the same rom so Player will still play pup-pack.

Solutions:

There's different methods to solve this, choose which one you feel is easier to use.

Make sure you are using the B2S server that is PuP-custom so that no fuzzy name matching will get in way.

the 'easiest' solution is probably #2 for beginners.

In #1 and #2 options you will need to make a copy of your Transformers.vpx to TransformersPUPHide.vpx and rename the directb2s to TransformersPUPHide.directb2s. (names must be exact). You will need to add the new vpx table as a separate table in Popper (these method doesn't use alt-run-mode, you can put that is more advanced and will be covered in another method);

in #3 you have just one vpx table and directb2s file named exactly. But this should ONLY be used for advanced users….

Option #1. Modify table script of TransformerPUPHide.vpx.

you need to open vpx of PUPHIDE vpx version and find something like this:

example in table_init script: you need to add that line .PuPHide=1

''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
.PuPHide = 1
.Games(cGameName).Settings.Value("sound") = 1
On Error Resume Next
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
End With
On Error Goto 0
''

Notice the .PuPHide = 1 (1=disable pupb2s plugin, 0 = enable..default if not set )

Option #2: *** Note this requires PinUPMenu v1.4.1+ to work correcty

You will need to make sure the ROM field in Games Manager on the PUPHIDE.VPX table is set correctly to the name of the PuP-Pack. Then put the word HIDEPUP in the Custom Launch Param as well.

Then add the following to the top of vpx launch script in emulator setup.

if "[CUSTOM1]"=="HIDEPUP" (
 echo 1>> "[STARTDIR]PUPVideos\[?ROM?]\PUPHideNext.txt"
 )

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. requires new 10.6 beta that supports custom parameters.

THIS IS AN ADVANCED METHOD where you use one vpx table file and using the ALT-RUN-MODE in v1.4 you can change the way the table loads the backglass.

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).

This is where you use ONE vpx table file and name the directb2s exactly the same.

See the sample here: We add two lines of code to the controller startup like below.

This is example with first custom parameter is “PUP” or “NOPUP” will decide how the table is started.

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)= "NOPUP" Then .PuPHide=1
         if GetCustomParam(1)= "PUP"  Then .LaunchBackglass=0
        .Games(cGameName).Settings.Value("sound") = 1
        On Error Resume Next
        .Run GetPlayerHWnd
        If Err Then MsgBox Err.Description
    End With
    On Error Goto 0

Note:

To use command line in new vpx 10.6 you need to pass -c1 PUP or -c1 NOPUP depending on a parameter or alt-run-mode.

pinup_optional.txt · Last modified: 2019/07/17 11:32 by pinupadmin