User Tools

Site Tools


optional_pup_pack

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
optional_pup_pack [2019/02/18 13:39]
pinupadmin
— (current)
Line 1: Line 1:
-===== Make table have optional PuP-Pack enabled/​disabled. ===== 
- 
-You may wish to have a table display PuP-Pack or the '​normal'​ directb2s file. There are a couple of methods to do this. 
- 
-These methods requires you to use the PUP-inspired version of B2S server. See useful links on this wiki. 
- 
-===== Option #1: ===== 
- 
-Have two copies of the vpx table. 
- 
-one-pup and one-non-pup,​ they must have different filename and the directb2s file must match exactly with the non-pup vpx version. 
- 
-in the non-pup vpx version you need to add one line to table_init section of the table. 
- 
-you will need to find where the b2s server(controller) is started and add .PuPHide=1 line. see example here: 
- 
-<​code>​ 
-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 
-</​code>​ 
- 
-===== Option #2. requires new 10.6 beta that supports custom parameters. ===== 
- 
-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. 
- 
-<​code>​ 
-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 
-</​code>​ 
- 
-Note: 
- 
-These methods will work with tables that use B2S/pup capture methods. ​ If the table is script only then most likely there is no directb2s option, or see table script if there'​s an option to enable/​disable. 
- 
  
optional_pup_pack.1550515197.txt.gz ยท Last modified: 2019/02/18 13:39 by pinupadmin