Jump to content



Photo
- - - - -

VPX nudging

vpx nudge

  • Please log in to reply
111 replies to this topic

#61 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 08 September 2018 - 08:50 AM

Thanks Outhere!
I had somehow missed that script part and googling didn't find anything related.

So in short for anyone googling his way here:

Download NudgePlugin script to VPX tables folder or in older tables search table script for tilt key and comment out 'Nudge' command.



#62 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 08 September 2018 - 11:27 AM

Uh. Be careful about using that version. I don't think it has been updated ?! It is better to use the one inside your scripts folder - rename it.


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


#63 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 08 September 2018 - 12:56 PM

Thanks for the correction Thalamus!

#64 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 06 October 2018 - 08:39 PM

So once I got everything working I moved whole setup on another PC and now I have this nudge issue again. Can't figure out why as all versions are the same and I use the same VP10.5 included NudgePlugin script.

This time it wont send the fake nudge if I press Shift+T, but it sends it when the analog nudge triggers the simulated tilt bob?

 

It wont do that if I comment out stuff like 

If keycode = CenterTiltKey Then Nudge 0, 5

but I didn't comment those out on my other machine and still didn't have this stupid fake nudge.


Edited by sniiki, 06 October 2018 - 08:45 PM.


#65 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 06 October 2018 - 09:32 PM

What fake nudge are you talking about ? The screen shake or what ?


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


#66 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 07 October 2018 - 08:48 AM

No, the actual nudge that makes the ball move. So when I shake my cap to the end that sim bob activates, I get this "digital nudge" that makes the ball jump up in the same way center nudge button would do. And to emphasize I don't get it if I send mech tilt command with 'T' so that verifies that the NudgePlugin script is working.

Maybe I've been drunken all this time and just didn't notice it earlier but I'm quite positive I did not have this on my other system and tilt warnings were appearing without ball flying all over. I tested it with Attack from Mars back then and used the same table file (same modifications) now.

If someone could tell if you personally need to manually edit every table's script and remove those nudge lines or not?


Edited by sniiki, 07 October 2018 - 08:51 AM.


#67 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 07 October 2018 - 08:59 AM

Are we talking about nudge or tilt now ? I'm still confused. If we are talking digital tilt, isn't there a option to turn that off ? Been a while since I did this, but, I have no problems myself. Maybe a screenshot of your preferences and/or a video would help me understand.


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


#68 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 07 October 2018 - 07:09 PM

We are talking about both :)

So normally, unless you activate NudgePlugin (rename NudgePlugIn_mjrAccelAndTilt to NudgePlugIn), when you send the tilt command 'T' VPX also sends a nudge command (due to desktop users etc.). To get rid of this with analog nudging you use NudgePlugin as analog nudge uses simulated tilt bob that, when activated sends 'T' tilt command. Fine, you get no nudge/ball bounce anymore when 'T' command is sent, but at least I still get jumpy ball when simulated bob activates (when I shake the cab enough) and it seems it's due to that some tables have this nudge command in their script. I'm just quite sure I did not have this earlier on another machine so I'm wondering what everyone else is doing? Do you need to edit table scripts when using analog nudging or doesn't people just care?

I can make a video if I still wasn't able to explain this clear enough (no sarcasm here :) ).



#69 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 07 October 2018 - 08:56 PM

No. You don't need to make a video. This time I understand what you are saying. It might very well be that I have a jumpy ball. I just haven't looked for it. Normally, the problem I have is that there is a lack of code for the mechanical tilt in the table and I'll have to add that instead.

 

To me it sounds like you have both the CenterTilKey and the MechanicalTilt key enabled and assigned on the same button - T.


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


#70 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 08 October 2018 - 06:20 PM

If by CenterTiltKey you mean the center nudge key in settings then no, it's assigned to 'SPACE' and mech tilt is 'T'. 



#71 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 08 October 2018 - 06:32 PM

Try assigning CenterTiltKey to something really obscure that you don't use. Does it still happen ?


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


#72 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 12 October 2018 - 05:38 AM

Tried a different key, no effect.

#73 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 12 October 2018 - 06:29 AM

Open up notepad and shake your cab. Does it print 'TTTTTT' or ' T T T T' ?

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


#74 erzak

erzak

    Enthusiast

  • Platinum Supporter
  • 61 posts

  • Flag: United States of America

  • Favorite Pinball: Attack From Mars

Posted 12 October 2018 - 05:12 PM

I found this thread the other day and by trying various things, was finally able to get nudging working on my cabinet.  I have a Freescale/VirtuaPin controller board.  Seems that the default value of 0 for X Max and Y Max results in VPX not doing anything with the nudge data coming from the board.
 
I see going back 2+ years that people have asked what these two parameters mean, and doesn't seem to be any answers.  I arbitrarily set both of them to 10.  I've been experimenting with both the gain settings and dead zone setting in VPX, as well as the controller settings.  To date, I have not been able to find a combination where if I shake the cabinet, I get a nudge.  I literally have to smack the side of the cabinet and then the ball jumps.  Sometimes it jumps the way I think it should, but not always.
 
