This topic contains 37 replies, has 11 voices, and was last updated by  Imh0tep 7 months, 1 week ago.

Currently, there are 0 users and 1 guest visiting this topic.
Viewing 18 posts - 21 through 38 (of 38 total)
  • Author
    Posts
  • #123022
     DarthMarino 
    Participant

    Sweet that work thank you so much. However for the power button my up and down fires my left and right paddles, trying to figure out how I activate the power button when it’s lit

    Did you change the keys at all? It defaults as the up arrow on the keyboard. How do you shoot ammo?

    #123023
     topache 
    Participant

    No I haven’t changed any keys. My up and down both shoot ammo

    #123025
     DarthMarino 
    Participant

    We can probably make a quick change in your script. But first, try pressing F2 and see what it says under game specific keys.

    #123268
     Scottacus 
    Participant
    MembervipContributor

    Change log says that the .vbs file is included but there is none in the download which makes me wonder if the updated table is the current download?

    1 user thanked author for this post.
    #123278
     32assassin 
    Participant
    Member

    Is needed for directb2s Players: Set Controller=CreateObject(“B2S.Server”)

    Maybe also you can delete Line: SetDisplayToElement TextBox1

    and move TextBox1 out of PF …

    You Need the Granny.vbs File ? See below …

    I tried to get it working with the Controller.vbs, no success at the Moment :unsure:

    IMG_20190405_230623

     

    https://pastebin.com/uHFkxB5v

     

    you can also get rid of the custom granny.vbs and use the default Bally.vbs if you hardcode the 5 key for your credit key

    line 151

    If keycode= 6 then vpmTimer.pulseSW (swCoin3) ‘ Map the 5 key to add credit

     

    see a table you like help me find the resources so that I can finish it
    https://www.dropbox.com/sh/7qtake9whi5ium2/AAB4K4W78oMVlqSxTzKtGHTHa?dl=0

    1 user thanked author for this post.
    #123289
     DarthMarino 
    Participant

    Change log says that the .vbs file is included but there is none in the download which makes me wonder if the updated table is the current download?

    Wow. That’s a pretty important part of an update, huh?  Haha. The real 1.1 is up now. Sorry about that.

    #123299
     RYSr (Rich) 
    Participant
    Member

    Thanks for the cool table.

    If I want to play on my cab, can the left and right oar and the power and fire buttons be remapped to the flipper and magnasave buttons?

    Since the flippers are deactivated during the video mode, wouldn’t that be OK to do?

    I assume the Keyup andKeydown section would have to be adjusted.

    Could you give an example of what the code change would look like?

    #123307
     DarthMarino 
    Participant

    Thanks for the cool table.

    If I want to play on my cab, can the left and right oar and the power and fire buttons be remapped to the flipper and magnasave buttons?

    Since the flippers are deactivated during the video mode, wouldn’t that be OK to do?

    I assume the Keyup andKeydown section would have to be adjusted.

    Could you give an example of what the code change would look like?

     

    Sure. Replace lines 140-143 with this:

    If KeyCode=LeftFlipperKey Then Controller.Switch(-2)=1

    If KeyCode=RightFlipperKey Then Controller.Switch(-3)=1

    If KeyCode=RightMagnaSave Then Controller.Switch(41)=1

    If KeyCode=LeftMagnaSave Then Controller.Switch(-1)=1

    Replace lines 164-167 with this:

    If KeyCode=LeftFlipperKey Then Controller.Switch(-2)=0

    If KeyCode=RightFlipperKey Then Controller.Switch(-3)=0

    If KeyCode=RightMagnaSave Then Controller.Switch(41)=0

    If KeyCode=LeftMagnaSave Then Controller.Switch(-1)=0

     

    Make sure to take out any extra blank lines from what you pasted or the lines for the second part might be different.

    2 users thanked author for this post.
    #123310
     xenonph 
    Participant
    MemberContributor

    Or you could just add to the script that is already there…

    Left magnasave is power paddle and right magnasave is fire.

    Sub Table1_KeyDown(ByVal KeyCode)
    If KeyCode=StartGameKey Then Controller.Switch(-1)=1
    If KeyCode=KeyFront Then Controller.Switch(0)=1
    If KeyCode=KeyJoyLeft Or LeftFlipperKey Then Controller.Switch(-2)=1
    If KeyCode=KeyJoyRight Or RightFlipperKey Then Controller.Switch(-3)=1
    If KeyCode=KeyJoyUp or LeftMagnaSave Then Controller.Switch(41)=1
    If KeyCode=KeyJoyDown or RightMagnaSave Then Controller.Switch(-1)=1
    If KeyCode=LeftFlipperKey Then
    If FlipperOn=1 And LS=0 Then
    LeftFlipper.RotateToEnd
    PlaySound”FlipperUp”
    LS=1
    End If
    End If
    If KeyCode=RightFlipperKey Then
    If FlipperOn=1 And RS=0 Then
    RightFlipper.RotateToEnd
    PlaySound”FlipperUp”
    RS=1
    End If
    End If
    If vpmKeyDown(KeyCode) Then Exit Sub
    End Sub

    Sub Table1_KeyUp(ByVal KeyCode)
    If KeyCode=StartGameKey Then Controller.Switch(-1)=0
    If KeyCode=KeyFront Then Controller.Switch(0)=0
    If KeyCode=KeyJoyLeft Or LeftFlipperKey Then Controller.Switch(-2)=0
    If KeyCode=KeyJoyRight Or RightFlipperKey Then Controller.Switch(-3)=0
    If KeyCode=KeyJoyUp or LeftMagnaSave Then Controller.Switch(41)=0
    If KeyCode=KeyJoyDown or RightMagnaSave Then Controller.Switch(-1)=0
    If KeyCode=LeftFlipperKey And LS=1 Then
    LeftFlipper.RotateToStart
    PlaySound”FlipperDown”
    LS=0
    End If
    If KeyCode=RightFlipperKey And RS=1 Then
    RightFlipper.RotateToStart
    PlaySound”FlipperDown”
    RS=0
    End If
    If vpmKeyUp(KeyCode) Then Exit Sub
    End Sub

    EDIT:

    I tried to highlight in red the added script, but it showed a bunch of gibberish, but its on the same lines as DarthMarino described above if that helps.

    1 user thanked author for this post.
    #123312
     DarthMarino 
    Participant

    Here is the full script.  Just replace it with this.

     

     

    Attachments:
    2 users thanked author for this post.
    #123316
     Scottacus 
    Participant
    MembervipContributor

    Is there a way to get the VPinMAME screen to show over the B2s?  If I open task manager and then bring VPinMAME to the foreground then it shows over the B2S otherwise it starts up hidden under the B2S.

    I guess I can put it on my DMD screen in the meantime.

    #123319
     RYSr (Rich) 
    Participant
    Member

    Thanks Darth, I already plugged the lines in and it worked, I did change the fire to the rightmagnasave since i’m right handed, seemed more natural..

    Now, I have to go back to Caveman and see if I can substitute the leftflipperkey for keyjoyleft and so forth. So I can enjoy it on my cab as well.

    #123322
     DarthMarino 
    Participant

    Is there a way to get the VPinMAME screen to show over the B2s? If I open task manager and then bring VPinMAME to the foreground then it shows over the B2S otherwise it starts up hidden under the B2S.

    Thanks Darth, I already plugged the lines in and it worked, I did change the fire to the rightmagnasave since i’m right handed, seemed more natural..

    No I have to go back to Caveman and see if I can substitute the leftflipperkey for keyjoyleft and so forth. So I can enjoy it on my cab as well.

    Yeah, the text document I attached has the shoot button as Right MS.  I realized that it would be better that way when I tested it out.  It should work with Caveman but I imagine the directions will be confusing.

    #123323
     RYSr (Rich) 
    Participant
    Member

    @xenonph

    I got Darth’s code cut and pasted and it worked.

    Then I tried your code and the left and right flipper both move only the right oar, and the left and right magnasave both activate the fire buttton

    I tried substituting all the code first, Then only the 4 lines for the up code and the 4lines for the down code, had the same result with both. Would be good to have your code so one version would work on desktop as well as on a cab.

    By the way I agree the rightmagnasave is better for the fire button..

     

    Or you could just add to the script that is already there…

    Left magnasave is power paddle and right magnasave is fire.

    Sub Table1_KeyDown(ByVal KeyCode)

    If KeyCode=StartGameKey Then Controller.Switch(-1)=1

    If KeyCode=KeyFront Then Controller.Switch(0)=1

    If KeyCode=KeyJoyLeft Or LeftFlipperKey Then Controller.Switch(-2)=1

    If KeyCode=KeyJoyRight Or RightFlipperKey Then Controller.Switch(-3)=1

    If KeyCode=KeyJoyUp or LeftMagnaSave Then Controller.Switch(41)=1

    If KeyCode=KeyJoyDown or RightMagnaSave Then Controller.Switch(-1)=1

    If KeyCode=LeftFlipperKey Then

    If FlipperOn=1 And LS=0 Then

    LeftFlipper.RotateToEnd

    PlaySound”FlipperUp”

    LS=1

    End If

    End If

    If KeyCode=RightFlipperKey Then

    If FlipperOn=1 And RS=0 Then

    RightFlipper.RotateToEnd

    PlaySound”FlipperUp”

    RS=1

    End If

    End If

    If vpmKeyDown(KeyCode) Then Exit Sub

    End Sub

    Sub Table1_KeyUp(ByVal KeyCode)

    If KeyCode=StartGameKey Then Controller.Switch(-1)=0

    If KeyCode=KeyFront Then Controller.Switch(0)=0

    If KeyCode=KeyJoyLeft Or LeftFlipperKey Then Controller.Switch(-2)=0

    If KeyCode=KeyJoyRight Or RightFlipperKey Then Controller.Switch(-3)=0

    If KeyCode=KeyJoyUp or LeftMagnaSave Then Controller.Switch(41)=0

    If KeyCode=KeyJoyDown or RightMagnaSave Then Controller.Switch(-1)=0

    If KeyCode=LeftFlipperKey And LS=1 Then

    LeftFlipper.RotateToStart

    PlaySound”FlipperDown”

    LS=0

    End If

    If KeyCode=RightFlipperKey And RS=1 Then

    RightFlipper.RotateToStart

    PlaySound”FlipperDown”

    RS=0

    End If

    If vpmKeyUp(KeyCode) Then Exit Sub

    End Sub

    EDIT:

    I tried to highlight in red the added script, but it showed a bunch of gibberish, but its on the same lines as DarthMarino described above if that helps.

     

    1 user thanked author for this post.
    #123360
     Queniart 
    Participant
    Member

    Hello it code I can enter for right joy button 2 left button 6 down button 9 up button 4

     

    #123373
     Imh0tep 
    Participant

    Is there a way to adjust the volume? I can only hear the flipper sounds but no ingame music or ingame sound effects.

    Thanks :wacko:

    #123400
     Queniart 
    Participant
    Member

    À tu essayer la touche +

    #123480
     Imh0tep 
    Participant

    Thanks, I found it now :yes:

Viewing 18 posts - 21 through 38 (of 38 total)

You must be logged in to reply to this topic.

©2019 VPinBall.com

Log in with your credentials

or    

Forgot your details?

Create Account