Pinball Nirvana Home Page

Go Back   Pinball Nirvana Forums > Visual Pinball and Visual PinMAME > Visual Pinball and Visual PinMAME Discussion

Visual Pinball and Visual PinMAME Discussion Anything VP or VPM related

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-04-2015, 01:11 AM
jukecade jukecade is offline
Inserted Coin
 

Join Date: Mar 2011
Posts: 8
Credits: 12,986.30
Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 0
jukecade is on a distinguished road
Default Please add joypad support to your tables or leave them unlocked

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
Attached Files
File Type: zip VPMKeys+Bally with joypad (joyxxx) support.zip (3.1 KB, 143 views)
File Type: rar add joypad to vpinball.rar (528.7 KB, 430 views)
Reply With Quote
The Following User Says Thank You to jukecade For This Useful Post:
Ike Savage (02-04-2015)
  #2  
Old 02-04-2015, 11:46 AM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,306
Credits: 310,855.27
Thanks: 1,038
Thanked 642 Times in 496 Posts
Rep Power: 55
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

like you i've had problems with some of the intermediate gamepad programs for various reasons across various applications, but there are so many to try that i've always discovered one that did the job. aside from the two you mentioned, try:

rbjoy
pinnacle
enjoy2
...or the native software that comes with your (PC) controller.


the problem with getting authors to update scripts is that you're looking at scores or hundreds of people who made tables as far back as 15 years ago. good idea, but just not gonna happen.

in fact i recall that earlier versions of VP didn't even include the ability to poll the controller registers, so for many of these authors who made tables and then left the VP scene, it wasn't even possible.
Reply With Quote
  #3  
Old 02-10-2015, 06:46 AM
sleepy's Avatar
sleepy sleepy is offline
Pinball Wizard
 

Join Date: Aug 2004
Posts: 4,097
Credits: 396,124.31
Thanks: 711
Thanked 540 Times in 485 Posts
Rep Power: 60
sleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to all
Default

I thought that Visual Pinball allowed gamepad configurations using the Preferences > Keys menu. I'm pretty sure it does now, though older versions did not.

Try connecting your gamepad or device, open that menu. On the "Button Assignment" pane, click on the text area window for each key to highlight it in blue, and then press the desired button or stick/pad to set it. Click O.K. to exit.

Let us know if that doesn't work.
Reply With Quote
  #4  
Old 02-10-2015, 12:44 PM
Itchigo's Avatar
Itchigo Itchigo is offline
Former Operator
 

Join Date: Jul 2009
Location: The world of the living
Posts: 698
Credits: 60,243.88
Thanks: 101
Thanked 139 Times in 105 Posts
Rep Power: 17
Itchigo will become famous soon enoughItchigo will become famous soon enough
Default

This should help. The automatic table unlocker (™). Got to file/Unlock. It'll ask for the code, type in anything you want, unlock and save. The table is now unlocked.

**For personal use only**

For what it's worth I use X-Padder in my cab with no issues.
Attached Files
File Type: zip VPinball9.2.1 r840_unlocked.zip (656.4 KB, 160 views)
__________________
Now available: The world's first VP template with Direct B2s Capability!!
One of the many disgruntled VIP's at VPF

FREEDOM!!
Join the Rogue (A different kind of pinball site)
http://roguepinball.com/index.php
Reply With Quote
  #5  
Old 02-10-2015, 01:54 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,306
Credits: 310,855.27
Thanks: 1,038
Thanked 642 Times in 496 Posts
Rep Power: 55
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Quote:
Originally Posted by Itchigo View Post
This should help. The automatic table unlocker (). Got to file/Unlock. It'll ask for the code, type in anything you want, unlock and save. The table is now unlocked.

**For personal use only**

For what it's worth I use X-Padder in my cab with no issues.
wow... that would have greatly helped when i was in to VP!

most of the time the re-creator crowd would drop in bright PF's that clashed a lot with the PF objects. so i had to use a file extractor to pull the image out, dim it down, then pop it back in, repeat until i got the right level... and that was only when the table was unlocked.

also, that didn't work for the tables with huge decals that created the PF image.
Reply With Quote
  #6  
Old 02-10-2015, 02:20 PM
Itchigo's Avatar
Itchigo Itchigo is offline
Former Operator
 

Join Date: Jul 2009
Location: The world of the living
Posts: 698
Credits: 60,243.88
Thanks: 101
Thanked 139 Times in 105 Posts
Rep Power: 17
Itchigo will become famous soon enoughItchigo will become famous soon enough
Default

