Jump to content



Photo
- - - - -

Why can't I set a Mech Tilt button in VP?


  • Please log in to reply
52 replies to this topic

#1 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 07 November 2013 - 09:35 PM

Hi Folks

 

I have just installed a DIY tilt bob in my mini cabinet and I assumed that I could just wire it to my game pad (button 8) and set that as the mech tilt button. However, when I try to do that in the key settings the button assignment just keeps resetting to 'none'. What am I missing?

Thanks in advance.



#2 koadic

koadic

    Pinball Fan

  • VIP
  • 1,363 posts
  • Location:Omaha, NE, USA

  • Flag: United States of America

  • Favorite Pinball: Addams Family/Fish Tales/Medieval Madness



Contributor

Posted 07 November 2013 - 09:40 PM

Guess I will have to look into that :D hopefully will have a fix for ya in a bit.

Edit: If you are using the recent beta versions (not sure when I actually added it), I know I put in the ability to assign custom keys to gamepad buttons. For now, you can assign a gamepad key to 'Custom 1' then assign the same keyboard key as Mech Tilt (you will probably want to change it from the default T for vpinmame games though)

Edited by koadic, 07 November 2013 - 09:43 PM.


#3 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 07 November 2013 - 10:10 PM

Thanks for the super quick reply. I should have mentioned that I'm using 9.1.5. Maybe I'm not understanding what 'mech tilt' does, I changed it to Y on my keyboard but it doesn't seem to do anything. Is there a manual for things like key settings?

 

By the way, when I say 'tilt', I mean tilt, I have nudging sorted out with a Sidewinder Freestyle Pro.


Edited by insx, 07 November 2013 - 10:22 PM.


#4 koadic

koadic

    Pinball Fan

  • VIP
  • 1,363 posts
  • Location:Omaha, NE, USA

  • Flag: United States of America

  • Favorite Pinball: Addams Family/Fish Tales/Medieval Madness



Contributor

Posted 07 November 2013 - 10:33 PM

Hit the 'All Daily Builds' link in my signature, and download the latest VP 9.1.6 revision. Then when you open the Keys menu, there will be an extra row of 'Custom' keys at the bottom. You can assign both a keyboard key and a gamepad button to these 'Custom' keys, and the gamepad button will then 'press' the keyboard key defined. So, since you changed 'Mech Tilt' to 'Y', set 'Custom1' to 'Y' as well, and choose the gamepad button you want to use to hit 'Y' (similar to xpadder or joy2key).

