• Many thanks to Ian Longstaff for his lovely table roundups, posted on YT. And here is... WEEK SEVEN!

    Also, here's our browser games collection, for those who are playful.
  • Google Translate to French or Other Languages Click on the link and a new tab will open with this page translated into French.
    Click on the "To:" pull down option to select a different language. Users will not be logged in on the new Google tab.

want to use gamepad controller...

faralos

Faralos
but I don't know how or where that code is. This is my first week with the VP program. I was actually bored silly from playin demo after demo online of pins and found this site (and AJ's, IR, Nirvana, etc)quite by accident! Having grown up in arcades (I'm 49 and grew up in NE New Jersey in USA.) I LOVE pins, but here in the Se of Pa. there are NO arcades that have any pins. So here I am w/ not one but TWO programs awaiting me(VP and Future Pinball). but my keyboard software is funky and I can't hit double keystrokes and therefore miss nany possible saves were my flippers behaving normal.. being a comp nut, I've tried everything. But the gamepad worked once but I can't remember on what game. So I don't have the coding.
If anyone can help me on this, it would let me be able to play the tables as they were meant to be with fast flipper strokes!
:help:
Thanks for letting me run on and on...
Faralos
 

Shockman

appropriate at this time
You can use the gamepad for any key function.

You will have to learn the keycode that your game pad produces.

To do this put this line in a new table
scoretext.text=keycode
in the script after this line
Sub Table1_KeyDown(ByVal keycode)

Then you could use the number for the button or even axis of the gamepad in place of any keycode that is doing what you want that function of the pad to do.

You will have to do the same to the KeyUp section of the script.





 
Last edited:

faralos

Faralos
that didn't work!

well I put the coding in and I got this mssge,
Line 219
Variable is undefined: 'scoretext'

I think I should be getting a variable that shows the numerical location of my gamepad input but the program keeps on giving me this reply.
I know absolutely nothing about coding or scripts so any help you can give me would be much appreciated.
Thanks, though for the patience,
 

Shockman

appropriate at this time
Of course joytokey would work. That is it's function.

If the line I provided don't work though, and you have a text box named scoretext, then your problem is not your keyboard, it is probably your VBscripting package being out of date.

I read the thread at VPF. It is full of misinformation, outdated information, bad ideas, and did not see any posting mentioning that VBscripting needs to be working, or that VP has a menu setting to choose what buttons you want to use for what, or that VPM has a .vbs file for the default keys, and there is no reason that these can not hold the values that are returned for the gamepad. But I can not post in that thread, "for the good of the community".

Update your Visual basic scripting language. I say this because you say you have a very old computer, and this package is not going to update it's self and too old of versions don't work. Use the latest Visual Pinball package and support files. Do these things and the joysticks and gamepads will work as I described.

Joytokey has it's uses, and I have it installed, but there is not a single reason that I would use it within VP. I use to, for Caveman, and Baby PacMan, but with later versions of VP it's not even needed for those. But then I never wanted to use a gamepad for the flipper buttons, I prefer the keyboard for that. Sometimes I use my X-Arcade unit, that uses buttons and a stick together, but most of the time I just use the keyboard. If I wanted to use a gamepad only I would put the values it returns in the defaults for VP and in the keys vbs file. Then if the table file used If keycode = LeftFlipperKey Then then it would use those defaults, and almost every table does. A quick search and replace would fix the scripts that didn't.
 
Last edited:

TheMcD

sXe And Better Than You
You know what I'm wondering? If faralos actually followed your directions, Shockman.

I put it in exactly how you described it (in a new VP table) and it worked smooth as silk.
The thing that makes me wonder about the error is "Line 219". Shouldn't that mean that he pasted it a) into a table without "ScoreText" b) at the wrong place?

I'll try fumbling around with the KeyDown values etc.

The more you know.

The McD

EDIT: Jup, really works sweet.
 

Shockman

appropriate at this time
Yes. Good catch 'McD. He put it into an existing table that had deleted or renamed the textbox named ScoreText.
Perhaps you could post this information for our friends over at VPF.
 

TheMcD

sXe And Better Than You
I posted over at VPF that I will take the discussion over here, so we can get a good result out of this.

I'll get the results over there later when I wrote up a small tutorial after everything's been cleared.

The McD
 

faralos

Faralos
i posted elsewhere on this

but yeah, I tried it on a new table it worked but, how do I put it into an existing one? I tried to input the coding into 'Flash (williams 1979) the compilation went ok, but it just does not work my keyboard is wonky the software is buggy and I can't make rapid keystrokes (such as quick flipper saves) hence my interest in a gamepad instead.
 

Shockman

appropriate at this time
It has been stated over at VPF that I came up with this.

I never said I came up with this. I said it was a fact. It is built into the later versions of VP. I do no development on VP and that is known.

This is why it's important that a person is able to post at such places or if not that all their posts should be deleted if requested. I was not injecting something there, I was discussing things. If I can not post there, then my posts should not be there.
 

faralos

Faralos
let's not argue

Ok, to make a long story short, I fixed my keyboard issues, apparently I had a software exe spyware program in my windows registry that kept locking up my keyboard. I finally fixed it so i don't need the gamepad emu. any more. But I still use the keycode prog for the numerical values. It really does help, I can still map the buttons to my pad for lazy (away from keyboard) playing, or for showing my friends who all can't sit at once
Now, on to learning all that code...are there any code 'bundles' shall we say for faster scripting. I don't even know where to begin to script a table, and was wondering if there were like 'blocks' of code that i can cut and paste for diff. functions. I hope so, or this project is gonna be short-lived. I can design tables, I just can't program them.
 

ghurka

Inserted Coin
I didn't see anybody post a link or mention xpadder so I took the liberty of doing so. It's another program like joy2key with a nicer gui / profile managment imo.

The final version of Xpadder (v5.3) can be directly downloaded here
http://www.mediafire.com/download.php?wnogdiuggwy

Home Page
http://xpadder.com/

Support Forum
http://blackhole.ipbfree.com/

<a target='_blank' title='ImageShack - Image And Video Hosting' href='http://img384.imageshack.us/my.php?image=xpaddervpinmamepn2.jpg'><img src='http://img384.imageshack.us/img384/6592/xpaddervpinmamepn2.jpg' border='0'/></a>
 
Last edited:

ghurka

Inserted Coin
37.21 mega bytes?


Yes it comes a bit bloated mainly due to it being the final release that includes ALL previous releases with it and a lot of pre-configured profiles to boot. It has profiles already made for most all common game controllers with layout pictures. Plus on top of that it has profiles for specific games. Anywhere from Call of Duty 4 back Half life. I also added the link to the front page (site is ugly due to the program being final and no longer being developed) so it does not look like I'm trying to link you guys to something malicious or anything like that.
 
Last edited:

DavinaJo

Pinball Nudger
i know of another option but you're going to have get your hands on a Logitech(tm) Dual Action Gamepad.. the software that comes with it (profiling software) can be used to setup the game and keystrokes so you're not fooling around with scripts and coding
 

Isaac Sauvage

Meep!
Site Supporters
Consultant
i know of another option but you're going to have get your hands on a Logitech(tm) Dual Action Gamepad.. the software that comes with it (profiling software) can be used to setup the game and keystrokes so you're not fooling around with scripts and coding
don't be silly.

you don't need to buy any particular gamepad, just use any of the utilities we list in the four year old VPF article.
 

faralos

Faralos
you guys Do realize I posted this about 2 months ago? granted I'm still active here, but I know far more now than i did back then! but thanks for the answers, no matter how much time that passed...But I'm guilty of that too, having answered a post by pacdude (that was over four yrs. old) only because someone on here posted yesterday on it and silly me i didn't check the original post date before replying! ah well...
 

Phoenixx

Starfleet Member
Site Supporters
you don't need to buy any particular gamepad
Not to mention that the Profiler Software can be downloaded from Logitecs website...


Anyhow, im currently using Xpadder for/with nullDC and i must say it is really a nice program. Better even than Joy2Mouse, which i preferred previously. If you need such a solution (for whatever purpose) it is worth a look in any case. Unusual yet genious feature: It comes with tons of images of popular controllers that can be loaded into the GUI. And since the button-icons representing the keys on the keyboard can be moved around per click and drag to the proper spot on the controller image (buttons, shoulder-triggers, sticks, etc.) a custom layout with a perfect overview over whats where is setup in no time. And it supports 'slots' for presets (8 in total) that can be selected simply by clicking on the corresponding number on the Main-GUI. (Useful for different emus/apps that need specific key-layouts due to key-restrictions,...)

When i first tried it i was really surprised by its exceptionally great functionality and yet-ease-of-use, which is why i will definitely keep using it for that sort of thing. It is one of these rare freeware progs where i wouldnt mind at all if it were being sold for 5.- or 10.- bucks since it was really geniously made (the 'dropping-icons' animations alone must have taken quite a while to code) AND has a lot of functions AND is easy to use AND functions flawlessly too. And thats all a user can ask for,...if i had to rate it on a scale of 1-5, i would give it the full five stars,...
 

faralos

Faralos
yeah see i have nerve damage in my back and shoulders so typing on keyboard brings on first tingling in fingers then PAIN then finally numbness in 5 minutes of typing so a gamepad would help in long playing of pins 'cause I can sit back and relax more so thanks for that update, i'll look into it...
 

jmontorr123

Inserted Coin
Hello i have setup the xpadder with the correct profile for my controller and it recognizes it fine but i am having a problem with the visual pinball 9.0.2 it dosent seem to accept the keys when i press them in the keys setup its like the controller is not there . I have future pinball and it works fine without x mapper it does it automatically can someone help me get visual pinball to recognize my controller please :wave:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    There are no messages in the chat. Be the first one to say Hi!
    Top