Jump to content



Photo
- - - - -

Staged Flips (How the hell do you make it work) VPX 10.8


  • Please log in to reply
No replies to this topic

#1 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,802 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 August 2023 - 04:54 AM

I am posting this because someone asked in github and it took a bit to figure it out.
This is without Antimicro or joy2key

 

MANUALLY assign some keyboard keys to VPX for Custom 1 and Custom 2
You cannot do it in the UI as it will not save so...

 

Pick 2 keys to use,I am using U and I for this example

 

open vpx folder\scripts\VPMkeys.vps
Find key code for your keys
U is 22 I is 23

 

 

Navigate to %appdata%\VPinballX

Open VPinballX.ini in notepad

find JoyCUstomKey

 

Edit it to be

 

joycustom1key = 22
joycustom2key = 23
 
Use they key number YOU chose of course if not U and I
 
Save and close file
 
 
Now in VPM keys edit this section, default uses left and right flippers as the staged flips
 
' Double leaf/staged flipper switches: By default these are just set to LeftFlipperKey and RightFlipperKey
Dim keyStagedFlipperL : keyStagedFlipperL = 22
Dim keyStagedFlipperR : keyStagedFlipperR = 23

Ok now, you need to know what gamepad buttons your staged flips outputs as
you can get that from windows gamepad config
push the buttons, see what windows calls them

In this example i am using a generic xinput gamepad, but controlled type does not matter.

 

my thumbstick buttons at 9 and 10

 

Ok now Open VPX
go to dof nudge keys prefs

Ok see our custom 1 2 3 4?

See the U and I showing as keys for 1 and 2

Click the dropdown and pick your button numbers.

 

Click OK to close dialog.

 

Now go open twilight zone

Why Twilight Zone?
Cause it's the only damned table i have that i know for sure has staged flips, cause i checked the wiring schematic.

 

drop in 2 coins and test your staged flips
they should trigger  from typing U and I
They should also trigger from pressing the controller buttons you mapped, as VPX will interpret that as key U and I sent and will tell VPM the same.

 

There, staged flips.
No extra software to run in background.

This will NOT WORK if the table author has bound the 2ndary flips to the primary in the table script
That you have to edit yourself

It will also NOT work, if the ROM does not actually have staged Flips.
But you could script them in yourself.

And Yes, this will work for ROMless EM or Original tables too, though at the moment i am damned if i know what VPX script calls custom key 1 2 3 or 4
but you could use if keycode = 22 and 23 until someone tells me what VPX refers to the keycode as


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

If you really want to get rid of money you can donate to this

Athena's Wildlife Sanctuary