Jump to content



Photo
* * * * * 6 votes

FastFlips script (bypassing pinmame flipper callback)


  • Please log in to reply
440 replies to this topic

#101 kiwi

kiwi

    Pinball Fan

  • VIP
  • 2,671 posts

  • Flag: Italy

  • Favorite Pinball: Star Trek 25th Anniversary



Posted 07 January 2018 - 10:23 AM

The VP9 version works for me

I just tried with dboy's Playboy 35th and the flippers did not move, I only changed UseSolenoids = 2 , since "vpmInit Me" is already in place.



#102 chokeee

chokeee

    Enthusiast

  • Members
  • PipPipPip
  • 333 posts

  • Flag: Poland

  • Favorite Pinball: High Speed

Posted 07 January 2018 - 11:00 AM

Could you try this table script in badcats (1.2)?

https://pastebin.com/yivSyJ1T

 

Let me know which specific line is causing the error

 

now i have this error (I notice that one and line 1 script error when I press start button)

 

line 2723:

 

"If aEnabled then execute SubL & " " & FlipState(0) : execute SubR & " " & FlipState(1) : execute subUL & " " & FlipState(2) : execute subUR & " " & FlipState(3)"



#103 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 07 January 2018 - 06:23 PM

Wild guess, could it be that 'False' isn't a safe value to use with vbscript's execute for some localization reason?

 

Could you try this Bad Cats script?

https://pastebin.com/dNM0MawJ



#104 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,984 posts

  • Flag: Norway

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

Posted 07 January 2018 - 08:56 PM

A bit surprised by this post - reposting in case it is of interest http://vpinball.com/...e/2/#post-73644

Edited by Thalamus, 07 January 2018 - 08:57 PM.

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


#105 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

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

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 January 2018 - 09:54 PM

A bit surprised by this post - reposting in case it is of interest http://vpinball.com/...e/2/#post-73644

 

I was hoping this would do it for Jaws because I do have my games in seperate folders. Always get the make sure a flipper is pressed but how to do that with the debuuger open.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#106 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 07 January 2018 - 10:09 PM

Bring the game back into focus, press left flipper button, then run the debug command again

 

Jaws is an original right? Yeah I have no idea if that's even possible. Is there a lot of flipper lag to begin with? Is this even necessary?



#107 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

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

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 January 2018 - 10:39 PM

Yes, it's the same thing, it's mimicking the VPMame controller.

 

This part I need to look at and maybe something can be adjusted here. The interesting line is , wpc95.

 

if self.game.machine_type == pinproc.MachineTypeWPC95:
vpcoils[i] = pycoils[i+31].curr_state

    def getCoilStates(self):
        """ Gets the current state of the coils. """
        if(self.GameIsDead):
            raise COMException(desc=self.ErrorMsg,scode=winerror.E_FAIL)

        pycoils = self.game.proc.drivers
        vpcoils = [False]*64
    
        if(self.Sys11 == True):
            ACState = pycoils[12+39].curr_state

        for i in range(0,len(vpcoils)):

            if i < 33:
                if(self.Sys11!=True):
                    if i<=28: vpcoils[i] = pycoils[i+39].curr_state
                    elif i<=32: vpcoils[i] = False # Unused?

                else: # do the relay lying here...
                    if i<=8: vpcoils[i] = pycoils[i+39].curr_state and (ACState == False)
                    elif i<=24: vpcoils[i] = pycoils[i+39].curr_state
                    elif i<=32: vpcoils[i] = pycoils[i+39].curr_state and (ACState == True)

            # Use the machine's Hold coils for the VP flippers
            # since they stay on until the button is released
            elif i == 34: vpcoils[i] = pycoils[pinproc.decode(self.game.machine_type, "FURH")].curr_state
            elif i == 36: vpcoils[i] = pycoils[pinproc.decode(self.game.machine_type, "FULH")].curr_state
            elif i<44:
                if self.game.machine_type == pinproc.MachineTypeWPC95:
                    vpcoils[i] = pycoils[i+31].curr_state
                else: vpcoils[i] = pycoils[i+107].curr_state
            elif i == 46: vpcoils[i] = pycoils[pinproc.decode(self.game.machine_type, "FLRH")].curr_state
            elif i == 48: vpcoils[i] = pycoils[pinproc.decode(self.game.machine_type, "FLLH")].curr_state
            else: vpcoils[i] = pycoils[i+108].curr_state

        return vpcoils    

