Jump to content



Photo
- - - - -

Updating Fullscreen Tables to Use the Nanotech Plunger


  • Please log in to reply
67 replies to this topic

#1 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,190 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 12 April 2011 - 12:50 AM

Hey everyone,

I just spent the better part of nine hours modding 60+ Fullscreen tables to use the Nanotech plunger. Many of these tables are JP's, and he's given me permission to update his uploads with the new functionality. A few other authors' tables have also been modded.

So, I'd like to know who uses the Nanotech plunger who would like to test a few of these tables. Since JP uses three different methods, I'll send one of each for testing to ensure their optimal functionality before I edit the existing uploads.

Now, I can't spend hours sending the files, so I can only take a few volunteers. I don't want to just attach them here, in case they cause issues with others' setups. I don't like having content going out that isn't good.

So, that being said, who wants to try them out?

For those of you who are script-savvy, here's what I did ...

Wall Technique

1. Create collection called PlungerWalls (P1-P13)
CODE
    Dim xx,PlungerPos
    Sub Plunger_Timer()
        For Each xx in PlungerWalls
            xx.Isdropped = 1
        Next
        PlungerPos=INT(Plunger.position/2)
        Plungers(PlungerPos).IsDropped=0
    End Sub


3. Add :Plunger.TimerEnabled=0 to the end of the PlungerKey line in the KeyDown Sub
4. Add :Plunger.TimerEnabled=1 to the end of the PlungerKey line in the KeyUp Sub
5. Add Plunger object with a stroke length of 130 called Plunger, uncheck Visible, check Enable Mechanical Plunger, check Enable Timer, set Interval to 40. Be sure the plunger hits the ball!

-----------------------------------------------------------

Light Technique

1. Add the following in the appropriate section:

CODE
Sub Plunger_Timer()
    Select Case INT(Plunger.Position/2)
         Case 0,1:p1.state = 1
         Case 2,3:p1.state = 0:p2.state = 1
         Case 4,5:p3.state = 1:p2.state = 0
         Case 6,7:p4.state = 1:p3.state = 0
         Case 8,9:p5.state = 1:p4.state = 0
         Case 10,11:p6.state = 1:p5.state = 0
         Case 12:p6.state = 1:p6.state = 0
         End Select
End Sub


2. Add Plunger object with a stroke length of 130 called Plunger, uncheck Visible, check Enable Mechanical Plunger, check Enable Timer, set Interval to 5. Be sure the plunger hits the ball!

3. Add :Plunger.TimerEnabled=0 to the end of the PlungerKey line in the KeyDown Sub
4. Add :Plunger.TimerEnabled=1 to the end of the PlungerKey line in the KeyUp Sub

-----------------------------------------------------------

Kicker Technique

1. Add to the script the bolded parts in the following script excerpt.

Dim PTop, PBottom, PTopY, PBottomY,PlungerPos,oPlungerPos,PT,PB
Set PTop = P1.CreateBall:PTop.Image = "pw0a":PTopY = PTop.Y: PT=PTopY
Set PBottom = P2.CreateBall:PBottom.Image = "p0b":PBottomY = PBottom.Y: PB=PBottomY

2. Add the following Sub in the appropriate section:

CODE
Sub Plunger_Timer()
    PlungerPos=INT(Plunger.Position)
    If PlungerPos=oPlungerPos Then Exit Sub
        PTop.Y = PT+INT(PlungerPos)*3
        PBottom.Y = PB+INT(PlungerPos)*3
    oPlungerPos=PlungerPos
End Sub


3. Add Plunger object with a stroke length of 130 called Plunger, uncheck Visible, check Enable Mechanical Plunger, check Enable Timer, set Interval to 40. Be sure the plunger hits the ball!


Note: If there is a plunger present, simply MOD the existing plunger.

These instructions are pretty much from memory, but I believe they are accurate. They also don't remove the existing Impulse Plungers, which I'll do after the Expo when I have more time, before I upload the edited versions.

