- View New Content
-
Getting Started
-
Tutorials
Tutorial Categories
Tutorials Main Page Installation and Setup Downloadable TutorialsROM Adjustments
Number of Balls Adjustments Volume Adjustments
-
Visual Pinball Tables
VP 8 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP 9 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP9 Cabinet Tables
All Full Screen Cabinet Full Screen B2S Cabinet Spanned Cabinet Tables Media Packs ROMsVPX Tables
All VPinMAME Recreations VPX- - /VPinMAME - MOD Tables VPX Recreations VPX Originals Media Packs ROMs VR
-
Frontend Media & Backglass
Media Packs
Complete Media Packs Wheel Logos VideosBackglasses
dB2S Animated Backglasses UVP Animated Backglasses Topper Images
- Future Pinball Tables
-
Design Resources
Main Resources
Table Templates Playfield Images Image Library Sound Library Key CodesVP Guides
VP8 Guide - English VP8 Guide - Deutsch VP9 Guide - English VP9.1.x Guide - English VP Object Guide VPM DocumentationFuture Pinball Resources
Playfield Images 3D Model LibraryFuture Pinball Guides
FP Script Guide Big Draco Script Guide FP Table Design Guide FP DMD Guide
- Other Features
- Bug Tracker
- Image Gallery
- Blogs
-
More
pinball plunger
Started By
Bloodyhellfire
, Nov 26 2010 12:00 AM
10 replies to this topic
#1
Posted 26 November 2010 - 12:00 AM
Hi dudes i'm frustrated by not being able to apply accurate power to the ball due to unmapped plunger release. Is it possble to have one key to increaese the power and maybe a second to decrease the power alongside the enter to engage the power to plunger. This would make it possible to make accurate ball launches and be esaily conveyed to a real plunger fitted to a pinball cab. Just an idea have worked out a plunger for my cab that would work with this key mapping mod. would this be an easy change to make to visual pinball ?. Don't know if this has been done or is being done through any channel at the mo but not bin able to find info along these lines........sorry if spelling is crap lol
#2
Posted 26 November 2010 - 01:44 AM
It's another good idea for an important element.
There has been tables that would let you it that way. cursor down and up then return to fire. I think it was Scapino that did it. It is nice, but awkward. Perhaps not if it was applied to the same device. Of course the VP Plunger object has nothing to do with this method. you would use a trigger and count up a number for a button and count down a number with another button. Then use activeball to make the ball go with another button. Or use a kicker, but it is ugly if the ball at the starting position is shown. I have used a trigger, even before the impulse plunger was put into the core. I think it would be easy enough to recode the impulse plunger in the core to do that, but as I said it is kind of awkard. I could make it an option though. I know it would not be popular though.
VP's plunger object is better that it use to be, as it can now have a set stroke length, so I would assume that would equate to higher resolution of the value, but it is still a joke to look at with it's dull grey shaft and tip that flares out, looking more like a valve out of a 68 Buick than a pinball plunger.
But, though there is not a so called fire event key, there is no reason why you have to put the fire command in the release key for the pull back key. So for all intents and purposes there is a mapped plunger release key, and that is what ever key you ask it to be. I believe there is also a plunger position command, but I don't know if it is still in VP9.
Anyway. the answer is that there are simple ways to do exactly what you were asking about.
This is another discussion that have been around a long time. My favorite idea id to use the mouse with the button held and fire would be when the button was released regardless of the position of the plunger ot the direction it is moving, if it is moving at all. For those that can afford a few hundred dollars there is better options, but for those that can't we should have some basic controller support.
There has been tables that would let you it that way. cursor down and up then return to fire. I think it was Scapino that did it. It is nice, but awkward. Perhaps not if it was applied to the same device. Of course the VP Plunger object has nothing to do with this method. you would use a trigger and count up a number for a button and count down a number with another button. Then use activeball to make the ball go with another button. Or use a kicker, but it is ugly if the ball at the starting position is shown. I have used a trigger, even before the impulse plunger was put into the core. I think it would be easy enough to recode the impulse plunger in the core to do that, but as I said it is kind of awkard. I could make it an option though. I know it would not be popular though.
VP's plunger object is better that it use to be, as it can now have a set stroke length, so I would assume that would equate to higher resolution of the value, but it is still a joke to look at with it's dull grey shaft and tip that flares out, looking more like a valve out of a 68 Buick than a pinball plunger.
But, though there is not a so called fire event key, there is no reason why you have to put the fire command in the release key for the pull back key. So for all intents and purposes there is a mapped plunger release key, and that is what ever key you ask it to be. I believe there is also a plunger position command, but I don't know if it is still in VP9.
Anyway. the answer is that there are simple ways to do exactly what you were asking about.
This is another discussion that have been around a long time. My favorite idea id to use the mouse with the button held and fire would be when the button was released regardless of the position of the plunger ot the direction it is moving, if it is moving at all. For those that can afford a few hundred dollars there is better options, but for those that can't we should have some basic controller support.
Edited by Shockman, 26 November 2010 - 01:45 AM.
#3
Posted 26 November 2010 - 06:14 AM
Here's the coding I use in most of my tables to adjust the plunger strength. I use the up and down arrow keys. Place this after your nudge coding.
if keycode = "208" and firespeed1>0 Then
FireSpeed1=FireSpeed1-3.5
TextBox8.text=FireSpeed1
End If
if keycode = "200" Then
FireSpeed1=FireSpeed1+3.5
TextBox8.text=FireSpeed1
End If
You'll need two text boxes to display this. Place this at top of script brfore Sub Routines Change TextBox # if needed
TextBox7.text="Up & Down Arrow Keys Modify Plunger Speed"
dim FireSpeed1
FireSpeed1=97.5 'This set the beginning plunger strenght at 97.5.
TextBox8.text=FireSpeed1
To launch the ball, place this just after Rules Coding.
If keycode = PlungerKey Then
Plunger.FireSpeed=FireSpeed1 'FireSpeed controls the adjusted plunger strenght.
Plunger.Fire
if Balls>0 then playsound "launch"
End If
You can DL Airways or most any of my tables to see exactly how it works.
if keycode = "208" and firespeed1>0 Then
FireSpeed1=FireSpeed1-3.5
TextBox8.text=FireSpeed1
End If
if keycode = "200" Then
FireSpeed1=FireSpeed1+3.5
TextBox8.text=FireSpeed1
End If
You'll need two text boxes to display this. Place this at top of script brfore Sub Routines Change TextBox # if needed
TextBox7.text="Up & Down Arrow Keys Modify Plunger Speed"
dim FireSpeed1
FireSpeed1=97.5 'This set the beginning plunger strenght at 97.5.
TextBox8.text=FireSpeed1
To launch the ball, place this just after Rules Coding.
If keycode = PlungerKey Then
Plunger.FireSpeed=FireSpeed1 'FireSpeed controls the adjusted plunger strenght.
Plunger.Fire
if Balls>0 then playsound "launch"
End If
You can DL Airways or most any of my tables to see exactly how it works.
Edited by tiltjlp, 26 November 2010 - 06:15 AM.
John
#4
Posted 26 November 2010 - 08:53 PM
this up/down plunger idea is great, but what about analog plunger support in vp that we could use for some very realistic real plunger installations in cabs?
and analog nudge support could be used for very realistic nudging.
All of this is already implemented in FP so you can try it for yourself.
I have just connected ps2 gamepad to my laptop, switched gamepad to analog mode and configured FP to use left joystick x/y axis for nudge x/y and right joystick up/down for plunger.
how it works?
great - when you push left joystick in any direction up/down/left/right and other combinations, ball is going in that direction just like in real pinball (we can discuss about this
), and when i pull right stick I control plunger, i can move it up-down and release it for a precise shot
how would i use this on cab?
take any analog joystick and turn it upside down and put some weight on it to be more responsive and any nudge of my cab would produce analog movement of joystick, some fine tuning in driver would also be necessery, just like fp has
for plunger, i would put analog joystick bellow the top of the plunger and connect top of joystick with top of plunger.
then plunger movement will be transferred directly to joystick movement
another option for plunger is to use some kind of spinner that is in contact with plunger so that plunger rotates spinner when it is moving up down - In fact you don't need spinner - just mouse sensor and some part that will rotate disk over that sensor while you move plunger
again FP has support for this and you can try it
spinner is the same as mouse, only with mouse your kick will be slow cause you can't move mouse so quick as plunger can go because plunger has strong springs, but when you pull mouse enough you can press mouse button and plunger will fire up strongly
zo wat da u think
?
and analog nudge support could be used for very realistic nudging.
All of this is already implemented in FP so you can try it for yourself.
I have just connected ps2 gamepad to my laptop, switched gamepad to analog mode and configured FP to use left joystick x/y axis for nudge x/y and right joystick up/down for plunger.
how it works?
great - when you push left joystick in any direction up/down/left/right and other combinations, ball is going in that direction just like in real pinball (we can discuss about this
how would i use this on cab?
take any analog joystick and turn it upside down and put some weight on it to be more responsive and any nudge of my cab would produce analog movement of joystick, some fine tuning in driver would also be necessery, just like fp has
for plunger, i would put analog joystick bellow the top of the plunger and connect top of joystick with top of plunger.
then plunger movement will be transferred directly to joystick movement
another option for plunger is to use some kind of spinner that is in contact with plunger so that plunger rotates spinner when it is moving up down - In fact you don't need spinner - just mouse sensor and some part that will rotate disk over that sensor while you move plunger
again FP has support for this and you can try it
spinner is the same as mouse, only with mouse your kick will be slow cause you can't move mouse so quick as plunger can go because plunger has strong springs, but when you pull mouse enough you can press mouse button and plunger will fire up strongly
zo wat da u think
Edited by blur, 26 November 2010 - 09:26 PM.
My paper cab
core.vbs with better nudge
FPLaunch with exit menu, instructions, flyer - local vpf copy
VP with support for analog nudge and plunger with any gamepad
#6
Posted 29 November 2010 - 04:49 PM
VP don't support dual analog controllers, neither the dual, or the analog. FP does, but for me it does not work nearly well enough to use for anything, least of all launching balls.
In a way, it's just as good how it is, if using a joystick. It will be in digital mode and if you put the fire event at the key up event you will launch the ball when you let go or push the stick up.
It would be nice to pull and push the stick to pull and push the plunger but that is not as easy as you might think. In digital mode, I can not think of a way to implement it at all. This kind of motion is probably what the Nanotech devices are doing, and it was obviously more of a rewrite to get it working than a new set of instructions. How would you launch if you were pushing and pulling on a joystick to push and pull the plunger? By letting go? By pulling you are letting go. By pushing you are letting go (of pulling). It would require another event, all I can think of is another keyDown event.
Beat the drum for gamepad support, but always mention analog when you do. Mouse support would be wonderful. I pestered Randy for mouse support years ago. The way mouses are used, not having support in VP is just like cutting off your right hand virtually speaking. I know I have asked this team for it as well. If I understand Windows C++ development, device support is not something you program, it is something you pick off a shelf (library) and use (include), for the most part.
I made spinners out of mouses in the eariler days of MAME that played games like Arkanoid and Pole Position as good as the spinners on the market. If we have the axis support we could build plungers in pretty much the same way. Plungers for $6 instead of $300. This is not Nanotech's VP any more.
I never wanted Nanotech's VP, as should be obvious. And this, the plunger mechanics of 30 years ago is the reason. Not that the standard VP was any better in this regard. VP now is at both ends of the extreme with realistic action and devices on one end, with nothing as far as devices that is any more advanced than 30 year old tech on the other.
The reason I bring this up is that all it would take is modern joystick SDK, already written and just needing to be included. Mouse is there, I think we should get to use that in the player as well.
For all I know this is all planned. A mission statement from the team would be most welcome.
In a way, it's just as good how it is, if using a joystick. It will be in digital mode and if you put the fire event at the key up event you will launch the ball when you let go or push the stick up.
It would be nice to pull and push the stick to pull and push the plunger but that is not as easy as you might think. In digital mode, I can not think of a way to implement it at all. This kind of motion is probably what the Nanotech devices are doing, and it was obviously more of a rewrite to get it working than a new set of instructions. How would you launch if you were pushing and pulling on a joystick to push and pull the plunger? By letting go? By pulling you are letting go. By pushing you are letting go (of pulling). It would require another event, all I can think of is another keyDown event.
Beat the drum for gamepad support, but always mention analog when you do. Mouse support would be wonderful. I pestered Randy for mouse support years ago. The way mouses are used, not having support in VP is just like cutting off your right hand virtually speaking. I know I have asked this team for it as well. If I understand Windows C++ development, device support is not something you program, it is something you pick off a shelf (library) and use (include), for the most part.
I made spinners out of mouses in the eariler days of MAME that played games like Arkanoid and Pole Position as good as the spinners on the market. If we have the axis support we could build plungers in pretty much the same way. Plungers for $6 instead of $300. This is not Nanotech's VP any more.
I never wanted Nanotech's VP, as should be obvious. And this, the plunger mechanics of 30 years ago is the reason. Not that the standard VP was any better in this regard. VP now is at both ends of the extreme with realistic action and devices on one end, with nothing as far as devices that is any more advanced than 30 year old tech on the other.
The reason I bring this up is that all it would take is modern joystick SDK, already written and just needing to be included. Mouse is there, I think we should get to use that in the player as well.
For all I know this is all planned. A mission statement from the team would be most welcome.
#7
Posted 29 November 2010 - 10:51 PM
QUOTE (Shockman @ Nov 29 2010, 04:49 PM) <{POST_SNAPBACK}>
For all I know this is all planned. A mission statement from the team would be most welcome.
ok - I could be speaking out of turn here, and anyone is welcome to put me straight on this if I'm wrong, but I feel the need to point out what "The dev team" is like.
First of all, I should point out that although I'm a "member" of the team I almost feel I shouldn't be - I volunteered because I thought I might be able to work some stuff out...turns out I can work out very little for myself & I'm of little or no use to the "team".
That aside there isn't a "team plan", or even the potential for a "mission statement".
There was a wish list thread: http://www.vpforums....?showtopic=7779
Basically, as far as I can tell, anyone that has the skills (& the time!!) is welcome to work on whatever they wish to. The "team" then verifies that any work doesn't introduce bugs into the code - if it works then it's accepted.
That's it. There is no direction other than individual coders own ideas on what they think they can (or want to) achieve - and the only functions of the "team" are to (try &) prevent bugs from being released, and to offer any help or advice that is requested.
Regards,
Dan.
[is that ok team? - I think I've put them off the scent...now as long as the minutes of the meetings in the secret volcano-island bunker don't end up on Wikileaks I think we'll be able to get away with it BWA-HA-HA-HA!!!]
A wizard only needs one ball...but can handle six.
#9
Posted 30 November 2010 - 04:58 AM
The reason I say that is because with the sub-forum dedicated to requests and suggestions, I got the impression that there may be a more structured approach to development going to happen.
If I had the package to compile it, I would work on it most of my waking hours, which happen to include most peoples sleeping hours. I'm not saying that anyone else should. I'm just saying that the programing part of much of this is the easy part, and I know how to do a lot of that. I just have not found a working solution for less than $200.
For example. I think that if I wanted to add startshake, I would go to vpinball/tags/vp9.07/basetable17 and add startshake to the top of the script, and save it. Then I would compile it. Total time = compile time + 45 seconds.
I have did much more to the default table than that, but if I ever do get a package that will compile it, my new table will be proportionally correct on my wide screen, have a shiny ball, a better layout, a longer plunger, a plunger cover, better nudging, a cabinet, an apron, visual nudging, and more. That's why I requested a number of templates besides Table1. I can't compile it but I can test it by running it.
I have been looking over a lot more of the code. And there are some things that would be easy to get a dramatic improvement from. There is a lot that I yet to understand too. But when you know the basics of C++ and want to do a certain thing, it is usually quick to learn it.
Is there such a thing as house licences with Visual C++? where anyone registered to the group can share it with others registered with the group, or would we literally have to be in the same house?
I really did not want to get involved in any official capacity, in development. All my contributions so far have either been claimed, or at least credited to others, misrepresented, ignored, or downright attacked, though all have been used. And I'm not sure that any development I do would be in any official way, even if that meant it would be obscure, or harder to find, or taboo, or even an official PN version or elsewhere. I just don't like the idea of submitting it to someone else for approval. I could work with a team, but not without respect, and I just don't have that and I don't think it is my fault. But having a person that is dedicated and learning and putting in the time and getting things done every day, would benefit everyone, as it should light a fire in your official versions development, and I certainly would only want to submit it to users for their approval. I don't have plans to rewrite VP or confidence that I can debug it, but I would like to give it a better face.
I am not saying that my efforts could not be to this official version, but i'm just not sure we could work together, because no matter how logical I think any single idea is, I am quick to hear otherwise. Startshake is just the latest example. Sure it can be turned on, but it can also be overlooked, unknown, or forgotten. It would be of course the first thing I did. There is either this repulsion because it is me, or we truly have differing opinions on what would make VP the best it can be. And perhaps the basic concept of pinball simulation.
If I had the package to compile it, I would work on it most of my waking hours, which happen to include most peoples sleeping hours. I'm not saying that anyone else should. I'm just saying that the programing part of much of this is the easy part, and I know how to do a lot of that. I just have not found a working solution for less than $200.
For example. I think that if I wanted to add startshake, I would go to vpinball/tags/vp9.07/basetable17 and add startshake to the top of the script, and save it. Then I would compile it. Total time = compile time + 45 seconds.
I have did much more to the default table than that, but if I ever do get a package that will compile it, my new table will be proportionally correct on my wide screen, have a shiny ball, a better layout, a longer plunger, a plunger cover, better nudging, a cabinet, an apron, visual nudging, and more. That's why I requested a number of templates besides Table1. I can't compile it but I can test it by running it.
I have been looking over a lot more of the code. And there are some things that would be easy to get a dramatic improvement from. There is a lot that I yet to understand too. But when you know the basics of C++ and want to do a certain thing, it is usually quick to learn it.
Is there such a thing as house licences with Visual C++? where anyone registered to the group can share it with others registered with the group, or would we literally have to be in the same house?
I really did not want to get involved in any official capacity, in development. All my contributions so far have either been claimed, or at least credited to others, misrepresented, ignored, or downright attacked, though all have been used. And I'm not sure that any development I do would be in any official way, even if that meant it would be obscure, or harder to find, or taboo, or even an official PN version or elsewhere. I just don't like the idea of submitting it to someone else for approval. I could work with a team, but not without respect, and I just don't have that and I don't think it is my fault. But having a person that is dedicated and learning and putting in the time and getting things done every day, would benefit everyone, as it should light a fire in your official versions development, and I certainly would only want to submit it to users for their approval. I don't have plans to rewrite VP or confidence that I can debug it, but I would like to give it a better face.
I am not saying that my efforts could not be to this official version, but i'm just not sure we could work together, because no matter how logical I think any single idea is, I am quick to hear otherwise. Startshake is just the latest example. Sure it can be turned on, but it can also be overlooked, unknown, or forgotten. It would be of course the first thing I did. There is either this repulsion because it is me, or we truly have differing opinions on what would make VP the best it can be. And perhaps the basic concept of pinball simulation.
Edited by Shockman, 30 November 2010 - 07:25 AM.
#10
Posted 11 December 2010 - 12:15 AM
Response has been great for this problem but not sure how plungers available work but the circuit my friend has built would feed to the plus power key when plunger pulled slowly back. Then send to minus power key when plunger pushed slowly forward and release would break slow movement and so send to fire the ball. May not work great if accidental sudden movement as this could trigger launch but worth a go. So thanks to tiltjlp for the how to on setting up the keys. i have so little time and limited attention span these days lol but hope to try it out soon. got two weeks off over crimbo so might get chance but busy finishing off my pinball cabinet which is coming on nicely. Hope you get to put yer skills to work Shockman sounds like you have a lot to offer.Also blur sounds cool about the joypad idea but need something to work in a cab. Thanks again you all.
#11
Posted 30 December 2010 - 11:54 AM
I see that there is a Plunger.Position function built into VP, but as far as I can tell it is read only through script. Also Plunger.MotionDevice is read only and it's function must be to show that there is a PWC attached is my guess. Would it be possible to make the Plunger.Position scriptable so that we can set a value?
I'm writing a mouse and joystick plugin for VP that can get data values from a scroll wheels and mouse optics (among other useful features). These would be great to use for an analog plunger. If there were a way to get a handle on the plunger position, it would be very simple to use the default plunger with say drag and release mouse function or rigging a scroll wheel or mouse optics to a physical plunger. I can create a custom plunger using the two and three ball system that I originally created, but that would entail modifying many many tables that use the default plunger.
There must be functions like this built into VP that are exclusive to the PWC. Can they be modified to be open and scriptable? Rather than adding more controllers to the source code to give them such functionality, I think if there were such handles available through script, authors and inventive people could figure out creative new ways to handle the plunger. Pullback and Fire just doesn't give us many options.
All I know, is I could really use this feature right now with my plugin. It would make fancy and cool plunger features quick and easy. I know it's after Christmas, but I wouldn't complain about a late present. New Years is almost here.... new release with plunger handles! YEAH!
I'm writing a mouse and joystick plugin for VP that can get data values from a scroll wheels and mouse optics (among other useful features). These would be great to use for an analog plunger. If there were a way to get a handle on the plunger position, it would be very simple to use the default plunger with say drag and release mouse function or rigging a scroll wheel or mouse optics to a physical plunger. I can create a custom plunger using the two and three ball system that I originally created, but that would entail modifying many many tables that use the default plunger.
There must be functions like this built into VP that are exclusive to the PWC. Can they be modified to be open and scriptable? Rather than adding more controllers to the source code to give them such functionality, I think if there were such handles available through script, authors and inventive people could figure out creative new ways to handle the plunger. Pullback and Fire just doesn't give us many options.
All I know, is I could really use this feature right now with my plugin. It would make fancy and cool plunger features quick and easy. I know it's after Christmas, but I wouldn't complain about a late present. New Years is almost here.... new release with plunger handles! YEAH!



Top














are all trademarks of VPFORUMS.