This will also be fixed here soon as well as 'Debug Balls' (that doesn't work either)

Edited by koadic, 07 November 2013 - 10:33 PM.


#5 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 07 November 2013 - 10:57 PM

I have the row of custom keys in 9.1.5 and what you suggested seems to work but the mech tilt button doesn't seem to do anything if I set it to anything other than T. If I leave it set as T it will trigger a tilt warning/tilt but it also seems to give the ball a good shove up the table.

 

Edit: OK, I get why T does that now - it's the key for bang back. In order for 'mech tilt' to simulate the tilt bob it would have to activate the correct switch, I suppose. At the moment mech tilt doesn't seem to do anything. What is it for?


Edited by insx, 07 November 2013 - 11:09 PM.


#6 koadic

koadic

    Pinball Fan

  • VIP
  • 1,363 posts
  • Location:Omaha, NE, USA

  • Flag: United States of America

  • Favorite Pinball: Addams Family/Fish Tales/Medieval Madness



Contributor

Posted 07 November 2013 - 11:30 PM

It's just a generic key assignment that can be called through the table script, you would have to script it to trip the tilt switch...

Sub table1_KeyDown(ByVal Keycode)
    If Keycode = MechanicalTilt Then vpmTimer.PulseSw swTilt
with swTilt being set to the correct switch number.

By the way, the MechTilt/Debug gamepad assignment issue is now fixed as of revision 714

#7 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 08 November 2013 - 08:15 AM

Thanks again. It looks like I have to learn to define switches and stuff. I've never edited a script before except to make the change to b2s. I'm quite surprised that the provision for a proper tilt mechanism isn't standard.



#8 koadic

koadic

    Pinball Fan

  • VIP
  • 1,363 posts
  • Location:Omaha, NE, USA

  • Flag: United States of America

  • Favorite Pinball: Addams Family/Fish Tales/Medieval Madness



Contributor

Posted 08 November 2013 - 08:52 AM

As you have found out, hitting the 'T' key for bang back trips the tilt switch because automatic handling is done through the scripts/software. Very few people have bothered to set up a tilt bob just to trip the tilt switch though... many people still use VP at a desktop computer with a keyboard.

Adding the provision per table isn't too difficult though, you just need to find the KeyDown section of the script and add a single line. With a small change to my above sample code, if the tilt switch is already defined for nudging through the table script, then this should work if added to the table without any other changes...
 
Sub table1_KeyDown(ByVal Keycode)
    If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch
(to note, the first line is just to show you where in the script to place the second line)

#9 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 08 November 2013 - 09:25 AM

That looks good, I noticed that vpmNudge.TiltSwitch already relates to switch 14 in the scripts I looked at. I'll try it tonight.

 

Analogue nudging works quite well but a real tilt bob adds realism and saves messing around with the tilt sensitivity level.


Edited by insx, 08 November 2013 - 09:27 AM.


#10 koadic

koadic

    Pinball Fan

  • VIP
  • 1,363 posts
  • Location:Omaha, NE, USA

  • Flag: United States of America

  • Favorite Pinball: Addams Family/Fish Tales/Medieval Madness



Contributor

Posted 08 November 2013 - 10:16 AM

If you are going to be using the tilt bob, make sure you change the tilt sensitivity to 0 (and check the box to override the default value) as it will disable the software handling any tilt events, so it will only be triggered by the tilt bob.

#11 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 08 November 2013 - 12:32 PM

I won't get to try all this tonight, I'll report back tomorrow evening. Thanks again!



#12 ArcadiusMaximus

ArcadiusMaximus

    Quit throwing trash into my dimension !

  • Members
  • PipPipPip
  • 310 posts
  • Location:PITZBORG, PA

  • Flag: United States of America

  • Favorite Pinball: Attack from Mars, Scared Stiff, White Water

Posted 08 November 2013 - 01:54 PM

Good to know saving for future use :).


~ Mr. John E. Smith III Esq.

#13 Carny_Priest

Carny_Priest

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,257 posts
  • Location:Austin, TX

  • Flag: United States of America

  • Favorite Pinball: EATPM

Posted 08 November 2013 - 04:07 PM

+1 I'm setting up my cab with a plumb bob and trough assembly to register tilt events (not nudging). This is a useful tip.

#14 insx

insx

    Enthusiast

  • Members
  • PipPipPip
  • 121 posts

  • Flag: United Kingdom

  • Favorite Pinball: Revenge From Mars

Posted 09 November 2013 - 06:52 PM

Working a treat now in MM, I just need to edit it into all my scripts.

 

Cheers!



#15 boiydiego

boiydiego

    Pinball Fan

  • Members
  • PipPipPipPip
  • 978 posts
  • Location:baal

  • Flag: Belgium

  • Favorite Pinball: flinstones,t2 chrome edition,wcs,afm,fish tales,medieval,rollercoaster tycoon,taxi

Posted 19 July 2014 - 08:17 PM

i want to use the sidewinder for nudge and tiltbob for tilt do i need the line then in the script and tilt to 0 in vp key setup ? when i nox nudge with sidewinder and i nudge real hard then tiltbob will only hit the tiltbob ring ones then vp registers more then one tiltwarnings think 4 or 5 times how can i correct this ?


Edited by boiydiego, 19 July 2014 - 08:32 PM.