@ JP - The Lights Method doesn't work well with the Digital Plunger. If you'd be willing, perhaps you could MOD those tables to use the Kicker Method? That would be the best result for the least amount of effort. I can give you a list of games using the Light Method, if you don't recall.

Enjoy!

IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#2 bladexdsl

bladexdsl

    Joined the elite ranks

  • Banned
  • PipPipPipPip
  • 1,234 posts
  • Location:Queensland

  • Flag: Australia

  • Favorite Pinball: Scared stiff and Congo

Posted 12 April 2011 - 08:26 AM

so these have all been updated and reuploaded and are ready to go now?

#3 jpsalas

jpsalas

    Grand Schtroumpf

  • VIP
  • 6,427 posts
  • Location:I'm Spanish, but I live in Oslo (Norway)

  • Flag: Norway

  • Favorite Pinball: I like both new and old, but I guess I prefer modern tables with some rules and goals to achieve.



Posted 12 April 2011 - 11:15 AM

Well, the light method is the one I use in my latest tables since it is the one that works best. The plunger is angle independent and it looks better than the dropwall method, since dropwals tend to don't be displayed if you enlarge the table too much, whike the lights keep workin even if you enlarge too much the table. The kicker methos is not angle independent, so I don't use it anymore.

So the best is to remove everything and add a normal plunger. Anyway I guess the VP devs will come with a new plunger soon, so all those "hacks" won't be needed anymore smile.gif

JP

These are my tables, sorted by date, all them playable with VPX 7 or newer:

vp.jpg

After 18 years making tables, it is time to take a rest and let new authors do their thing.

I guess at last I'll play some more pinball :). But I'm sure I'll make some table updates from time to time :)


#4 StevOz

StevOz

    Pinball Fan

  • VIP
  • 1,718 posts
  • Location:Nirvana

  • Flag: Australia

  • Favorite Pinball: Scared Stiff



Posted 12 April 2011 - 11:25 AM

Well I like how you wrote "hacks", to me at least they are innovations.

Files I have uploaded here...

 

http://www.vpforums....ownloads&mid=34


logoshort.gif


#5 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 12 April 2011 - 11:50 AM

well ideal solution would be to have a setting in vp to choose one joystick or mouse axis and set sensitivity and dead zones, and then plunger works in all tables without any code change (well you should only remove old code like jpsalas said)

that would be real innovation and it is not so far away since rascal is working on enabling nanotech code in vp source to use any type of joystick/mouse input, for plunger and for nudging


#6 bladexdsl

bladexdsl

    Joined the elite ranks

  • Banned
  • PipPipPipPip
  • 1,234 posts
  • Location:Queensland

  • Flag: Australia

  • Favorite Pinball: Scared stiff and Congo

Posted 12 April 2011 - 01:10 PM

is it really worth using the plunger a lot of peeps at hyperpin say not to?

#7 gwjrabbit

gwjrabbit

    Enthusiast

  • Silver Supporter
  • 98 posts

  • Flag: ---------

  • Favorite Pinball: black knight

Posted 12 April 2011 - 01:13 PM

Thanks as always to all of you do who do all this work to make my life awesome. Can't wait till this big update rolls through!

#8 Noah Fentz

Noah Fentz

    'Rasslin' Fan

  • VPF Administrator
  • 12,190 posts
  • Location:South Lyon, MI

  • Flag: United States of America

  • Favorite Pinball: Whitewater

  • PS3 Gamer Tag: noahfentz


Contributor

Posted 12 April 2011 - 02:10 PM

QUOTE (bladexdsl @ Apr 12 2011, 04:26 AM) <{POST_SNAPBACK}>
so these have all been updated and reuploaded and are ready to go now?


As my post states, not yet. I'm looking for testers to ensure the performance is top notch on other system configurations. If you want to add the plunger functionality, the scripts are easy to implement.


