Jump to content



Photo
* * * * * 3 votes

New DIY plunger design


  • Please log in to reply
734 replies to this topic

#261 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 27 October 2014 - 07:10 AM

here is a screenshot of my settings...

 

post-73849-0-97629900-1414393691.png

 

 

Attached Files


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#262 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,323 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 27 October 2014 - 05:55 PM

maybe i'm missing something in the last few pages of the nudge and tilt issue in VP.... i'm guessing some how im getting lucky, but my nudge and tilt are working fine in "VP".... on the other hand only the nudge is working on FP tables.... I will take a video sometime later today....

 

See post #138 in this thread for my explanation of why accelerometer tilting sometimes works and sometimes doesn't.  I think it varies by table as well as by accelerometer settings and physical cabinet design.

 

Even when it works, it's not ideal for cabinets.  For one thing, you're relying on a pretty basic software simulation of a tilt bob in VP, which doesn't have any knowledge of the physical parameters of your cabinet.  It's one-size-fits-all; a physical tilt bob will obviously register the real motion of your actual cabinet.  For another, the way the tilt signal is handled inside VP creates extra artifacts.  When the simulated plumb bob registers a tilt, VP sends a "center nudge" command to the table (exactly like pressing the space bar on the keyboard), so you get an extra simulated nudge on top of the real accelerometer motion.  You might or might not notice the extra fake nudge - sometimes there's enough other motion going on that it gets buried in the noise, or just looks like a video glitch.  Other times it's more apparent.


 

I'm going to try to do some customization to VP at some point to come up with a better approach, but I haven't had a chance yet.  I think for cabinets we just need an option to turn off the simulated nudge for the "T" key and pass the tilt switch signal to the ROM.

 

 

Please give me a shout if you come up with something nice, so that i can include it into VP10 like your other changes..

 

Definitely will do!



#263 Knorr

Knorr

    Enthusiast

  • Platinum Supporter
  • 221 posts
  • Location:Amstetten

  • Flag: Austria

  • Favorite Pinball: Dirty Harry

Posted 27 October 2014 - 08:45 PM

i use a real tiltbob. you just need to ad some lines to val.keydown script to have no bangback in vp... It works perfect...
Sub table1_KeyDown(ByVal Keycode) If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch

#264 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,323 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 27 October 2014 - 09:48 PM

i use a real tiltbob. you just need to ad some lines to val.keydown script to have no bangback in vp... It works perfect...
Sub table1_KeyDown(ByVal Keycode) If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch

 

I think you've got the right idea.  Looks like all of the code that handles this is in scripting, not in VP itself.  Rather than modifying every table's keydown script individually, though, it looks like it might work to modify core.vbs to change cvpmNudge.DoNudge to read

 

    Public Sub DoNudge(ByVal aDir, ByVal aForce)
        if TiltSwitch <> 0 then vpmTimer.PulseSw TiltSwitch
    End Sub

 

That eliminates keyboard nudging centrally, so that you don't have to make any changes to individual table scripts, and instead simply pulses the ROM tilt bob switch on any software nudge event.  Presumably the only software nudge events in a cabinet would be from the physical tilt bob, in which case this will do exactly what you want by connecting the physical tilt bob directly to the ROM tilt bob switch.  If for some reason you still want to be able to do manual keyboard nudging, this approach won't work, but I don't see any reason to use keyboard nudging if you have an accelerometer and a tilt bob.



#265 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 28 October 2014 - 08:48 AM

hey is anyone having any issues with the plunger not working when using B2S backglasses? (I searched in the topic with no results)

 

I decided today to download some B2S BG's.... and was very happy how they looked and worked.... until I noticed the plunger didnt work with those tables, and ONLY those tables....

 

anyone have any ideas??.... any info would be awesome.... thanks


Edited by hauntfreaks, 28 October 2014 - 08:49 AM.

 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#266 vulbas

vulbas

    Enthusiast

  • Members
  • PipPipPip
  • 215 posts
  • Location:villebon sur yvette (essonne)

  • Flag: France

  • Favorite Pinball: medieval madness

Posted 28 October 2014 - 09:25 AM

Interestingly, 
where what we should put this line?
 
interessant,
ou est ce qu'on doit mettre cette ligne ? 
 

 

 

Public Sub DoNudge(ByVal aDir, ByVal aForce)
        if TiltSwitch <> 0 then vpmTimer.PulseSw TiltSwitch
    End Sub

 