boiydiego___gebruik-n2kbkyc.png


#16 boiydiego

boiydiego

    Pinball Fan

  • Members
  • PipPipPipPip
  • 978 posts
  • Location:baal

  • Flag: Belgium

  • Favorite Pinball: flinstones,t2 chrome edition,wcs,afm,fish tales,medieval,rollercoaster tycoon,taxi

Posted 20 July 2014 - 12:55 PM

what will this like do in the script If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch ,  every time now the boble will hit the ring of the tiltbob one time but results in 4a5 hits and direct tilt  how can i make it one touch one warning ?


boiydiego___gebruik-n2kbkyc.png


#17 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 17 June 2015 - 06:33 PM

Yeah..   I just got my nudge mechanism working, and I am really surprised that there is no button in VP that I can hook up directly to a real tilt bob, for proper warnings and tilt functionality.   Also, none of the EM's are coded to tilt with analog nudge, but it doesn't seem like anyone really cares :).   I can't get the tilt sensitivity to work in VP.. I have tried 900 up to 5000, and I can still shake the shit out of my machine before I get a warning.  If I even get one.

 

I was hoping to setup a real tilt bob, and add the coding, but from the post above.. it looks like the switch hits the Tilt switch without any warnings.   :(

 

Edit:  It looks like I can setup a real tilt bob and code it to keypress "T", then set that up in VP key options..  Cool ....  Although it looks like some rom controlled tables, also have thier own tilt scripting, and "t" has no effect.  This is kinda messy.


Edited by Rawd, 18 June 2015 - 12:01 AM.


 


#18 wrd1972

wrd1972

    Authoring Padawan

  • Platinum Supporter
  • 2,265 posts
  • Location:Central KY. USA

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 18 June 2015 - 02:56 PM

I am installing my mechanical tilt very soon.

So if I am understanding correctly, the "warnings" will not be functional...just tilt. Is that correct?


My VP Pincab /MAME Arcade  Specs: Dell T3400 workstation with Core2 Quad core 3.0GHZ (Q9650) CPU - 8GB of RAM - Nvidia  GTX 970

40" PF Sony gaming LED TV, Dual 21" Dell monitors in the backbox - Pinscape dual boards - Full DOF - Full MAME arcade support.


#19 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 19 June 2015 - 06:09 AM

I am installing my mechanical tilt very soon.

So if I am understanding correctly, the "warnings" will not be functional...just tilt. Is that correct?

 

It looks like if you setup your physical tilt bob to the 'mechanical tilt' button in VP, that it should work properly.   Warnings should be functional the same as a real machine I believe.   The only issue that I am having now, is that when you hit the mechanical tilt, you are also getting "bangback", which nudges the ball forward quite hard.   This is unrealistic ball movement if you side nudge hard, and then the ball pops forward when you tilt for a warning.   (It does the same thing with the emulated tilt bob, when you nudge past the sensitivity threshold)

 

Edit -  I am finding that some tables are behaving differently with the warning.   Open up tables and hit "T"..   Some will give proper warnings, and some will tilt automatically (2 warnings and tilt consecutively). Maybe this is a rom setting?

 

Edit2 - Yeah..  So.. Monster Bash was set for 3 warnings, and when I hit the mechanical tilt once, it would Warning, Double warning, tilt.   I went into the rom settings and changed the warnings to 6, and it seemed to work better (no longer tilting on 1, or 2 quick hits).   I guess you can always mess around in the rom to find a setting that works well per table.


Edited by Rawd, 19 June 2015 - 06:41 AM.


 


#20 Knorr

Knorr

    Enthusiast

  • Platinum Supporter
  • 221 posts
  • Location:Amstetten

  • Flag: Austria

  • Favorite Pinball: Dirty Harry

Posted 19 June 2015 - 06:39 AM

Do you use the second script of kodiac? I don´t have any bangback; and i have two warnings bevor tilt. Never had any issues with the tiltbob and it works flawless...