Maybe I need enable this coil in game code.


Edited by chepas, 07 January 2018 - 10:41 PM.

Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#108 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

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

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 January 2018 - 10:57 PM

Got it, muhahaha


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#109 Rajo Joey

Rajo Joey

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,489 posts
  • Location:Niedersachsen

  • Flag: Germany

  • Favorite Pinball: Attack from Mars, Abra Ca Dabra and many old EM-Tables

Posted 08 January 2018 - 03:01 PM

As I wrote at vpinball, I have all tables in the table-folder and I have the same problem with "Star Wars - Empire strikes back".

With usesolenoids=19 flippers doesn't work. I have to change it to usesolenoids=1 and it's OK.

But I see no difference between fast flippers on or off. With F11 the display shows the same by pressing the button.


Rajo Joey - My front-end-files; Hundreds of Audio- and Videorecordings in high quality for Playfield (4k/60FPS) and Backglass (HD), Wheels & POV-Files: The Media-Post

https://www.facebook...02697096474910/

https://www.facebook...oups/VPAddicts/

https://www.facebook...oups/VPjunkies/


#110 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 08 January 2018 - 03:48 PM


I just tried this out with F11 to see if there was a difference.

There is a huge difference!!

Without the FastFlips or “UseSolenoids=1”

The speed of left flipper averages in teens. Lowest it got was 3.2 I think.

capture351_t.png

 

With the FastFlips or “UseSolenoid=19”

The speed of left flipper averages between 0.4 and 0.8, with 0.8 being the slowest!

capture2105_t.png

 

There is a huge boost of speed on the flippers!!

I don't know why it is not working for some who have downloaded this sound mod.


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

#111 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 08 January 2018 - 05:18 PM

As I wrote at vpinball, I have all tables in the table-folder and I have the same problem with "Star Wars - Empire strikes back".

With usesolenoids=19 flippers doesn't work. I have to change it to usesolenoids=1 and it's OK.

But I see no difference between fast flippers on or off. With F11 the display shows the same by pressing the button.

Your scripts may be outdated. It's built in such a way that tables will still continue to work without the new scripts.

 

This also happens if 'vpminit me' isn't called in the table script



#112 Rajo Joey

Rajo Joey

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,489 posts
  • Location:Niedersachsen

  • Flag: Germany

  • Favorite Pinball: Attack from Mars, Abra Ca Dabra and many old EM-Tables

Posted 08 January 2018 - 07:39 PM

 

As I wrote at vpinball, I have all tables in the table-folder and I have the same problem with "Star Wars - Empire strikes back".

With usesolenoids=19 flippers doesn't work. I have to change it to usesolenoids=1 and it's OK.

But I see no difference between fast flippers on or off. With F11 the display shows the same by pressing the button.

Your scripts may be outdated. It's built in such a way that tables will still continue to work without the new scripts.

 

This also happens if 'vpminit me' isn't called in the table script

 

:tapping: Just to be sure, I install the scripts from the 10.4 (24.12.2017) again. Nothing changed.

No flippers with usesolenoid=19; works with =1.

And here are the difference with or without vpminit me.

 


Edited by Joey2001, 08 January 2018 - 08:02 PM.

Rajo Joey - My front-end-files; Hundreds of Audio- and Videorecordings in high quality for Playfield (4k/60FPS) and Backglass (HD), Wheels & POV-Files: The Media-Post

https://www.facebook...02697096474910/

https://www.facebook...oups/VPAddicts/

https://www.facebook...oups/VPjunkies/


#113 nFozzy

nFozzy

    Pinball Fan

  • Members
  • PipPipPipPip
  • 553 posts

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

  • Favorite Pinball: Pinbot

Posted 08 January 2018 - 08:11 PM

Sorry, I misread what you posted. Yes dead flippers would mean that core.vbs is working, but possibly not hankin.vbs which handles flipper inputs in this case. Do any other tables work?

 

