Jump to content



Photo
* * * * * 6 votes

FastFlips script (bypassing pinmame flipper callback)


  • Please log in to reply
440 replies to this topic

#421 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,976 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 27 March 2019 - 06:28 PM

Thank you Rob !


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#422 casimir8740

casimir8740

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: France

Posted 31 March 2019 - 08:42 PM

hi, i need help.

Sorry for my english i'm french so i use Google traduction

I'm finishing my 125 tables in fast flips: I hang on Charlie Angels: I have a pc or I test my tables, I put the version 1.0.0 with the corresponding vbs it works, I try also 1.0. 1 and 1.0.2 it works too (FF at 1.2ms)

I try on my pincab, it take me a VPM mistake .And if I remove the vbs, I go back to 24,2ms

On my 2 PCs I have the same version  sambuild (4709) and vpx 10.6 3660 beta.

Someone would have another idea?

 

Thanks



#423 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,976 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 31 March 2019 - 08:57 PM

I believe you have some old *.vbs script in the tables folder that is making troubles for you. Since you mention Charlies Angles it might be gts1.vbs

Also, If I remember correctly. JP updated this table - so, you probably don't need to use the script repo for this table anymore. If not JP forgot to add useSolenoids=2


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#424 casimir8740

casimir8740

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: France

Posted 01 April 2019 - 02:15 PM

Actually this file must be in the table folder.

I try when I come home.

If I delete the gts1.vbs from the tables folder, other tables do not run the risk of not working anymore?

 

Should I delete it or replace it with a newer one?

 

Thanks



#425 Brer Frog

Brer Frog

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,095 posts
  • Location:Illinois

  • Flag: United States of America

  • Favorite Pinball: Funhouse, Attack From Mars, Medieval Madness

Posted 01 April 2019 - 02:48 PM

My gts1.vbs file is in the Scripts folder & everything works fine.



#426 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,976 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 01 April 2019 - 02:53 PM

@casimir8740 : No, please - never have any *.vbs files in tables folder. (well, you can have table scripts - but, to make it easy, we say never ) I hope you have one in scripts folder already and that is the updated one. When you update. The scripts is an important part of the update. Pr. example when you update to 10.6, core.vbs is updated and it is expected that you have this version when running 10.6. If there is a *.vbs file in tables folder, it will be loaded instead of the one in scripts and you end up with weird things happening.


Edited by Thalamus, 01 April 2019 - 02:54 PM.

From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#427 casimir8740

casimir8740

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: France

Posted 01 April 2019 - 08:03 PM

@Thalamus Thank you so much for this help, it's exactly that: you have to delete the GTS1.vbs file which was not up to date.

I've been looking for a long time: thank you again



#428 blindpeser

blindpeser

    Enthusiast

  • Members
  • PipPipPip
  • 421 posts

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

  • Favorite Pinball: WCS94

Posted 27 June 2019 - 12:39 PM

Not sure if this was mentioned before. I just found some high latency on the new TAFs upper right flipper. Not sure about the lower flippers, but it is pretty obvious on the upper right flipper. The values look right, do I have to add any line in the script to get rid of the lag?

Maybe I should mention that Ibam playing in VR. All other tables tested seem to work flawless.

Edited by blindpeser, 27 June 2019 - 12:40 PM.


#429 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 05 November 2019 - 06:04 PM

Perhaps I missed it, but is there a way to have Fastflips working with Peyper tables like "Wolfman" and "Nemesis" ?


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#430 toxie

toxie

    VPF Veteran

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

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 05 November 2019 - 08:25 PM

peyper should work the same as the others from what i can see..



#431 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 06 November 2019 - 04:56 PM

Sorry, there's something I don't understand

 

Here is what I added to the script

 

'-----------------------------------
'------  Solenoid Assignment  ------
'-----------------------------------

'Sol1 LSling
SolCallback(2)="DropTargetBank.SolDropUp"
'Sol3 RSling
'Sol4 Bumper
'Sol5 Bumper
SolCallback(6)="DropTargetBank2.SolDropUp"
SolCallback(7)="vpmSolSound ""knocker"","
SolCallback(8)="bsTrough.SolOut"
'SolCallback(30)="SolGameOver"

'SolCallback(sLLFlipper)="vpmSolFlipper LeftFlipper,Nothing,"
'SolCallback(sLRFlipper)="vpmSolFlipper RightFlipper,Nothing,"

SolCallBack(31) = "FastFlips.TiltSol"

 

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

 