QUOTE (jpsalas @ Apr 12 2011, 07:15 AM) <{POST_SNAPBACK}>
Well, the light method is the one I use in my latest tables since it is the one that works best. The plunger is angle independent and it looks better than the dropwall method, since dropwals tend to don't be displayed if you enlarge the table too much, whike the lights keep workin even if you enlarge too much the table. The kicker methos is not angle independent, so I don't use it anymore.

So the best is to remove everything and add a normal plunger. Anyway I guess the VP devs will come with a new plunger soon, so all those "hacks" won't be needed anymore smile.gif

JP


Okay. I was thinking it was an older method. The lights just don't seem to update fast enough for the plunger on release. Any suggestion would be welcome to improve that.

Yes, a new plunger would be the best solution, for sure. Not sure how far off that is, though.


QUOTE (blur @ Apr 12 2011, 07:50 AM) <{POST_SNAPBACK}>
well ideal solution would be to have a setting in vp to choose one joystick or mouse axis and set sensitivity and dead zones, and then plunger works in all tables without any code change (well you should only remove old code like jpsalas said)

that would be real innovation and it is not so far away since rascal is working on enabling nanotech code in vp source to use any type of joystick/mouse input, for plunger and for nudging


As long as the plunger or device uses the same code, without breaking the code for the Nanotech plunger, I'm all for it. If it uses the same code, then these updates would apply for all those devices.


QUOTE (bladexdsl @ Apr 12 2011, 09:10 AM) <{POST_SNAPBACK}>
is it really worth using the plunger a lot of peeps at hyperpin say not to?


Absolutely. I have gotten great results with them. I think the issue is the fact that tables aren't configured to use them.


IdleReel.gif RumbleDMD.jpg HS2-DMD.jpg SBM.jpg ww_logo.jpg EK.jpg

 
T2.jpg Sorcerer.jpg Breakshot.jpg Firepower.jpg GorGar.jpg StarTrek.jpg


My Photobucket Resources
Whether You Believe You Can, Or You Can't, You Are Right." - Henry Ford
The future of pinball lives, it just needs to be nurtured!
If you're here to stab me in the back, you're going to have to get in line.


#9 mandelbloom

mandelbloom

    Enthusiast

  • Members
  • PipPipPip
  • 101 posts

  • Flag: United States of America

  • Favorite Pinball: Fun House

Posted 13 April 2011 - 02:03 AM

If you need a tester I would love to do it, have the plunger smile.gif

#10 cupid

cupid

    Enthusiast

  • VP Dev Team
  • PipPipPip
  • 495 posts

  • Flag: Germany

  • Favorite Pinball: Dr Who

Posted 13 April 2011 - 03:37 PM

QUOTE (blur @ Apr 12 2011, 01:50 PM) <{POST_SNAPBACK}>
well ideal solution would be to have a setting in vp to choose one joystick or mouse axis and set sensitivity and dead zones, and then plunger works in all tables without any code change (well you should only remove old code like jpsalas said)

that would be real innovation and it is not so far away since rascal is working on enabling nanotech code in vp source to use any type of joystick/mouse input, for plunger and for nudging

I agree totally here...

That would really be an innovation, if we had some more I/O handling in VP.

I spend some thoughts about this and thought of something like this:

-----
Digital inputs from Keyboard, joystick (including nanotech things)
Analog Input from Joysticks or emulated with digital inputs.
--
Hardware Input to VP Mapping via standardized Input Layer.
--
VP itself handling stadardized inputs and output.
--
VP to Hardware Output Mapping via standardized Output layer.
--
Digital Output to various Output Devices
Digital to Analog timed Output with ADSR for special things like shakers, which need high outputs to start.
Analog Output to various Output devices
-----

But that were only some thoughts... No programming done yet.

Cupid
The world is devided into people who think they are right.

#11 icemochalatte

icemochalatte

    Hobbyist

  • Members
  • PipPip
  • 10 posts

  • Flag: ---------

  • Favorite Pinball: Black Knight

Posted 15 April 2011 - 09:33 PM