Do any other solenoids work, is the game playable with usesolenoids = 1?



#114 jesperpark

jesperpark

    Enthusiast

  • Silver Supporter
  • 271 posts
  • Location:Edmonton Alberta Canada

  • Flag: Canada

  • Favorite Pinball: Medieval Madness

Posted 09 January 2018 - 02:17 AM

Just for Information sake, I tried Empire Strikes Back sound mod, and I am seeing the same results as Xenoph.  I am in the 2-3 ms range where i was 19 or so beforehand, nice work Nfozzy!!



#115 Rajo Joey

Rajo Joey

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,489 posts
  • Location:Niedersachsen

  • Flag: Germany

  • Favorite Pinball: Attack from Mars, Abra Ca Dabra and many old EM-Tables

Posted 09 January 2018 - 03:53 PM

Sorry, I misread what you posted. Yes dead flippers would mean that core.vbs is working, but possibly not hankin.vbs which handles flipper inputs in this case. Do any other tables work?

 

Do any other solenoids work, is the game playable with usesolenoids = 1?

I tested it with 32assassin's Empire-table and FJ (Hankin 1978). Both with the same results.

usesolenoids=19 flippers not working; usesolenoids=1 both works.


Rajo Joey - My front-end-files; Hundreds of Audio- and Videorecordings in high quality for Playfield (4k/60FPS) and Backglass (HD), Wheels & POV-Files: The Media-Post

https://www.facebook...02697096474910/

https://www.facebook...oups/VPAddicts/

https://www.facebook...oups/VPjunkies/


#116 rothbauerw

rothbauerw

    Enthusiast

  • Members
  • PipPipPip
  • 345 posts
  • Location:Wisconsin - USA

  • Flag: United States of America

  • Favorite Pinball: Dr Who, Tee'd Off, Jive Time

Posted 09 January 2018 - 04:24 PM

@Joey2001,

 

Can you do a search of your hard drive for core.vbs and share the results?  You're not the only person with this not working and I think it's important for us to rule out possible causes.

 

Thanks!



#117 Rajo Joey

Rajo Joey

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,489 posts
  • Location:Niedersachsen

  • Flag: Germany

  • Favorite Pinball: Attack from Mars, Abra Ca Dabra and many old EM-Tables

Posted 09 January 2018 - 07:30 PM

@Joey2001,

 

Can you do a search of your hard drive for core.vbs and share the results?  You're not the only person with this not working and I think it's important for us to rule out possible causes.

 

Thanks!

No problem. I have only one core.vbs. It's the v3.55. See picture.

 

Attached File  core.vbs.png   3.93KB   9 downloads


Edited by Joey2001, 09 January 2018 - 07:31 PM.

Rajo Joey - My front-end-files; Hundreds of Audio- and Videorecordings in high quality for Playfield (4k/60FPS) and Backglass (HD), Wheels & POV-Files: The Media-Post

https://www.facebook...02697096474910/

https://www.facebook...oups/VPAddicts/

https://www.facebook...oups/VPjunkies/


#118 rothbauerw

rothbauerw

    Enthusiast

  • Members
  • PipPipPip
  • 345 posts
  • Location:Wisconsin - USA

  • Flag: United States of America

  • Favorite Pinball: Dr Who, Tee'd Off, Jive Time

Posted 09 January 2018 - 08:09 PM

Thank you.  Next, can you copy your scripts folder to your tables folder ... just as an experiment, and see if that makes a difference?



#119 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 10 January 2018 - 12:40 PM

I was having trouble adding fastflips to TAF last night.  Anyone have that table working?



#120 GInsonic

GInsonic

    Enthusiast

  • Platinum Supporter
  • 188 posts

  • Flag: Austria

  • Favorite Pinball: Addams Family

Posted 10 January 2018 - 02:19 PM

I tested it with 32assassin's Empire-table and FJ (Hankin 1978). Both with the same results.

 

 

usesolenoids=19 flippers not working; usesolenoids=1 both works.

 

 

Same here, all scripts from new brand new version 10.5 beta, and copying to the tables folder made no difference


Edited by GInsonic, 10 January 2018 - 02:20 PM.