It just goes to show there's nothing that you can't fix with a sledge......:d
__________________
Now available: The world's first VP template with Direct B2s Capability!!
One of the many disgruntled VIP's at VPF

FREEDOM!!
Join the Rogue (A different kind of pinball site)
http://roguepinball.com/index.php
Reply With Quote
  #7  
Old 02-10-2015, 03:17 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,306
Credits: 310,855.27
Thanks: 1,038
Thanked 642 Times in 496 Posts
Rep Power: 55
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

now if only they could apply that to their (last i heard) still dreadful flipper physics.
Reply With Quote
  #8  
Old 02-11-2015, 03:01 PM
Itchigo's Avatar
Itchigo Itchigo is offline
Former Operator
 

Join Date: Jul 2009
Location: The world of the living
Posts: 698
Credits: 60,243.88
Thanks: 101
Thanked 139 Times in 105 Posts
Rep Power: 17
Itchigo will become famous soon enoughItchigo will become famous soon enough
Default

I've heard all the complaints about that stuff. The truth is I'm just happy to be able to play these at all. The community in general is too nitpicky (imo). When I started here I thought I knew everything because I used to be an operator. Then you talk to Greywolf and Pbecker1946, and you realize how little you actually know. (PBecker1946 is actually a personal friend, I just had him over to play my cab last week).

Quote:
Originally Posted by Ike Savage View Post
most of the time the re-creator crowd would drop in bright PF's that clashed a lot with the PF objects. so i had to use a file extractor to pull the image out, dim it down, then pop it back in, repeat until i got the right level... and that was only when the table was unlocked.
That's what I do now for testing.
__________________
Now available: The world's first VP template with Direct B2s Capability!!
One of the many disgruntled VIP's at VPF

FREEDOM!!
Join the Rogue (A different kind of pinball site)
http://roguepinball.com/index.php
Reply With Quote
  #9  
Old 02-11-2015, 06:46 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,306
Credits: 310,855.27
Thanks: 1,038
Thanked 642 Times in 496 Posts
Rep Power: 55
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

so when did you get in to VP, itchigo?
Reply With Quote
  #10  
Old 02-12-2015, 04:03 AM
Itchigo's Avatar
Itchigo Itchigo is offline
Former Operator
 

Join Date: Jul 2009
Location: The world of the living
Posts: 698
Credits: 60,243.88
Thanks: 101
Thanked 139 Times in 105 Posts
Rep Power: 17
Itchigo will become famous soon enoughItchigo will become famous soon enough
Default

That's a funny tale that actually starts here. I finally decided to buy a computer because of a job search- I had never used one before. I haven't even had a typing class in school either. This was June 2009. I literally taught myself Windows, folder structure, etc, from the ground up with no help except Google. I came across Space Cadet Pinball on XP. I enjoyed it, especially having been an operator. Then I started looking for a CD-Rom Pinball games to buy. At this point I still didn't know what subfolders were. I found VP (cue angelic music), I loved that I could get games from here for free, and without having to sign up. I downloaded what I could, but I still couldn't get VPM to work because of the roms not being in a subfolder (roms folder). VP worked fine.

That was then......

Now I'm on my 3rd site, I have like 15 original games I've done, many FS mods. I can do B2S, Java, HTML (some), I've built the machine I'm typing this on, and I built a laptop from parts (A.K.A "The Dell From Hell"). Hell officially froze over when my wife started asking ME questions. Now I like to code for the challenge of it. Coding backglasses is fun- depending on who you do it for. Example.

Controller.B2ssetscore 1, score means I'm calling the controller (1) to display the variable (score) on the reel, ok? So i have to go in and find what variable is being used that I need to call. If I mod a Compufox game (for my own use, of course) to FS, this is what I need because he's a programmer, and can't do anything easily....
Controller.B2ssetscore 1, TCount(1)*10 +HCount(1)*100 +KCount(1)*1000 +TKCount(1)*10000

Basically I had to take the 5 variables and make them one because I went from 5 individual reels to a single 5 reel unit on the backglass. But I like the challenge.

Just found this, surprised it's still here. Apparently I could hack a gamepad without knowing Windows lol. I was here a couple months- and I wanted a cab....
http://www.pinballnirvana.com/forums...enwood+pinball
__________________
Now available: The world's first VP template with Direct B2s Capability!!
One of the many disgruntled VIP's at VPF