I have the plunger in my cab and would love to try them out. This would be a great addition to JP's awesome tables. I've also got access to a second cab (not mine) and could try them there.

#12 kruge99

kruge99

    Pinball Wizard

  • VPF Staff
  • 3,901 posts
  • Location:Markham, Ont.

  • Flag: Canada

  • Favorite Pinball: Black Knight, High Speed and Pin*Bot



Posted 20 April 2011 - 06:07 PM

I hope this thread isn't dead because I think that some other things that could be added to the table & script at the same time could be:

-ball collisions for multi-ball
-ball rolling sounds
-rubber hit sounds
-JP & Noah's nudge script
-VP91x layback view
-and an updated/animated plunger graphic if not already present


Best Regards,
Todd.

[proud owner of a Williams Solar Fire]

- It's called "The American Dream" because you have to be asleep to believe it.
George Carlin
- Truly great madness cannot be achieved without significant intelligence.
Henrik Tikkanen
- "Reality check, Michelle, Talk about composure, Total lack of. He's a man-- About-- 12 Feet Tall--"
Carrie Kelly
Posted Image

#13 kruge99

kruge99

    Pinball Wizard

  • VPF Staff
  • 3,901 posts
  • Location:Markham, Ont.

  • Flag: Canada

  • Favorite Pinball: Black Knight, High Speed and Pin*Bot



Posted 10 September 2011 - 10:30 PM

I was having a go at this tutorial today and I had to figure out the Emreel technique that was used in some of Unclewilly's tables, like Alien Poker, so I thought I would share it with everyone.

Emreel Technique

1. Add the following in the appropriate section:

CODE
Dim xx,PlungerPos
  Sub Plunger1_Timer()
        PlungerPos=INT(Plunger1.Position)
        If PlungerPos < 12 Then
            PlungerPos = PlungerPos + 1
            Plunger.Setvalue(PlungerPos - 1) ' Plunger.Setvalue needs to match the name of the EMReel on the backglass.
        End If
  
  End Sub


2. Add :Plunger1.TimerEnabled=0 to the end of the PlungerKey line in the KeyDown Sub
3. Add :Plunger1.TimerEnabled=1 to the end of the PlungerKey line in the KeyUp Sub
4. Add Plunger object with a stroke length of 130 called Plunger1, uncheck Visible, check Enable Mechanical Plunger, check Enable Timer, set Interval to 40. Be sure the plunger hits the ball!

Thank you very much Noah for putting this together!! dblthumb.gif


Best Regards,
Todd.

Reason for edit: corrected spelling

Edited by kruge99, 29 February 2012 - 12:47 AM.

[proud owner of a Williams Solar Fire]

- It's called "The American Dream" because you have to be asleep to believe it.
George Carlin
- Truly great madness cannot be achieved without significant intelligence.
Henrik Tikkanen
- "Reality check, Michelle, Talk about composure, Total lack of. He's a man-- About-- 12 Feet Tall--"
Carrie Kelly
Posted Image

#14 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,083 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 11 September 2011 - 11:47 AM

Jps alpha ramp animation works awesome.
Im using it in freddy . Only change i made was using 25 images rather than 12.
Should show all readable positions of the pinwizard

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#15 mikef

mikef

    Hobbyist

  • Platinum Supporter
  • 31 posts
  • Location:Australia

  • Flag: Australia

  • Favorite Pinball: Cirqus Voltaire

Posted 12 September 2011 - 12:00 PM

QUOTE (unclewilly @ Sep 11 2011, 09:47 PM) <{POST_SNAPBACK}>
Jps alpha ramp animation works awesome.
Im using it in freddy . Only change i made was using 25 images rather than 12.
Should show all readable positions of the pinwizard


HI UncleWilly,
Can you please share how you got the Alpharamp animation going? I've been trying to get it working with JPs TOTAN and I can't seem to get it working.
Thanks,
Mick

#16 kruge99

kruge99

    Pinball Wizard

  • VPF Staff
  • 3,901 posts
  • Location:Markham, Ont.

  • Flag: Canada

  • Favorite Pinball: Black Knight, High Speed and Pin*Bot



