- This topic has 2 replies, 2 voices, and was last updated 3 years, 1 month ago by Thalamus.
-
AuthorPosts
-
February 26, 2021 at 11:10 am #226215
Hi all. I’ve been trying to use some of the newly shared PBY scripts for things like meta filters and “two tables one wheel” as shared here: https://github.com/PinballY/PinballY-Addons-and-Examples?fbclid=IwAR1fa1K98VAcjBl0dTZykxdhLUNlctzM3AjSD0iRhPGxajvlTN2ucOQbXqQ
I’m following all the instructions and nothing seems to be happening. My main.js file has a fair bit of script in it already following the examples for seamless launch and FlexDMD’s PinballY plugin. Those customizations have worked beautifully. But anything that uses an import statement to pull a script into main.js seems to do nothing at all. I’ve even tried emptying out my main.js so it has nothing but the import statement, and still I don’t see any changes in PinballY’s menus.
Any ideas what might cause import statements to fail?
I’m downloading the required .js files, like meta_filter_tableType.js and saving them to my PinballY scripts folder right alongside my main.js file. I add the line import “meta_filter_tableType.js”; to my main.js, reopen PinballY and there’s no visible change to my menus.
I’m stumped.
You need to login in order to like this post: click here
February 26, 2021 at 12:00 pm #226225OK, I feel a little dumb, but maybe not too dumb because I at least figured out what I was doing wrong.
The issue was with how I was downloading files from GitHub. Somehow I was ending up with the html for the entire page, not just the .js script.
You need to login in order to like this post: click here
February 26, 2021 at 6:16 pm #226307Easy to do such a mistake. Use raw button or download a zip and extract for a complete collection and pick what you need.
- This reply was modified 3 years, 1 month ago by Thalamus.
You need to login in order to like this post: click here
-
AuthorPosts
Forums are currently locked.