Jump to content



Photo
- - - - -

VPX script help

Apron script plunger effect pupplayer

  • Please log in to reply
5 replies to this topic

#1 mattbini

mattbini

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts

  • Flag: United Kingdom

  • Favorite Pinball: star wars

Posted 13 February 2021 - 10:34 AM

Hi All,

 

I have ordered a fourth screen to use as an Apron at the front of my cab. I will be puting the instructions etc on there using pinup player. I would also like to put an interactive plunger lighting video effect on it.

To do this I was thinking of adding a light or switch in the table outside the table view linked to the plungerkey button. Then relaying that switch as a trigger in pinupplayer. I have been trying to learn how to add a script to do this. So far all I have found is it may be something like : If keycode=Plungerkey then switch100=1. It doesnt work and script allways crashes, I havent got much further, I think it may need a sub file name and end too, but I am a complete novice when it comes to code.

Is there anybody out there, that knows the script I can use and may be able to help? Thanks



#2 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 13 February 2021 - 11:43 AM

I do not have pinup, i am guessing you want to do this like a PUPpack kind of thing?

 

You need to then add PUP to the table

' COPY EVERYTHING BELOW TO THE TOP OF YOUR TABLE SCRIPT UNDER OPTION EXPLICIT

'****** PuP Variables ******

Dim usePUP: Dim cPuPPack: Dim PuPlayer: Dim PUPStatus: PUPStatus=false ' dont edit this line!!!

'*************************** PuP Settings for this table ********************************

usePUP   = true               ' enable Pinup Player functions for this table
cPuPPack = "pup-pack_name"    ' name of the PuP-Pack / PuPVideos folder for this table

'//////////////////// PINUP PLAYER: STARTUP & CONTROL SECTION //////////////////////////

' This is used for the startup and control of Pinup Player

Sub PuPStart(cPuPPack)
    If PUPStatus=true then Exit Sub
    If usePUP=true then
        Set PuPlayer = CreateObject("PinUpPlayer.PinDisplay")
        If PuPlayer is Nothing Then
            usePUP=false
            PUPStatus=false
        Else
            PuPlayer.B2SInit "",cPuPPack 'start the Pup-Pack
            PUPStatus=true
        End If
    End If
End Sub

Sub pupevent(EventNum)
    if (usePUP=false or PUPStatus=false) then Exit Sub
    PuPlayer.B2SData "E"&EventNum,1  'send event to Pup-Pack
End Sub

' ******* How to use PUPEvent to trigger / control a PuP-Pack *******

' Usage: pupevent(EventNum)

' EventNum = PuP Exxx trigger from the PuP-Pack

' Example: pupevent 102

' This will trigger E102 from the table's PuP-Pack

' DO NOT use any Exxx triggers already used for DOF (if used) to avoid any possible confusion

'************ PuP-Pack Startup **************

PuPStart(cPuPPack) 'Check for PuP - If found, then start Pinup Player / PuP-Pack

Then then to your plunger, add like

If key=plungerkey then
plunger.pull
pupevent 300
end if

switches if i understand correctly are for triggering PUP events from ROM switches
and there generally is no switch in a pinball table attached to the plunger

 

So you create PUP events and give them numbers
Numbers that are far away from DOF events, hence me suggesting 300, no DOF event at 300


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#3 mattbini

mattbini

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts

  • Flag: United Kingdom

  • Favorite Pinball: star wars

Posted 13 February 2021 - 12:31 PM

Thanks Wiessund, this is what I was after :db: I knew there must be a way, you will be a great help I am sure. I will copy the text and give it a try and let you know Cheers



#4 mattbini

mattbini

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts

  • Flag: United Kingdom

  • Favorite Pinball: star wars

Posted 13 February 2021 - 02:22 PM

Hi Wiesshund, hey its working thanks so much for helping me along, text of what worked is below:

 

If keycode=plungerkey then pupevent 300 end if

 

Marvelous!!


Edited by mattbini, 13 February 2021 - 03:00 PM.


#5 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 14 February 2021 - 07:46 AM

Hi Wiesshund, hey its working thanks so much for helping me along, text of what worked is below:

 

If keycode=plungerkey then pupevent 300 end if

 

Marvelous!!

 

cool glad it worked 1st time
i do not have PUP, so i have never actually put it to use

 

I have a hard enough time bothering to look at what is on the DMD


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#6 mattbini

mattbini

    Enthusiast

  • Members
  • PipPipPip
  • 153 posts

  • Flag: United Kingdom

  • Favorite Pinball: star wars

Posted 14 February 2021 - 12:58 PM

 

Hi Wiesshund, hey its working thanks so much for helping me along, text of what worked is below:

 

If keycode=plungerkey then pupevent 300 end if

 

Marvelous!!

 

cool glad it worked 1st time
i do not have PUP, so i have never actually put it to use

 

I have a hard enough time bothering to look at what is on the DMD

 

Hi,Wiesshund, Yes I have to agree with you there, as some puplayers packs have so much going on its like trying to watch a movie and play a table at the same time. But the great thing about pinup, is you can use it as minimal as your preference, it is so easy to strip out what you do or dont want from the pack. I tend to only use my topper screen for extra vids and if possible my preference is to only play them at special occations a bit like how Slamt1lt does his on FP. People are also using it as an alternative to altsound by muting the music on the rom which can sound really good too. I know many would also use there Apron screen as a movie thing too, (it could get tacky if you know what I mean) but I only intend to let pupplayer put still images of the instructions etc there and the effect for the plunger when in use. I had some tables from fx3 once and I had to strip out all the special effects and scores as it felt like playing on a desktop. The only thing I want to be drawn too at the front of the table while playing is the flippers. Thanks again for helping







Also tagged with one or more of these keywords: Apron, script, plunger effect, pupplayer