JCalhoun Posted April 13, 2024 Posted April 13, 2024 I waded into the script of a VPX table in order to try and enhance the sound code to be similar to the sounds I heard in other tables. At that time I was unable to find much on how all this stuff works and spent a good deal of time looking, cutting, pasting, and trying things. I thought I would document what I learned so that others might have a starting point or an on-ramp to VPX scripting. This is the first in a series on VPX scripting. As an example I use the VPX table, Teacher’s Pet for what I hope is a gentle introduction — geared to the person for whom scripting (and perhaps even programming itself) is new. VPX Scripting — Part 1
teisen Posted April 15, 2024 Posted April 15, 2024 Great work JC and very useful! This will make it much easier for those just starting out and for those who already know a little about VPX.... great initiative, thank you for your dedication and all your work hugs Teisen
JCalhoun Posted April 15, 2024 Author Posted April 15, 2024 VPX Scripting - Part 2 (Linting) is maybe a little dry, but is a quick read.
Cliffy Posted April 15, 2024 Posted April 15, 2024 this is fantastic stuff, not boring at all. Like you I prefer order and clean scripts
JCalhoun Posted April 19, 2024 Author Posted April 19, 2024 VPX Scripting — Part 3 (Cut & Paste) VPX Scripting — Part 4 (Pet Sounds)
Cliffy Posted April 19, 2024 Posted April 19, 2024 That does it. I'm gonna take a sabbatical and go to JCalhoun school
JCalhoun Posted April 22, 2024 Author Posted April 22, 2024 This post wraps up the sound scripting work on Teacher's Pet: VPX Scripting — Part 6 (End Sound) I'll have more posts in the future with additional work Teacher's Pet. (Likely EMUnderdogs will do some final polishing and we'll post it to VPU.)
goodtwist Posted February 13, 2025 Posted February 13, 2025 These are wonderfully written John. Thanks so much! I have one question if anyone knows it. Can you reference an outside VBscript file that can override a Sub or gets inserted in the running code? Occasionally I want to add a bit of code for my Firebutton to work as a Launch button. It's no big deal to assign a custom button map. It's just a few lines. When I update my tables I often have to update the script too. Then I have to find the button section and add the code again. It would be great if I could just reference another script at the top or bottom of the original table script. It seems like it would save me time. https://www.vpforums.org/index.php?showtopic=45388 Maybe VPX has a method for this already. I export all my scripts into my tables folder. Does VPX already have a way to do small override for parts of scripts?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now