Kinda wondering if these values determine the amount of nudge that is given to the ball when a nudge is triggered?
 
I also read to rename the script file NudgePlugIn_mjrAccelAndTilt.vbs to NudgePlugIn.vbs, but reading the comments inside that script file, it says to only use it if you have an accelerometer and a tilt bob installed in the cabinet.  If that script is not renamed to NudgePlugIn.vbs, then does VPX use the inputs from the accelerometer as digital nudges, like if you press the z, /, or space keys?
 
Is it still better to use the NudgePlugIn_mjrAccelAndTilt.vbs even if you don't have a physical tilt bob installed?
 
Dumb question: I've assumed that x is side-to-side, and y is front-to-back, and if the controller is mounted so that the USB ports are on the left, then accelerometer rotation should be left = 0?
 
There are a number of settings in the controller software, tilt life, tilt multiplier, etc. that aren't particularly well defined.
 
I'm not too concerned with getting tilt working, just would like to be able to give the cabinet a shake when the ball is about to teeter into a drain chute or something and have half a chance of it not draining  Any thoughts on what parameters to change would be appreciated.
 
Thanks!


#75 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 12 October 2018 - 06:25 PM

Open up notepad and shake your cab. Does it print 'TTTTTT' or ' T T T T' ?

No, but coudn't really find a way to get notepad to have focus and vpinmame/vpx still listening for commands (launch ball or anything). I tested it with windowed and FS exclusive without luck. Tried alt+tabbin from dmd, b2s and playfield windows to notepad. If you at any point test e.g. AFM table, could you try to shake your cab while holding the ball on a flipper? You should easily see it bounce in odd way during tilt warning if it does the same thing on your setup. If it wont, could you check if you find this line in your script or if it's been removed/commented out?

If keycode = CenterTiltKey Then Nudge 0, 5

@Hobbyist

If you lift your cab, are you able to roll the ball around playfield? If accelerometer works correctly you should be able to do that.

Don't know how different softwares & firmwares handle the raw sensor input but with Pinscape I use Y/X max 100 and gain 120%. Might not be optimum but feels reasonably close.

The script you mentioned works without real tilt bob. VPX uses simulated tilt bob if you check 'Tilt sensitivity' box in the settings + give some value (i use 860 which is maybe a tad too forgiving but 900 tilts too easily) and remember you need to close and restart VPX everytime you change these settings.

 

btw. I don't think one can play pinball properly / enjoyably without nudging so it's worth the effort getting it working.


Edited by sniiki, 12 October 2018 - 06:26 PM.


#76 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 12 October 2018 - 06:31 PM

@sniki : I didn't want you to run VP while doing the notepad test. I just wanted to know if there is some other input than a regular T coming from the bob.

Will try your AFM test and report back. I know that I haven't taken those lines out. Just check my script repo and you should see that I don't do that.


Edited by Thalamus, 12 October 2018 - 06:32 PM.

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


#77 erzak

erzak

    Enthusiast

  • Platinum Supporter
  • 61 posts

  • Flag: United States of America

  • Favorite Pinball: Attack From Mars

Posted 12 October 2018 - 08:58 PM

 

If you lift your cab, are you able to roll the ball around playfield? If accelerometer works correctly you should be able to do that.

Don't know how different softwares & firmwares handle the raw sensor input but with Pinscape I use Y/X max 100 and gain 120%. Might not be optimum but feels reasonably close.

The script you mentioned works without real tilt bob. VPX uses simulated tilt bob if you check 'Tilt sensitivity' box in the settings + give some value (i use 860 which is maybe a tad too forgiving but 900 tilts too easily) and remember you need to close and restart VPX everytime you change these settings.

 

btw. I don't think one can play pinball properly / enjoyably without nudging so it's worth the effort getting it working.

 

 

I don't know if I could physically pick up my cabinet enough to try moving the ball around that way!  It's close to 300 lbs!  I will try this weekend.
 
The fact that you have to close and re-open VPX everytime you make a change is quite annoying, and pretty much defeats the functionality in the Nudge test table where you can change the gain and max settings using the flippers while in the test table.


#78 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,954 posts

  • Flag: Norway

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

Posted 12 October 2018 - 09:48 PM

I understand the reasoning behind the rant. But, you also have to take into account that there are very few core developers and they do this all absolutely free for everyone to enjoy. Address it politely in the next beta thread and maybe it gains enough popularity to be address. For now - keep restarting.


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


#79 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,133 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 12 October 2018 - 11:04 PM

Be happy you can adjust the settings :)

#80 sniiki

sniiki

    Enthusiast

  • Members
  • PipPipPip
  • 80 posts

  • Flag: Finland

  • Favorite Pinball: Attack from Mars

Posted 13 October 2018 - 01:49 PM

@sniki : I didn't want you to run VP while doing the notepad test. I just wanted to know if there is some other input than a regular T coming from the bob.

Will try your AFM test and report back. I know that I haven't taken those lines out. Just check my script repo and you should see that I don't do that.

I tried it with notepad having focus and nothing appeared and I'm not sure what would do such thing if VP isn't running? Pinscape itself wont send any key presses.







Also tagged with one or more of these keywords: vpx, nudge