Jump to content



Photo
* * * * * 6 votes

FastFlips script (bypassing pinmame flipper callback)


  • Please log in to reply
440 replies to this topic

#141 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 11 January 2018 - 10:58 PM

I guess I should have mentioned that I was talking about the VPX version of TAF.  I call mine 

Addams Family, The (Bally)(1992)(Sliderpoint)(1.4.1)  From one of the other sites.  I can't get that one to work, I can get some of my VP9 versions to work with UseSolenoids=2 but not the VPX version.

 

Are you sure it works in the VPX version STV?



#142 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 4,131 posts
  • Location:Castle Rock, WA.

  • Flag: United States of America

  • Favorite Pinball: TRON Classic-Congo-Xenon-PINBOT-BOP-LOTR-A Real American Hero OPERATION PINBALL-Millionaire-Whirlwind-Krull-NFL-BlackKnight-FishTales

Contributor

Posted 11 January 2018 - 11:17 PM

I can confirm that changing Line 38 in TAF and TAF GOLD VPX tables made by Sliderpoint to

 

Const UseSolenoids = 2

 

Activates the FastFlips and is working.

 

I think you need the new VPX10.5 Beta installed my friend.

 

Find here..

http://www.vpforums....428#entry397433

 

Hope this helps.

 

EDIT:

I just reinstalled 10.4 and it is working with that one also.

I also tried renaming table to exactly what you have it named, and it also works.

 

Perhaps can you tell us the exact path to your table?

It may be that this path is too long, as others have noticed FastFlips not working when table is in a subfolder, inside your tables folder.

I just tried to make the path as long as I could to table, but now I can't get VPX to start, it just gives error and never starts.

Perhaps I will try to make folder name bigger one letter at a time, instead of making it 3 times the name you named it. And perhaps I can find out exactly at what path length to table, does the FastFlips not work. I need to totally reinstall VPX as just copying and overwriting is giving me the error and never starting VPX. I will reinstall and find the exact path length that is acceptable for FastFlips to work.

Stay tuned.


Edited by xenonph, 11 January 2018 - 11:48 PM.

CHECK OUT THIS TUTORIAL http://www.vpforums....howtopic=32515
TO USE DB2S BACKGLASS PROGRAM WITH DESKTOP TABLES ON 1 MONITOR
 

#143 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 11 January 2018 - 11:47 PM