FREEDOM!!
Join the Rogue (A different kind of pinball site)
http://roguepinball.com/index.php
Reply With Quote
The Following User Says Thank You to Itchigo For This Useful Post:
Ike Savage (02-12-2015)
  #11  
Old 02-12-2015, 09:22 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,306
Credits: 310,855.27
Thanks: 1,038
Thanked 642 Times in 496 Posts
Rep Power: 55
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

just be careful about throwing around the word "nitpicky," itchy. some of us began and ended in VP up to eight years before you came in. and your accomplishments are good.

15 years... major advances in modelling and programming across that crazy long time on the internet. yet it still doesn't translate in to VP fixing its chronically bad area. sadness.

as i recall bob used to say-- "the more authors the richer the broth" or something. eight is great, but fifteen is just a different dimension, maybe.

maybe.
Reply With Quote
  #12  
Old 02-13-2015, 02:50 AM
Itchigo's Avatar
Itchigo Itchigo is offline
Former Operator
 

Join Date: Jul 2009
Location: The world of the living
Posts: 698
Credits: 60,243.88
Thanks: 101
Thanked 139 Times in 105 Posts
Rep Power: 17
Itchigo will become famous soon enoughItchigo will become famous soon enough
Default

When I say "nitpicky" I mean some people complain the screws are wrong for the table. Or some stupid stuff like that. I'm just happy to be able to play these at all.
__________________
Now available: The world's first VP template with Direct B2s Capability!!
One of the many disgruntled VIP's at VPF

FREEDOM!!
Join the Rogue (A different kind of pinball site)
http://roguepinball.com/index.php
Reply With Quote
  #13  
Old 02-13-2015, 06:23 AM
LeeVanCleef's Avatar
LeeVanCleef LeeVanCleef is offline
RIP Ruby. Whosa good dog?
 

Join Date: Sep 2005
Posts: 1,463
Credits: 255,842.91
Thanks: 492
Thanked 441 Times in 340 Posts
Rep Power: 32
LeeVanCleef is a glorious beacon of lightLeeVanCleef is a glorious beacon of lightLeeVanCleef is a glorious beacon of lightLeeVanCleef is a glorious beacon of lightLeeVanCleef is a glorious beacon of light
Default

Wow... has it really been 15 years? I guess I first looked it up about 16 years ago. Because there were a bunch of tables that looked fantastic... but there was not way to play them. Kinda wish Itchigo had been around then. He could have read up on it over a weekend and then invented PinMame! Sounds like I missed the train by not-too-much, since I stumbled across you pack of rogues about 2004. Still the most fun I've had on an internet discussion board ever. And in the ensuing decade, I've learned not one single thing about how to design a table. I'm not very bright.
Reply With Quote
  #14  
Old 02-13-2015, 09:54 AM
sleepy's Avatar
sleepy sleepy is offline
Pinball Wizard
 

Join Date: Aug 2004
Posts: 4,097
Credits: 396,124.31
Thanks: 711
Thanked 540 Times in 485 Posts
Rep Power: 60
sleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to allsleepy is a name known to all
Default

I don't think it's you Ruby. Computer programming languages are inscrutable by design.
Cryptic. It's all about the $$$$$$$$$

I think the Visual Pinball code was sometimes the easiest to get into, but if you can identify what the reasons are and what is to be done, then you can do like me and wade through other languages. It's not the syntax, it's the job and the desired result.

Put your stuff in a Dim and give it a name. That name is now your stuff.
Like this. If I give Bob my $5, Bob is now the same to me as my $5...well...

Did I mention that I am planning to dump my Progressive insurance policy?

Last edited by sleepy; 02-13-2015 at 10:10 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Isn't It Time For Zero Tolerance? tiltjlp tiltjlp spouts off! 23 01-11-2014 03:12 PM
Imported Messages (826 entries 7/2001 to 1/2012) JonPurpleHaze IRPinball's Guestbook 1 01-31-2012 01:09 AM
The Loafer's Interview tiltjlp tiltjlp spouts off! 5 10-20-2010 05:51 PM
Amazon Hunt mod/rebuild rob046 Visual PinMAME WIPs 47 09-06-2006 06:30 AM
The Dude unpacked tiltjlp tiltjlp spouts off! 7 01-06-2005 09:27 AM


All times are GMT -4. The time now is 11:57 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Template-Modifications by TMS
Credits System provided by vBCredits II Deluxe (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Shoutbox provided by vBShout v6.2.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.