to get some more opinions on this, i modified the file due to blurs suggestions (so this is a 3.40 modified by blur, then by rob046, and then again by blur
)..
from my first tries, i think this in fact seems really to be more realistic with the modified aDir..
Toxie are you a desktop user?
I just tried your tweaks, but it has one of the same main problems that caused me to want to tweak blur's code in the first place. The ball gets "double bumped" with these settings. For example, when you have 180 for front nudge with the return force, the ball will "jerk" twice on a single nudge when it is resting on or right above an object. This is exactly why I go only with directions that send the ball initially somewhat forward (300, 60, 0). I'm still well aware this is far from perfect, but if you use conservative nudge strength (such as 1 for each direction) it actually works out pretty well. Sometimes I even think a strength of 1 is too high.
While I'm all for people just using whatever settings work for them, I do still long for the VP8 days when all things were equal.
when i think about this now two years after the code is created - i would not export so many public variables.
public variables are only added because somebody said two years ago - yeah it's a great script but to make it official you should add public functions so that nudging can be controlled by authors from the table, so I added it.
however changes never made it to official version so now i say nudging should not be controlled from the table - it should be same on every table, just like pbw nudge options are removed from the table into vp options
for example - people that have tilt bobs will want big tiempofiltro - it makes no sense for table author to change it, or people that prefer some nudge angles - like 90, 270 and 180 will want it on every table, same goes for return force percent which someone likes and some don't, or shake that will be used mostly by desktop people and never by cab users
all these options could just be defined in initialize class routine (and every body could customize them there) - no need to export them
what should be exported is only nudge sound, tilt sound, nudge music and tilt music - so that authors can use authentic sounds on his table, and old options like sensitivity, tilt switch and update method - even though sensitivity could be forced for all tables also
i think i also play nudge sound on class init - just so that it is cached in memory cause every time i would first use it ball will stutter - and you don't want stutter when you are saving middle drain
some thing that should be added - that i only wrote in "core.vbs with better nudge" topic but never put it in downloadable core.vbs file (because nobody showed no interest except rob and chas - tnx for that guys!!!) is preferred angle and strength - these are the commands that rob added in his code - they are magic commands and can make every table you have behave the same - and nudge in same direction
it could be defined in the initialize class so that people just have to edit init to customize their code, without going to commands
and commands would be if preferred angle and force is defined use it - if not get it from calling variable
to make rob happy i would also split return force percent to front nudge percent and side nudge percent
and of course as i said few lines earlier - there is no need not to have preferred sensitivity also
i said this hundred times - but i will say it again - if you set return percent to zero almost nothing will change regarding current nudge system (so don't see any reason not to include it in official release)
if you set return % to 100 it is whole different story - very difficult to save anything cause ball will return to its original path and drain every time - except if you nudge just at the moment when ball is by the flippers and then you hit it with the flippers
I think a lot of people are interested in better digital nudging, but I bet many are turned off by what it takes to get it. Too confusing, too much work. VP is already complicated enough for a casual user. In some cases we sort of have to speak for the average user. It has been years since VP8. I bet many users don't even know how much better VP8 nudging was & so they don't know what they are missing.
I agree you need to find that sweet spot on return percentage in order to at least try to simulate real nudging.
I've actually tweaked my preferences again recently, just a little...
If aDir < 5 or aDir > 355 Then aDir = aDir + 0 : aForce = 1 : ReturnPercent = 50
If aDir >= 5 and aDir <= 175 Then aDir = 60 : aForce = 1 : ReturnPercent = 85
If aDir >= 185 and aDir <= 355 Then aDir = 300 : aForce = 1 : ReturnPercent = 85
Edited by rob046, 22 March 2013 - 08:52 PM.