Jump to content



Photo
- - - - -

Mercury switch nudge success...almost..


  • Please log in to reply
8 replies to this topic

#1 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 12 April 2013 - 03:07 AM

Based on some feedback from some people who have had success with Mercury switches for digital nudge, I installed three mercury switches and they work ok...with one issue. A right or left nudge will sometimes trigger the other sides switch(right nudge triggers left switch also, for example).

Has anyone figured out how to prevent this without modifying code?

Btw, here is the code update I was referring to, but I wanted to see if there a mechanical options like placement and such.

Is this code now a part of the new vbs core?
http://www.hyperspin...30&postcount=25

If I understood the new architecture of vbs core and how you can add files that vbs core will 'read' in to enhance its functionality, I would try and override class cvpmNudge in vbs core to once again simulate Blurs code. That code wasn't retained in the current version of vbs core, no clue why. Can anyone explain the proper way to override class cvpmNudge without modifying the original code?

Edited by uberpinball, 12 April 2013 - 11:37 AM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#2 cmd

cmd

    Enthusiast

  • Members
  • PipPipPip
  • 107 posts

  • Flag: United States of America

  • Favorite Pinball: Jokerz!

Posted 12 April 2013 - 04:41 AM

Can you increase the upward angle of the left and right merc switches, or would that make it too hard to nudge?

 

cmd.



#3 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 12 April 2013 - 11:23 AM

Can you increase the upward angle of the left and right merc switches, or would that make it too hard to nudge?
 
cmd.

yea, you almost need to lift the cab

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#4 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 12 April 2013 - 02:23 PM

Latest core has this line:

 

If LoadScript("NudgePlugIn.vbs") Then Set vpmNudge = New cvpmNudge2 Else Set vpmNudge = New cvpmNudge
 
So if you have NudgePlugIn.vbs in your tables or scripts folder it will be loaded and cvpmNudge2 class will be used instead of standard cvpmNudge class
 
So you have to get that latest core and create NudgePlugIn.vbs and edit nudge class however you want and it will stay even after update of core fies.
 
One example (my + some tunes from rob + some more debuging) can be found here http://www.vpforums....=23576&p=218474
 
 


#5 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 12 April 2013 - 04:44 PM

Latest core has this line:

 

If LoadScript("NudgePlugIn.vbs") Then Set vpmNudge = New cvpmNudge2 Else Set vpmNudge = New cvpmNudge
 
So if you have NudgePlugIn.vbs in your tables or scripts folder it will be loaded and cvpmNudge2 class will be used instead of standard cvpmNudge class
 
So you have to get that latest core and create NudgePlugIn.vbs and edit nudge class however you want and it will stay even after update of core fies.
 
One example (my + some tunes from rob + some more debuging) can be found here http://www.vpforums....=23576&p=218474
 
 

 

Thanks Blur. I was specificlally interested in your rebound code where you put counters in to relax the time between nudges.

I see that is still has

 

TiempoFiltro = 200 ' nudge filtering time in ms

 

You had said for Tilt Bobs and thier tendacy to rebound, you change TiempoFiltro to around 2000. That's basically the number i'd play with for my mercury switches i beleive.

 

Also, if I do not add the nudge and tilt MP3s to my tables folder, the script won't find them so it won't play them. Cause this line says use the MP3s all the time...How would I default to the table(rom) sounds? Just add a space (NudgeSound = "  ") to the initialized vars?

 

  NudgeSound = "" ' sound has to be in table
TiltSound = "" ' sound has to be in table
 

If NudgeSound <> "" Then PlaySound NudgeSound Else PlayMusic NudgeMusic

 

Thanks again, let me know.


Edited by uberpinball, 12 April 2013 - 05:24 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#6 pinball buzz

pinball buzz

    Pinball Fan

  • VIP
  • 823 posts
  • Location:United Kingdom

  • Flag: United Kingdom

  • Favorite Pinball: TOM



Posted 12 April 2013 - 07:40 PM

Sticking with my nudge buttons on cab for now. Tried mercury switches, plumb bobs,motion ion board etc, all too much hard work.
Pinball Buzz - Builder of pinball cabs since May 2008.

See my cab pictures here

http://www.flickr.co...s/94649948@N00/
[/size][/size]

#7 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 12 April 2013 - 07:59 PM

Sticking with my nudge buttons on cab for now. Tried mercury switches, plumb bobs,motion ion board etc, all too much hard work.

 

Yea, turning my magna save buttons into nudge buttons made it way to easy to save drains, almost cheating.

 

With this code, i can tweak the rebound on the mecury switches. And literally it's 30 minutes of work to add three of them, and then you tweak by bending them till you get the right balance of nudge and no response.


Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#8 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 12 April 2013 - 09:13 PM

2000 is around two secs, you can filter for less if it works for you - depends how long mercury swings around

 

opossite nudge is quite possible with physical digital nudge devices like tilt bob

 

i tested this with ball on the table also - if you nudge kitchen table with the ball - ball goes toward your hand and then goes back

 

this swing back can be even bigger then first swing - so it can happen that tilt bob or mercury switch on right nudge is not enough to activate right nudge, but on swing back it acitvate left nudge - happens to me all the time with tilt bob

 

what can be done is nudge harder so that tilt bob hits right nudge contact first and then tiempo filtro will filter next nudge - actually tilt bob in this case is quite ok - only problem is it is more real - sou you have to nudge harder

 

bigger counter nudge then first nudge can be achieved with my core -. just put return percent 150 for example

 

 

about nudge sound and music - you can't have global wav sound - you have to put sound manually in every table, but you can have global music (mp3 sound) if you put it in music folder . i think it is described in my core with better nudge thread


Edited by blur, 12 April 2013 - 09:14 PM.


#9 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 12 April 2013 - 09:46 PM

2000 is around two secs, you can filter for less if it works for you - depends how long mercury swings around
 
opossite nudge is quite possible with physical digital nudge devices like tilt bob
 
i tested this with ball on the table also - if you nudge kitchen table with the ball - ball goes toward your hand and then goes back
 
this swing back can be even bigger then first swing - so it can happen that tilt bob or mercury switch on right nudge is not enough to activate right nudge, but on swing back it acitvate left nudge - happens to me all the time with tilt bob
 
what can be done is nudge harder so that tilt bob hits right nudge contact first and then tiempo filtro will filter next nudge - actually tilt bob in this case is quite ok - only problem is it is more real - sou you have to nudge harder
 
bigger counter nudge then first nudge can be achieved with my core -. just put return percent 150 for example
 
 
about nudge sound and music - you can't have global wav sound - you have to put sound manually in every table, but you can have global music (mp3 sound) if you put it in music folder . i think it is described in my core with better nudge thread
 
Thanks Blur, helpful. What you really see here with the rebound nudge and the adjustment you talk about is actually more realistic to a actual pin, depending on your jolt the real ball can react rather randomly at times.

I would say your script for digital nudge is 1000% better than the default and should be the standard in core. Expose some of the variables in the vp preferences ui, and users can tweak to however they want.
 
For sounds, I was just looking to use the sound that's there for nudge and tilt, like with default vbs core, i do nothing and i have the nudge and tilt sound that's there as part of the table. This still the case with your nudge core?
 

Edited by uberpinball, 12 April 2013 - 11:44 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>