That table was kind of a experimental table with me learning new things, the code has completely changed. The ball doesn't sink any more, it was just on your 3 demo tables that it did. I have a Nvidea card, so maybe your latest update fixes it.

I'm having a hard time getting my head around this, so if you see something wrong could you let me know?

Another thing I have problems with, is changing the angle of the ball within the code. I just can't find a example at the moment, or figure it out at least. What I want to do is cradle the ball and then give a quick flick of the key, and have the ball go back up that lane as opposed to heading straight up and hitting the sling post. This is a very common shot with all Bally tables, and I want to use this to fix angles and do a more realistic flipper to flipper transfer as a example.

Basically like this:

Code:

Sub RightFlipper' If Ball is cradled and fully up then' Release key and start decreasing omega value of flipper' Add Timer delay between flipper pressed down and actual flipper movement to compensate for different keyboard hardware(maybe)' have the ball move more to the right than it normally would based on time, omega and contact point of flipper

So I want to move the ball roughly 45 degrees right from the right flipper, or 45 degrees left from the left flipper with a cradled ball and weaker flippers. Just havent been able to figure out the base code for that, so asking if you can just put in a example of how to do that here.

Another thing I have problems with, is changing the angle of the ball within the code. I just can't find a example at the moment, or figure it out at least. What I want to do is cradle the ball and then give a quick flick of the key, and have the ball go back up that lane as opposed to heading straight up and hitting the sling post. This is a very common shot with all Bally tables

This may seem like a cheap fix but I was experimenting with Dynamic coding of Bam magnets and you can definitely use a magnet pulse to pull ball up inlane based on flipper press and you can dynamically alter magnet strength relative to ball velocity, contact point and flipper omega. This has the dual role of changing ball angle and assisting ball up inlane...

I would use ball velocity(xBAM.ball.speed < 50),Contact point ( FlipperExt.contact.point < 0.2) and Ball vector (direction ball is currently rolling) as trigger to pulse magnet up inlane with flipper press...

I believe the cradling technique involves rocking the ball and timing the quick flick when the ball is oscillating or slowly rolling retrograde down flipper towards inlane...That is the Ball vector I am referring to

The video above is just for proof of concept...it isn't using the rest of prehit code for flipper dynamics.And I am using xbam.ball.speed < 100 and contact point < .7 ( I widened the parametersto get it to work). And I am not using Ball Vector. but I think this will be important flagso we can use our normal flipper dynamics at other times (ie when ball is not rolling slowly retrograde over the flipper...)

Nice going. I have some of those settings in my present version right now with modifications for the Bally style. The magnet idea is interesting, but I think it's just better to adjust the ball angle. Rav did mention that angle can be changed, in the dynamic flipper breakthrough thread, so maybe there's sample code for that somewhere. (Function Atn2(x, y)???)

So maybe this is a workaround? have to redownload the balltracking demo, give it a study and see.

The first video is very good.My problem isnt my keyboard (it's a steel series) just old age and slow fingers. I did have a flick pass, but it also caused the ball through my flippers thing, but havent given up that. What I think is to setup a delay timer that the user can adjust the time, and have a delay at certain circumstances from when the user presses the key/short delay/start the flipper/check if keypress is still in progress. So, I'm thinking in code have the ball at a certain slow speed after a cradled ball, when it hits a contact point >1.0, then the timer comes on, and have a slower omega. The flipper will 'flick" a bit easier for people who have normal (non-mech or membrane) keyboards but it will be a optional setting. Still, have to be able to pull off the shot.

Boy, my brain is hurting from all of this. I'm thinking going to take time off from FP for a bit, I have other unfinished projects I would like to finish so maybe taking a break and working in VP for a while. I'm starting to get a bit frustrated so do something else for a short while, clear my head a bit and hopefully find the time I need to get my head around all of this and get it working. You never know, a solution may just pop into my head.

EDIT: On the ball through the flipper thing, now that I have the time today to think about it (been one of those months) it occured to me the simplest solution to my problem, maybe I accidentally set bad code as the default. Yikes

.I did have a flick pass, but it also caused the ball through my flippers thing, but haven't given up that

Flick pass does happen accidentally in first video above at 54 seconds, due to flipper Omega of 14.

I am not sure how Rav's "acceleration charts" work and whether a simple flipper "burst" can be coded.

This may seem artificial, but the flipper sequence is actually what happens when you cradle the ball..

1. you catch it by holding flipper 2.then you release it 3.then you use flipper

Flipper dynamics can be coded according to Sequence of Flipper Press/ Release, as I did in the Inlane shot above...

1. When the Flipperkey is first pressed "Flippersequence goes from 0 to 1"2. When the Flipperkey is releassed "Flippersequence goes from 1 to 2" 3.then finally When the Flipperkey is pressed again the flipper dynamics are temporarily applied and "Flippersequence goes from 2 to 0"

' The Right Flipper Key has been released, Turn Off the Right Flipper(s) If (KeyCode = GetKeyCode(RightFlipperKey)) Then If RightFlipperSequence = 1 then RightFlipperSequence = 2 End if AddDebugText "RightFlipperSequence = " & RightFlipperSequence RightFlipper.SolenoidOff End If

Who is online

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum