- View New Content
-
Getting Started
-
Tutorials
Tutorial Categories
Tutorials Main Page Installation and Setup Downloadable TutorialsROM Adjustments
Number of Balls Adjustments Volume Adjustments
-
Visual Pinball Tables
VP 8 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP 9 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP9 Cabinet Tables
All Full Screen Cabinet Full Screen B2S Cabinet Spanned Cabinet Tables Media Packs ROMsVPX Tables
All VPinMAME Recreations VPX- - /VPinMAME - MOD Tables VPX Recreations VPX Originals Media Packs ROMs VR
-
Frontend Media & Backglass
Media Packs
Complete Media Packs Wheel Logos VideosBackglasses
dB2S Animated Backglasses UVP Animated Backglasses Topper Images
- Future Pinball Tables
-
Design Resources
Main Resources
Table Templates Playfield Images Image Library Sound Library Key CodesVP Guides
VP8 Guide - English VP8 Guide - Deutsch VP9 Guide - English VP9.1.x Guide - English VP Object Guide VPM DocumentationFuture Pinball Resources
Playfield Images 3D Model LibraryFuture Pinball Guides
FP Script Guide Big Draco Script Guide FP Table Design Guide FP DMD Guide
- Other Features
- Bug Tracker
- Image Gallery
- Blogs
-
More
Alternative Alpha Ramp Scripting for Plunger/Lights/etc.
Started By
koadic
, Jul 06 2012 05:52 PM
32 replies to this topic
#22
Posted 07 July 2012 - 10:05 AM
QUOTE (koadic @ Jul 7 2012, 05:57 AM) <{POST_SNAPBACK}>
QUOTE (jimmyfingers @ Jul 6 2012, 11:06 PM) <{POST_SNAPBACK}>
Hey Koadic, would you be able to post the script for this enhancement on the Alpha Ramp plunger but also with the "either or" approach to the PBWplunger or a key being pressed. You had one earlier that drew correctly regardless of whether or not the analog plunger was used vs. the key being pressed. Hope this rings a bell as I'd like to use this script verbatim (I have a motion sensor but not a plunger which throws it off as it detects the "PBW" even though I don't have a plunger and use a key assignment).
I imagine I could analyze the two and work it out so no big deal if you can't just thought it might save some time for others in the same boat or who want the same functionality but might not be as into script modification / splicing.
I imagine I could analyze the two and work it out so no big deal if you can't just thought it might save some time for others in the same boat or who want the same functionality but might not be as into script modification / splicing.
You can use the script verbatim, as this is what I included above... You enable the Plunger timer by default with an interval of 40, then use the KeyDown and KeyUp parts for the plungerkey included above, that way whenever the plunger button is pushed, the timer is disabled, then reenabled when it is released. That way the animation works correctly regardless.
Sorry koadic, I see it now in the script you already provided above - I think my first copy and paste was for everything but the keyup and keydown section elements. Easy enough to add now exactly and with the logic. Thanks.
#23
Posted 07 July 2012 - 10:35 AM
QUOTE (unclewilly @ Jul 7 2012, 04:42 AM) <{POST_SNAPBACK}>
hey jimmy just open the script and do edit replace
search and replace all .widthtop and .widthbottom with .alpha
then change the numbers 0 stays as 0 and any widths say 200 change those to 1
search and replace all .widthtop and .widthbottom with .alpha
then change the numbers 0 stays as 0 and any widths say 200 change those to 1
QUOTE (jimmyfingers @ Jul 7 2012, 04:59 AM) <{POST_SNAPBACK}>
In general and so far while editing / assessing some tables for this performance improvement, I noticed that if the ramps are set smaller / narrower in the editor than what they'll be when they are "expanded" as part ot the alpha ramp routine, then those will need to be fixed and set to the width in the editor that they have as parameters for the routine calls or I've been writing a routine to initialize the size (widthtop / widthbottom) that runs in the script so that I don't have to go around all the editor and find the ramps and for which I can copy and paste the current alpha ramp routine calls with the sizes in them, re-format / replace, and place back in as init calls at the top of the table.
This find is massive for performance improvement and the magnitude for which it can help, thanks again Koadic!
This find is massive for performance improvement and the magnitude for which it can help, thanks again Koadic!
I guess in the situation where the ramp width is different in the script than what it is in the editor, the other option is just to ADD the .alpha = 1 to any lines where the ramp width is set, as this shouldn't interfere with the old style, but I would add it before setting the width just in case... and with setting it to 0, you can still REPLACE that part with .alpha = 0 as visually it does the same thing (hope I am making myself clear on this
#24
Posted 07 July 2012 - 11:23 AM
QUOTE (jpsalas @ Jul 7 2012, 10:59 AM) <{POST_SNAPBACK}>
Yes, UW, remember also to change it in my fading lights subs (all those FadeAR and FlashAR subs).
thanks jp.
i did. i have some custom alpha routines in the light system also for 3 step alpha lights and combinations of alpha and lights and dropwalls.
it is a vast improvement.
thanks for finding this.
jimmy: most likely the reason the routines in the script have different widths than whats in the editor is because he didnt check the sizes when he did the script.
its usually a copy and paste thing
"it will all be ok in the end, if it's not ok, it's not the end"
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx
#25
Posted 07 July 2012 - 11:41 AM
I have a tecnical question:
After showing this thread on their respective monitor, my two laptops have a very large smile ?
Anybody could explain this ?
Koadic, Thank you very much for ALL your contributions to VP !
After showing this thread on their respective monitor, my two laptops have a very large smile ?
Anybody could explain this ?
Koadic, Thank you very much for ALL your contributions to VP !
Edited by FDSystems, 07 July 2012 - 11:42 AM.
From Brasil. Updated version of 1234fd
#29
Posted 07 July 2012 - 03:19 PM
QUOTE (bmiki75 @ Jul 7 2012, 03:00 PM) <{POST_SNAPBACK}>
Thanks a lot koadic.
Just got some very nice improvement on your cool Jurassic Park, on which I had some stutter
#30
Posted 07 July 2012 - 08:17 PM
This seems great!
Just a suggestion... if the changes are only needed in the table script then would it be possible to share / attach updated scripts in this thread? It would be an easy way to get to try the new versions without updated table uploads at this point. Also working with table scripts in my cab (which is the only place where I have all the tables) is not so easy so simply copy & pasting the new scripts would help a lot.
I would also really like to try these changes to the LW3 but it seems that it takes more work than just search and replace (jimmyfingers wrote "LW3 now runs super smooth and I more than doubled the FPS but it had some extra quirks to really get smooth - had to change how the refresh was happening as well"). So sharing working solutions would help in this case as well. Of course only if it's not considered sharing unauthorized mods.
Just a suggestion... if the changes are only needed in the table script then would it be possible to share / attach updated scripts in this thread? It would be an easy way to get to try the new versions without updated table uploads at this point. Also working with table scripts in my cab (which is the only place where I have all the tables) is not so easy so simply copy & pasting the new scripts would help a lot.
I would also really like to try these changes to the LW3 but it seems that it takes more work than just search and replace (jimmyfingers wrote "LW3 now runs super smooth and I more than doubled the FPS but it had some extra quirks to really get smooth - had to change how the refresh was happening as well"). So sharing working solutions would help in this case as well. Of course only if it's not considered sharing unauthorized mods.
#31
Posted 07 July 2012 - 09:58 PM
I'm going to send a PM to oooPlayer1ooo to see if he wants the changes I did or will allow me to post a basic table with the script that can be copy and pasted and the one set of objects that I had to change (along with instructions of course). I've had a few people now ask me so I would prefer to distribute in a method that is approved by oooPlayer1ooo or in line with rules. There were a few areas in the script / routines so section by section would be a little complex than just a complete rip and replace (select all / paste) type thing but that may be more against policy without his permission / blessing.
I'll send him a PM right now.
I'll send him a PM right now.
#32
Posted 07 July 2012 - 09:59 PM
PinScreenGen - Automatically Create Playfield Images, Backglass Images and XML for Hyperpin (Future Pinball and Visual Pinball)
PinJukeLaunch - Moves DWJukeBox to Backglass (2nd or 3rd monitor) and can change wallpaper on launch
PinHyperMatrix - Generates HTML report of missing Hyperpin Media, UVPs, B2Ss, etc.
<<<< Virtual Pincab >>>> . . . . .<<<< Mame Bartop >>>> . . . . .<<<< Stuttering Cure - lamptimer >>>> . . . . .<<<< DMD Performance Boost - ddraw >>>>
PinJukeLaunch - Moves DWJukeBox to Backglass (2nd or 3rd monitor) and can change wallpaper on launch
PinHyperMatrix - Generates HTML report of missing Hyperpin Media, UVPs, B2Ss, etc.
<<<< Virtual Pincab >>>> . . . . .<<<< Mame Bartop >>>> . . . . .<<<< Stuttering Cure - lamptimer >>>> . . . . .<<<< DMD Performance Boost - ddraw >>>>
#33
Posted 07 July 2012 - 10:17 PM
QUOTE (JAM0 @ Jul 7 2012, 10:24 AM) <{POST_SNAPBACK}>
Thanks Koadic for this "great find" as JP says!
Tried it out on Checkpoint FS -- got some improvement but table still unplayable for me; obviously there is something else also going on with this table.
Looking forward to trying it out on other tables!
Tried it out on Checkpoint FS -- got some improvement but table still unplayable for me; obviously there is something else also going on with this table.
Looking forward to trying it out on other tables!
Checkpoint uses a different / older lighting update mechanism and would need an overhaul into how the lights are handled before it could really benefit from the change to the alpha ramp aspects. As it stands they're essentially getting called way too frequently using the PinMAME handling / timer. Saw the same thing you did after playing around with it for a bit today but also can see why in the script this is not going to work much better without major changes to the lighting / flasher scripting.




Top

Contributor









.png)

















are all trademarks of VPFORUMS.