wow very strange.  I redownloaded the 1.4.1 table and changed just that 1 line and ball does not get kicked into the shooter lane and no flipper action at all.  I do have the 10.5 beta with scripts copied to  my scripts directory.  Not sure what it could be  (Im using DOF, don't know if that would change anything)

 

I just turned off force exclusive mode and I get an error message on screen saying Object not a collection and highlights line 1.  At least getting somewhere I guess.   Error goes away when I change back to UseSolenoids = 1


Edited by Slydog43, 11 January 2018 - 11:54 PM.


#144 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 4,131 posts
  • Location:Castle Rock, WA.

  • Flag: United States of America

  • Favorite Pinball: TRON Classic-Congo-Xenon-PINBOT-BOP-LOTR-A Real American Hero OPERATION PINBALL-Millionaire-Whirlwind-Krull-NFL-BlackKnight-FishTales

Contributor

Posted 12 January 2018 - 12:25 AM

I changed name of folder and kept adding a letter until the table would not load and error popped up. (Making me have to reinstall VPX.)

The fastflips worked all the way up. There was no path length cutoff that made the fastflips not work.

I thought it might be due to path length. But this test I just did I think rules that out. (Unless older computers only allow for certain path lengths?) I am using my Vista for this.


CHECK OUT THIS TUTORIAL http://www.vpforums....howtopic=32515
TO USE DB2S BACKGLASS PROGRAM WITH DESKTOP TABLES ON 1 MONITOR
 

#145 xenonph

xenonph

    I have Pinball Fever!

  • VIP
  • 4,131 posts
  • Location:Castle Rock, WA.

  • Flag: United States of America

  • Favorite Pinball: TRON Classic-Congo-Xenon-PINBOT-BOP-LOTR-A Real American Hero OPERATION PINBALL-Millionaire-Whirlwind-Krull-NFL-BlackKnight-FishTales

Contributor

Posted 12 January 2018 - 12:40 AM

I have no idea if DOF would have an effect either, as i am only a DT table user, and have no experience with these cabinet addons.

Does this menu in options allow to shutoff the DOF to Flippers? So to see if it is the DOF effecting the fastflips process?

capture354_t.png

 

 

Or perhaps try modifying script starting at Line 290, and take out the DOF and SoundFX so looks like this...

 

Sub SolRFlipper(Enabled)
    If Enabled Then
        RightFlipper.RotateToEnd
        PlaySound("fx_flipperup"), 0, .4, 0.05, 0.05
    Else
        RightFlipper.RotateToStart
        PlaySound("fx_flipperdown"), 0, .4, 0.05, 0.05
    End If
End Sub

Sub SolURFlipper(Enabled)
    If Enabled Then
        Flipper1.RotateToEnd
'        PlaySound("fx_flipperup"), 0, 1, 0.05, 0.05
    Else
        Flipper1.RotateToStart
'        PlaySound("fx_flipperdown"), 0, 1, 0.05, 0.05
    End If
End Sub

Sub SolLFlipper(Enabled)
    If Enabled Then    
        LeftFlipper.RotateToEnd
        PlaySound("fx_flipperup"), 0, .4, -0.05, 0.05
    Else
           LeftFlipper.RotateToStart
        PlaySound("fx_flipperdown"), 0, .4, -0.05, 0.05
    End If
End Sub


Sub SolULFlipper(Enabled)
    If Enabled Then
        Flipper2.RotateToEnd
        If     LeftFlipperButton = 0 Then PlaySound("fx_flipperup"), 0, .1, -0.05, 0.05
    Else
        PlaySound("fx_flipperdown"), 0, .1, -0.05, 0.05
        Flipper2.RotateToStart
    End if
End Sub

 

Will this stop the DOF calls? and allow to see if this is what is effecting Fastflips?

I am sure you have got this Fastflips to work with other tables that use DOF, so this really makes it hard to narrow down what the cause could be.


Edited by xenonph, 12 January 2018 - 01:19 AM.

CHECK OUT THIS TUTORIAL http://www.vpforums....howtopic=32515
TO USE DB2S BACKGLASS PROGRAM WITH DESKTOP TABLES ON 1 MONITOR
 

#146 GInsonic

GInsonic

    Enthusiast

  • Platinum Supporter
  • 188 posts

  • Flag: Austria

  • Favorite Pinball: Addams Family

Posted 12 January 2018 - 10:16 AM

Weird! I tested several tables and as soon as I set UseSolenoids to 19 (for Hankin) or 2 (the others e.g. Bad cats), the flippers stop moving.

I tried nearly everything (disable DOF, disable B2s, change path, change Vsync and visual improvements), but nothing changes. Is there any way, I can debug the program flow?



#147 tttttwii

tttttwii

    Enthusiast

  • Platinum Supporter
  • 300 posts

  • Flag: Germany

  • Favorite Pinball: Attack from Mars

Posted 12 January 2018 - 11:34 AM

Same with me! I have not a single table running with fast flips.



#148 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

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

  • Favorite Pinball: TAF

Posted 12 January 2018 - 05:44 PM

Junkyard doesnt appear to be working not sure if it is supposed to or not.



#149 osujd

osujd

    Enthusiast

  • Silver Supporter
  • 74 posts

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

  • Favorite Pinball: TAF

Posted 12 January 2018 - 08:50 PM

Also Tommy seems to not be affected by the script



#150 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 12 January 2018 - 11:30 PM

Also Tommy seems to not be affected by the script

This one's a little weird. It's working, but The upper left flipper uses a non-standard solenoid number and is still rom controlled

 

If you want to get it working 100% add this line below vpminit me


    vpminit me
    vpmFlips.CallBackUL = SolCallBack(47)
    SolCallback(47) = Empty

 

That should take care of the upper flipper



#151 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 13 January 2018 - 12:05 AM

I have an update I'd like to test out

 

Install it over the 10.5 scripts

https://www.dropbox....te Fix.zip?dl=0

The wpc.vbs is essentially the same but it's based on the one I posted earlier in the thread. Toxie's one was giving me strange error on load, can't figure out why.

 

Changelog:

Hopefully fixed script error when the flipper solenoid pops on. I can't reproduce this error, please tell me if this fixes it.
Indiana Jones should work 100% for real now
Added extra error checking with UseSolenoids = 2

 

The error will attempt to check for incompatible games. These games are not compatible:

Older games: Zaccaria, LTD

New stuff: Sega Whitestar, (Apollo 13 / Goldeneye onward) WPC95, (Congo/AFM onward) and Capcom, Modern Stern.

 

If the game is compatible and you get this error, your <system>.vbs file is outdated. Look for any loose scripts in your tables folder.



#152 Ben Logan

Ben Logan

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 2,275 posts
  • Location:California

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

  • Favorite Pinball: System 11

Posted 13 January 2018 - 12:49 AM

Hope I’m not complicating things too much here, nfozzy. Tell me if I am! But... I like fastflips so much that I’ve been putting fastflips on all sorts of tables that aren’t supposed to work by bypassing VPinmame with rotatetoend / rotatetostart code in the keydown / keyup section of the script to get the frozen flippers on incompatible tables going. Latency is drastically reduced just the same. Will this new script update make that impossible?

#153 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 13 January 2018 - 12:56 AM

I don't know. It sounds like you're just using the script to remove the existing flipper callbacks? The error will appear if usesolenoids = 2. You could set it to like 100 if there's no valid solenoid anyway.

 

If you don't mind always-on flippers you could add this line below vpminit me:

 

Vpmflips.DebugOn = True


Edited by nFozzy, 13 January 2018 - 12:59 AM.


#154 STV

STV

    Enthusiast

  • Members
  • PipPipPip
  • 436 posts

  • Flag: United States of America

  • Favorite Pinball: Varies. 140 in the list ATM.

Posted 13 January 2018 - 02:16 AM

I have an update I'd like to test out

 

Install it over the 10.5 scripts

https://www.dropbox....te Fix.zip?dl=0

The wpc.vbs is essentially the same but it's based on the one I posted earlier in the thread. Toxie's one was giving me strange error on load, can't figure out why.

 

 

 

Confirming with this update to the core.vbs and wpc.vbs in place.  still running the 10.4 final EXE.   IJ TPA  path to adventure now opens fine with constusesolenoids = 2

THANKS!


I guess I should have mentioned that I was talking about the VPX version of TAF.  I call mine 

Addams Family, The (Bally)(1992)(Sliderpoint)(1.4.1)  From one of the other sites.  I can't get that one to work, I can get some of my VP9 versions to work with UseSolenoids=2 but not the VPX version.

 

Are you sure it works in the VPX version STV?

 

Yup.  just walked over there to verify it.   Sliderpoint's 1.4.1 TAF.   Still running the 10.4 final EXE.    ConstUseSolenoids = 2   and the speed is .1  Works fine.   Didn't test exhaustively yet  but I played a couple games and didn't find any problems.   

 

NOTE!   I did insert nfozzy's scripts linked to above.  Maybe that's all your TAF needs is the two new scripts?   



#155 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 13 January 2018 - 07:55 AM

I have an update I'd like to test out

 

Install it over the 10.5 scripts

https://www.dropbox....te Fix.zip?dl=0

The wpc.vbs is essentially the same but it's based on the one I posted earlier in the thread. Toxie's one was giving me strange error on load, can't figure out why.

 

Changelog:

Hopefully fixed script error when the flipper solenoid pops on. I can't reproduce this error, please tell me if this fixes it.
Indiana Jones should work 100% for real now
Added extra error checking with UseSolenoids = 2

 

The error will attempt to check for incompatible games. These games are not compatible:

Older games: Zaccaria, LTD

New stuff: Sega Whitestar, (Apollo 13 / Goldeneye onward) WPC95, (Congo/AFM onward) and Capcom, Modern Stern.

 

If the game is compatible and you get this error, your <system>.vbs file is outdated. Look for any loose scripts in your tables folder.

 

I think there are still some issues in your WPC code. Did you look at my variant and how it differs?



#156 arngrim

arngrim

    DJ Force Feedback

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

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 13 January 2018 - 08:17 AM

I haven't looked at this functionality yet, either followed the whole thread, it seems exciting to use it for also all already tables, is the first post up to date along with the latest scripts? What is the up to date compatibility system list? If i can ask

Envoyé de mon SM-A320FL en utilisant Tapatalk

#157 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 13 January 2018 - 08:20 AM

Looking at it again I see some sloppiness, I'll clean up further. But it should work and they should both work the same.

 

The main problem with Indiana Jones was that the upper flipper solenoid (used for a diverter) was being stolen and the original solcallback erased. Now that that's fixed in core.vbs, the upper flipper should no-op, which is how the other system .vbs scripts work.



#158 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 13 January 2018 - 11:33 AM

Cool.. Will include your next version then to 10.5.. Still wonder why my version does not work for you though..



#159 LeChucksBeard

LeChucksBeard

    Enthusiast

  • Members
  • PipPipPip
  • 58 posts

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

  • Favorite Pinball: dontknow

Posted 13 January 2018 - 03:16 PM

nFozzy: your latest version seems to have cured the IJ problem for me. Left flipper now working/sounding fine, and played until I got a Path of Adventure mode to make sure. Strangely, I played 2 games and got the Well of Souls 6-ball mode almost right away on both. Could be just coincidence...

 

Thanks!



#160 STV

STV

    Enthusiast

  • Members
  • PipPipPip
  • 436 posts

  • Flag: United States of America

  • Favorite Pinball: Varies. 140 in the list ATM.

Posted 13 January 2018 - 05:23 PM

Any thoughts about a 10.4.1  release?  Or sneaking these vbs into the 10.4 final? 
 
Else we'll be saying all year to people "go get the 10.4 final all in one installer, but then you also need these updated vbs files..."