-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PinballY Loading Videos #17
Comments
Take a look at the help under Javascript scripting > Worked Examples > "Seamless" Game Launch, particularly Playing an animated overlay near the end of the chapter. |
Tried that, but I get nothing. Followed to the letter… copy/past the code into my ‘seamless-launch’ script and have the import command in the main.js script.
Have a launch.gif as a test image and I get no results.
Something else I can try?
…Sent from my iPhone
On Sep 30, 2021, at 2:22 PM, mjrgh ***@***.***> wrote:
Take a look at the help under Javascript scripting > Worked Examples > "Seamless" Game Launch, particularly Playing an animated overlay near the end of the chapter.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Got a static video to load while waiting for the game to load buck still can’t seem to figure out how to script this so it changes the video based on the game that is loading. Any additional help is much appreciated!
Thank you
Scott
…Sent from my iPhone
On Sep 30, 2021, at 2:22 PM, mjrgh ***@***.***> wrote:
Take a look at the help under Javascript scripting > Worked Examples > "Seamless" Game Launch, particularly Playing an animated overlay near the end of the chapter.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Still hunting for ideas for this. any guidance would be appreciated
…Sent from my iPhone
On Sep 30, 2021, at 2:22 PM, mjrgh ***@***.***> wrote:
Take a look at the help under Javascript scripting > Worked Examples > "Seamless" Game Launch, particularly Playing an animated overlay near the end of the chapter.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Found a loading video script and added that as an import to main.js. I do not receive errors in the PinballY.log but still do not get any videos.. any ideas? |
Here you go - runs game specific video if it exists or launch video if not from pinbally/media/videos folder. https://github.com/RichardL64/Visual-Pinball/blob/main/PinballY/LaunchVideo.js |
I have zero javascript knowledge so forgive me if this is a stupid question, but I wanted to introduce a delay to the video stop event to account for the fact that even once VPX has started, nothing appears on screen for a few more seconds, and i want the loading video to continue to be visible for that time. My attempt was to change the myGameStarted function to the following (for a 3 second delay): Any suggestions? |
Hi - apologies for not replyng earlier...
Another thing to try is moving the code into its own function, with some logging so you can see what happens in pinballY.log - and perhaps test with a huge delay to make it obvious its working? I seem to remember brackets after the function make JS call it immediately - so your code above actually shuts down the window right away when what you want to do is pass the function name to the timer - so the following may work (note stopVideo has no brackets after it in the setTimeout call) function myGameStarted(ev) { function stopVideo() { |
Is it possible to create a script for PinballY that uses Loading videos for each game like PinballX currently can do?
The text was updated successfully, but these errors were encountered: