jukecade
Inserted Coin
- Joined
- Mar 13, 2011
- Messages
- 9
- Reaction score
- 9
- Points
- 9
- Favorite Pinball Machine
- Red Dwarf
Hi All
If you are one of those excellent clever people who designs pinball tables for visual pinball/pinmame then I appeal to you to add joypad functionality to your scripts. Its very easy to do and only adds a little bit of coding to your script. I can obviosuly edit unprotected tables and update them myself but there are a few excelent tables out there which are locked so its impossible to edit (Diner_cyBORG_v0.83L, S.T.A.L.K.E.R. 1_1, RockyHorror, Serenity, etc). So guys please either leave your tables unlocked or please add joypad functionality. Before you all shout I know that there are programs such as joytokey and xpadder but these programs interfer with my games menu so I cant use them....
Thanks
--- Option 1 -------------------------------------------------------------------------------
add these lines after the Opion Explicit line at the top of the script
dim joyleftflip
dim joyrightflip
dim joystart
dim joycoin
dim joyplunger
dim joyaddball
dim joytilt
joyleftflip = 16777268
joyrightflip = 16777269
joycoin = 16777272
joystart = 16777273
joyplunger = 16777264
joytilt = 16777267
joyaddball = 16777266
--- Option 2 -------------------------------------------------------------------------------
or add this lines after the Opion Explicit line at the top of the script
ExecuteGlobal GetTextFile("VPMKeys.vbs")
Ensure the vmpkeys.vbs is in your scripts or tables folder (See link for download - Credit to the original author)
--- Then ---------------------------------------------------------------------------------------------------------
then make sure anything that has a keycode function also checks the joyxxx function: for example in the Sub Table1_KeyDown(ByVal keycode)
& Sub Table1_KeyUp(ByVal keycode) add this code to the functions:
If keycode = PlungerKey or keycode = joyplunger Then
if keycode=6 or keycode=joycoin then
if keycode=31 or keycode=joystart then
if keycode =30 or keycode=joyaddball then
If keycode = LeftFlipperKey or keycode=joyleftflip Then
If keycode = RightFlipperKey or keycode=joyrightflip Then
If keycode = CenterTiltKey or keycode=joytilt Then
--- Remember ---------------------------------------------------------------------------
** Remember also advoid message boxes where the user needs to click with their mouse **
I have included a pDF guide I created to help out..
--- Also -------------------------------------------------------------------------------
* Not related to this joypad plea but it would be so useful if you added any roms required by your table with your table.vpt as part of your download zip. Some roms aren't available for download or some use roms from other tables. For example I did not know what roms the Miss-World table required until I read somewhere it was a KISS hack and it used the KISS roms.
* Some tables (Elvis_JP_v1.1 and Hotwheels, etc) also have a message when run to say "Please be aware that this games sound emulation is not working 100% Properly" and I cant see from the script how to turn it off. Even using the full screen arcade version of the table has these messages. Maybe its some function in pinmame i can turn off. Can anyone help?
Thank you so much
Peace
If you are one of those excellent clever people who designs pinball tables for visual pinball/pinmame then I appeal to you to add joypad functionality to your scripts. Its very easy to do and only adds a little bit of coding to your script. I can obviosuly edit unprotected tables and update them myself but there are a few excelent tables out there which are locked so its impossible to edit (Diner_cyBORG_v0.83L, S.T.A.L.K.E.R. 1_1, RockyHorror, Serenity, etc). So guys please either leave your tables unlocked or please add joypad functionality. Before you all shout I know that there are programs such as joytokey and xpadder but these programs interfer with my games menu so I cant use them....
Thanks
--- Option 1 -------------------------------------------------------------------------------
add these lines after the Opion Explicit line at the top of the script
dim joyleftflip
dim joyrightflip
dim joystart
dim joycoin
dim joyplunger
dim joyaddball
dim joytilt
joyleftflip = 16777268
joyrightflip = 16777269
joycoin = 16777272
joystart = 16777273
joyplunger = 16777264
joytilt = 16777267
joyaddball = 16777266
--- Option 2 -------------------------------------------------------------------------------
or add this lines after the Opion Explicit line at the top of the script
ExecuteGlobal GetTextFile("VPMKeys.vbs")
Ensure the vmpkeys.vbs is in your scripts or tables folder (See link for download - Credit to the original author)
--- Then ---------------------------------------------------------------------------------------------------------
then make sure anything that has a keycode function also checks the joyxxx function: for example in the Sub Table1_KeyDown(ByVal keycode)
& Sub Table1_KeyUp(ByVal keycode) add this code to the functions:
If keycode = PlungerKey or keycode = joyplunger Then
if keycode=6 or keycode=joycoin then
if keycode=31 or keycode=joystart then
if keycode =30 or keycode=joyaddball then
If keycode = LeftFlipperKey or keycode=joyleftflip Then
If keycode = RightFlipperKey or keycode=joyrightflip Then
If keycode = CenterTiltKey or keycode=joytilt Then
--- Remember ---------------------------------------------------------------------------
** Remember also advoid message boxes where the user needs to click with their mouse **
I have included a pDF guide I created to help out..
--- Also -------------------------------------------------------------------------------
* Not related to this joypad plea but it would be so useful if you added any roms required by your table with your table.vpt as part of your download zip. Some roms aren't available for download or some use roms from other tables. For example I did not know what roms the Miss-World table required until I read somewhere it was a KISS hack and it used the KISS roms.
* Some tables (Elvis_JP_v1.1 and Hotwheels, etc) also have a message when run to say "Please be aware that this games sound emulation is not working 100% Properly" and I cant see from the script how to turn it off. Even using the full screen arcade version of the table has these messages. Maybe its some function in pinmame i can turn off. Can anyone help?
Thank you so much
Peace