'--------------------------
'------  Table Init  ------
'--------------------------
Dim bsTrough,obj,DropTargetBank,DropTargetBank2,cLeftCaptive,cRightCaptive,Flipperactive
dim FastFlips

Sub Nemesis_Init
    vpminit me

 

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

 

    PinMAMETimer.Interval=PinMAMEInterval
    PinMAMETimer.Enabled = true

Set FastFlips = new cFastFlips
                with FastFlips
                    .CallBackL = "SolLflipper"    'Point these to flipper subs
                    .CallBackR = "SolRflipper"    '...
                '    .CallBackUL = "SolULflipper"'...(upper flippers, if needed)
                '    .CallBackUR = "SolURflipper"'...
                    .TiltObjects = True 'Calls vpmnudge.solgameon automatically
                '    .InitDelay "FastFlips", 100
                '    .DebugOn = False        'Call FastFlips.DebugOn True or False in debugger to enable/disable.
                end with

 

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

 

Sub Nemesis_KeyDown(ByVal keycode)
    if keycode = startgamekey then
        if FreePlay then
            vpmTimer.PulseSw -3
        end if
        Controller.Switch(-4) = 1
    end if

    If keycode = PlungerKey Then
        Plunger.PullBack
    End If

If KeyCode = LeftFlipperKey then FastFlips.FlipL True :  FastFlips.FlipUL True
If KeyCode = RightFlipperKey then FastFlips.FlipR True :  FastFlips.FlipUR True

 

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

 

Sub Nemesis_KeyUp(ByVal keycode)
    if keycode = startgamekey then
        Controller.Switch(-4) = 0
    end if

    If keycode = PlungerKey Then
        Plunger.Fire
    End If

If KeyCode = LeftFlipperKey then FastFlips.FlipL False :  FastFlips.FlipUL False
If KeyCode = RightFlipperKey then FastFlips.FlipR False :  FastFlips.FlipUR False

 

And I get the following message

 

line101.jpg

 

line101text.jpg


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#432 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 08 November 2019 - 12:25 PM

Very sorry to persist on my request, but I would be very happy if someone could explain me how to make Fastflips work on Peyper tables

 

Thanks so much in advance for your help


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#433 toxie

toxie

    VPF Veteran

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

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 08 November 2019 - 02:34 PM

Shouldn't it be as simple as mentioned in the first post?

 

1. Open table script

2. Search for 'UseSolenoids' and change it's value to 2

3. Add the line 'VpmInit me' to the table _init section if it's not there already (search for '_init', it's usually Table1_Init or Table_Init)



#434 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 08 November 2019 - 03:51 PM

Thanks for your reply

 

That's what I did first but when I press F11 here is what I can read

 

UseSolenoids=2

 

flipper20.jpg

 

UseSolenoids=1

 

flipper1.png

 

For me it's almost the same, except that (0 f) always remains at 0.0 ms when UseSolenoids=1

 

As it's a conversion from VP9 to VPX, perhaps do I have to change something to flippers settings in the script ?


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#435 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,976 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 08 November 2019 - 04:05 PM

@Batch : have you started the table at that point ? Rom is active and running ?


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#436 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 08 November 2019 - 04:20 PM

I open the table, insert a coin, press F11, and then operate the left flipper

 

flipper21.jpg


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#437 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,976 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 08 November 2019 - 05:19 PM

Pretty sure you need to start the game as well before the reading is going to be correct.


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#438 batch

batch

    VPFroggie

  • Members
  • PipPipPipPipPip
  • 2,152 posts
  • Location:Center of France

  • Flag: France

  • Favorite Pinball: Anyone if gaming and appearence are great

Posted 08 November 2019 - 05:36 PM

Can I send you the table, so you will see by yourself ?


signature_11042026.jpg          DIRECT LINK TO MY TABLES http://www.vpforums....loads&mid=30858    

                                               LINK TO MY 204 BACKDROPS : Design Resources/ Main Resources/Table Templates/Table Resources/Backdrops for VPX Tables (DT 16/9)  2.0 


#439 toxie

toxie

    VPF Veteran

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

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 08 November 2019 - 07:58 PM

sure, yes!



#440 toxie

toxie

    VPF Veteran

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

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 09 November 2019 - 09:13 PM

Okay, the explanation is pretty simple: Both the VP9 version and your VPX version both steer the flippers directly, without a round trip to PinMAME. So you already have 'fast flips enabled', just without using the core support.  :)