Jump to content



Photo
* * * * * 1 votes

New core.vbs with better nudging


  • Please log in to reply
103 replies to this topic

#101 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 26 April 2013 - 07:56 AM

it's normal that you can't tilt cause you filtered all consequent nudges with tiempofiltro

 

if you put tiempofiltro to 2000 and nudge count interval to 1000 that means you can nudge every 2 seconds, but after one second tilt counter goes down, and till next nudge it is on 0

tilt counter makes tilt when it goes over msensitivity!

 

so to get tilt sometimes you can reduce tiempofiltro and/or enlarge nudge count interval

and you can reduce psensitivity and msensitivity to 1-5 not 10, putting msensitivity to 10 makes opposite of what you want to do

do you mean raise the interval in the table script, timer or in the vbs.core?

does the vbs.core overide the table script and timers?


Edited by chas, 26 April 2013 - 07:56 AM.


#102 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 26 April 2013 - 12:32 PM




it's normal that you can't tilt cause you filtered all consequent nudges with tiempofiltro
 
if you put tiempofiltro to 2000 and nudge count interval to 1000 that means you can nudge every 2 seconds, but after one second tilt counter goes down, and till next nudge it is on 0
tilt counter makes tilt when it goes over msensitivity!
 
so to get tilt sometimes you can reduce tiempofiltro and/or enlarge nudge count interval
and you can reduce psensitivity and msensitivity to 1-5 not 10, putting msensitivity to 10 makes opposite of what you want to do

do you mean raise the interval in the table script, timer or in the vbs.core?
does the vbs.core overide the table script and timers?
A better way to isolate your nudge code is with the NudgePlugin.vbs file you create and drop in the same folder as core.vbs. Core.vbs now allows for custom nudge plugin vbs files.

You then adjust this in that custom code.
' set defaults for all tables here or change them from your table script
NudgeInterval = 1000 ' time in ms after which nudge count goes down

NudgePlugin overrides core.vbs nudge and can override some table script nudge values if you set the variables to do so.

Reference to NudgePlugin
http://www.vpforums....e=4#entry218474

Edited by uberpinball, 26 April 2013 - 12:41 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#103 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 28 April 2013 - 09:36 PM

it's normal that you can't tilt cause you filtered all consequent nudges with tiempofiltro

 

if you put tiempofiltro to 2000 and nudge count interval to 1000 that means you can nudge every 2 seconds, but after one second tilt counter goes down, and till next nudge it is on 0

tilt counter makes tilt when it goes over msensitivity!

 

so to get tilt sometimes you can reduce tiempofiltro and/or enlarge nudge count interval

and you can reduce psensitivity and msensitivity to 1-5 not 10, putting msensitivity to 10 makes opposite of what you want to do

Before I axed the question here, I did google vpmNudge.sensitivity and found the *.vbs documentation stating:

·        Property: .Sensitivity = sens

Specifies the tilt sensitivity between 0 (low) – 10 (high).

Example:

vpmNudge.Sensitivity = 5

according to the statement here, the higher the number the higher tilt sensitivity should be... hm, maybe I was wrong, I did that like 2am and at that time of day(or night) logical mistakes tend to multiply :)

Will see, when I get back home from work I'll test the vbs code with tiempofiltro around 200 with count interval 1500, msensitivity and psensitivity to 1. This should increase tilt probability.

That's true for that sensitivity but msensitivity and psensitivity in core act opposite because of:

	Public Property Let Sensitivity(aSens) 
		If pSensitivity = 0 Then mSensitivity = (10-aSens)+1 Else mSensitivity = pSensitivity
	End property

 

It was always like that, that's not my invention - sensitivity in table and in core are inverted.



#104 baloo42

baloo42

    Enthusiast

  • Members
  • PipPipPip
  • 277 posts
  • Location:Johannesburg

  • Flag: South Africa

  • Favorite Pinball: F-14 Tomcat, Lord of the Rings, Spectrum

Posted 16 April 2015 - 08:27 PM

Oh man, this is great. Better nudging physics would be amazing!


Edited by baloo42, 16 April 2015 - 08:28 PM.

lotr_leftside1.jpglotr_rightside0.jpg

~ Real Metal ~ Real Pinball