#267 parabolic

parabolic

    Enthusiast

  • Silver Supporter
  • 225 posts
  • Location:Greenville, SC

  • Flag: United States of America

  • Favorite Pinball: revenge from mars

Posted 28 October 2014 - 10:55 AM

Haunt....ALL 50 of my tables run b2s backglass with no problems since day 1.

Parabolic Technologies - 3D printers and 3D design printing

"Transforming YOUR Ideas into a Reality!"

[email protected]

https://www.facebook...f_type=bookmark


#268 Knorr

Knorr

    Enthusiast

  • Platinum Supporter
  • 221 posts
  • Location:Amstetten

  • Flag: Austria

  • Favorite Pinball: Dirty Harry

Posted 28 October 2014 - 04:55 PM

i use a real tiltbob. you just need to ad some lines to val.keydown script to have no bangback in vp... It works perfect...
Sub table1_KeyDown(ByVal Keycode) If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch

 
I think you've got the right idea.  Looks like all of the code that handles this is in scripting, not in VP itself.  Rather than modifying every table's keydown script individually, though, it looks like it might work to modify core.vbs to change cvpmNudge.DoNudge to read
 
    Public Sub DoNudge(ByVal aDir, ByVal aForce)
        if TiltSwitch <> 0 then vpmTimer.PulseSw TiltSwitch
    End Sub
 
That eliminates keyboard nudging centrally, so that you don't have to make any changes to individual table scripts, and instead simply pulses the ROM tilt bob switch on any software nudge event.  Presumably the only software nudge events in a cabinet would be from the physical tilt bob, in which case this will do exactly what you want by connecting the physical tilt bob directly to the ROM tilt bob switch.  If for some reason you still want to be able to do manual keyboard nudging, this approach won't work, but I don't see any reason to use keyboard nudging if you have an accelerometer and a tilt bob.

As from a player perpective there is no need for a keypress. But for a table author for sure. The next issue is that not all tables have the correct switches in the script. And at least i hooked up my tiltbob to the arduino/keyboard hid to button "A" - absolut easy.
So for testing i don't open the cab every time or nudge it so hard to see if the tilt works - i just press A.

cheers

#269 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 28 October 2014 - 05:50 PM

Haunt....ALL 50 of my tables run b2s backglass with no problems since day 1.

 

anything special in the "keys" menu?.... or in the B2S menu itself??..... or did it work straight out of the box??

 

EDIT:  i guess i should have also said that the digital plunger (button) is working fine on all tables... its just the pinscape analog plunger not working with the B2S BG's


Edited by hauntfreaks, 28 October 2014 - 06:42 PM.

 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#270 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,323 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 28 October 2014 - 06:51 PM

As from a player perpective there is no need for a keypress. But for a table author for sure. The next issue is that not all tables have the correct switches in the script. And at least i hooked up my tiltbob to the arduino/keyboard hid to button "A" - absolut easy.

So for testing i don't open the cab every time or nudge it so hard to see if the tilt works - i just press A.

 

To clarify, is the "A" key something you mapped yourself?  That key does nothing in the default settings, as far as I can tell, so I'm unclear on what you're talking about.



#271 Knorr

Knorr

    Enthusiast

  • Platinum Supporter
  • 221 posts
  • Location:Amstetten

  • Flag: Austria

  • Favorite Pinball: Dirty Harry

Posted 28 October 2014 - 06:56 PM

yes, i mapped it myself

#272 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,323 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 28 October 2014 - 07:40 PM

yes, i mapped it myself

 

Okay, got it.  What did you map it to?

 

 

As from a player perpective there is no need for a keypress. But for a table author for sure. 

 

Could you clarify what you mean there?  Do you mean that the code change I proposed would create a problem for some tables, because the authors call vpmNudge.DoNudge from scripts, for some reason *other* than handling keyboard nudge commands?

 

 

The next issue is that not all tables have the correct switches in the script. 

 

That actually looks to be pretty well handled centrally in the standard .vbs scripts - all of the "system" scripts (e.g., wpc.vbs, Bally.vbs) appear to have definitions for swTilt that are common to all tables based on the respective systems.  I haven't tested that extensively yet, but it's wired correctly in all of the tables I've spot-checked so far.  Do you have any examples of tables where it's not defined correctly?