Posted 12 September 2011 - 12:20 PM

JPSalas sent me this fix the other day:

QUOTE
Line 315 is like this:

Plungers(AnPlOldPos).WidthBottom = 22:Plungers(AnPlOldPos).WidthTop = 22 'change to the width of the ramps

and it should be like this:

Plungers(AnPlNewPos).WidthBottom = 25:Plungers(AnPlNewPos).WidthTop = 25 'change to the width of the ramps


Notice that there are two changes to be made: AnPlNewPos, and the number 25...


Best Regards,
Todd.


QUOTE (mikef @ Sep 12 2011, 08:00 AM) <{POST_SNAPBACK}>
QUOTE (unclewilly @ Sep 11 2011, 09:47 PM) <{POST_SNAPBACK}>
Jps alpha ramp animation works awesome.
Im using it in freddy . Only change i made was using 25 images rather than 12.
Should show all readable positions of the pinwizard


HI UncleWilly,
Can you please share how you got the Alpharamp animation going? I've been trying to get it working with JPs TOTAN and I can't seem to get it working.
Thanks,
Mick


[proud owner of a Williams Solar Fire]

- It's called "The American Dream" because you have to be asleep to believe it.
George Carlin
- Truly great madness cannot be achieved without significant intelligence.
Henrik Tikkanen
- "Reality check, Michelle, Talk about composure, Total lack of. He's a man-- About-- 12 Feet Tall--"
Carrie Kelly
Posted Image

#17 mikef

mikef

    Hobbyist

  • Platinum Supporter
  • 31 posts
  • Location:Australia

  • Flag: Australia

  • Favorite Pinball: Cirqus Voltaire

Posted 12 September 2011 - 02:32 PM

QUOTE (kruge99 @ Sep 12 2011, 10:20 PM) <{POST_SNAPBACK}>
JPSalas sent me this fix the other day:

QUOTE
Line 315 is like this:

Plungers(AnPlOldPos).WidthBottom = 22:Plungers(AnPlOldPos).WidthTop = 22 'change to the width of the ramps

and it should be like this:

Plungers(AnPlNewPos).WidthBottom = 25:Plungers(AnPlNewPos).WidthTop = 25 'change to the width of the ramps


Notice that there are two changes to be made: AnPlNewPos, and the number 25...


Best Regards,
Todd.



Thanks Todd - that worked brilliantly.
Mick

#18 Wiggly

Wiggly

    Enthusiast

  • Platinum Supporter
  • 53 posts
  • Location:Easton, PA, USA

  • Flag: United States of America

  • Favorite Pinball: Centigrade 37, Kings & Queens

  • PS3 Gamer Tag: W166L4
  • 360 Gamer Tag: BionicWiggly

Posted 18 September 2011 - 08:55 PM

I'm going to try changing some scripts tonight after being directed to this thread from Scared Stiff.

Just wanted to throw in my two cents. From memory, three tables or versions from Uncle Willy have fantastic plunger control, Bad Cats, Xenon & Pinball Pool (also some of the most realistic ambient texture and lighting). If anyone blows off the plunger as a gimmick, they need to play any of these tables. I know there are more tables that are this precise but, I'd have to run through them.

Hope this can help in some way and I'll post anything I learn from making the changes above.

Thanks, Guys!

#19 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 19 September 2011 - 07:33 AM


dunno if i want spend any more time and money on this PC.
plays the new tables ok on 1 monitor.
will a low end 2.2 single core perform proper with a full setup?


#20 arngrim

arngrim

    DJ Force Feedback

  • VIP
  • 2,188 posts
  • Location:Charleroi, Belgium

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 19 September 2011 - 06:00 PM

Hi,

I'm adding the plunger functionality for all tables I have.

So far I have good results, but for the batman FS for example, I don't see which technique I have to use.

http://www.vpforums....i...4&hl=batman

Any idea?

Arngrim