Edited by mjr, 28 October 2014 - 07:43 PM.


#273 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 29 October 2014 - 08:05 PM

Haunt....ALL 50 of my tables run b2s backglass with no problems since day 1.

 

parabolic I went thru the scripts of the tables the plunger didnt work on... and didnt find anything to turn on or make as true for the plunger... so i decided to open a script on a table that both the plunger and also the B2S BG worked on, "Cirqus Voltaire".... in that script I found a section that said this
 
 
'PinWizard Plunger script
'Turn on the Plunger timer if analog plunger is detected


Dim AnPlNewPos, AnPlOldPos
AnPlNewPos = 0:AnPlOldPos = 0


If Plunger.MotionDevice > 0 Then
    Plunger.TimerEnabled = 1
    Plunger.MechPlunger = 1
End If


Sub Plunger_Timer()
    If Plunger.MotionDevice > 0 Then
        
        AnPlNewPos = Plunger.Position \ 2
        AnPlOldPos = AnPlNewPos
    End if
End Sub
 
it had a few more lines that were throwing errors... so i deleted those lines... then the plunger started working.... so i've gone thru and added this so all the tables with B2S and now all the plungers work.... i believe this mythed was the down and dirty way... but it works...

Edited by hauntfreaks, 29 October 2014 - 08:06 PM.

 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#274 parabolic

parabolic

    Enthusiast

  • Silver Supporter
  • 225 posts
  • Location:Greenville, SC

  • Flag: United States of America

  • Favorite Pinball: revenge from mars

Posted 29 October 2014 - 11:21 PM

Ok - im confused - did you mean your BACKGLASS wasnt working or your PLUNGER wasnt working with those? 

You have to enable the mechanical plunger in the options. SOME tables will need you to install a new plunger element to make it work.....if thats your issue.


Parabolic Technologies - 3D printers and 3D design printing

"Transforming YOUR Ideas into a Reality!"

[email protected]

https://www.facebook...f_type=bookmark


#275 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 30 October 2014 - 01:45 AM

all my VP tables plungers worked, mechanical and digital...before i started adding B2S backglasses, once i did add them "most" of them didnt let me use the mechanical plunger....

 

SOME tables will need you to install a new plunger element to make it work. <----- I didnt know this.... i'm sure this is done in the editor... any links on how??


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#276 hauntfreaks

hauntfreaks

    Real 4K Tables Since 2013

  • VIP
  • 2,522 posts
  • Location:South Jersey

  • Flag: United States of America

  • Favorite Pinball: -<3<3<3 All Real Pins



Posted 30 October 2014 - 05:40 AM

ok... yeah, im a moron.... found the correct way to do it...  :facepalm:

 

post-73849-0-69154500-1414647577.png

 

 

Attached Files


 26794541816_30ca1cca80_o.gif 43109635392_fc11af1a57_o.gif


#277 17Al3x17

17Al3x17

    Hobbyist

  • Members
  • PipPip
  • 10 posts

  • Flag: France

  • Favorite Pinball: Star Wars Ep1 / Medieval Madness

Posted 18 November 2014 - 09:06 AM

Hi MJR, I just installed the card and the bar for the plunger and it's really great, it works great on VP. I wanted to know if you go to "edit" the firmware so that it works as Pinball FX2? it would be really cool it works above ( notably for skillshoot ^^ )



#278 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,323 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 18 November 2014 - 06:34 PM

I haven't tried Pinball FX2 myself - not sure if it will work there.  Has anyone tried it?  If it doesn't work, does anyone know how FX2 reads analog plunger input?



#279 frodus

frodus

    Hobbyist

  • Members
  • PipPip
  • 49 posts

  • Flag: United States of America

  • Favorite Pinball: Tron LE

Posted 18 November 2014 - 07:01 PM

I use the VP plunger kit V2,and you'll need x360ce, and set the right Thumb as the axis 3, and program your buttons and nudge. It works pretty well for me.

Check my cabinet build thread and it goes over setup of pinball fx2.

#280 gigalula

gigalula

    Hummmm not sure yet :)

  • Platinum Supporter
  • 651 posts

  • Flag: Canada

  • Favorite Pinball: All of them from 70' to now. Even more with VP and FP :)

Posted 19 November 2014 - 04:55 AM

Well I still need to figure out how to use it in FP and no luck so far.... :(