Code Monkey home page Code Monkey logo

visual-pinball's Introduction

Visual-Pinball

Visual pinball & associated software, my mods/scripts settings.

PinballY

  • Main.js PinballY entry point calls other scripts

  • AttractFade.js Fade Playfield, DMD and Backglass with ~80% black overlay in attract, aka inactivity mode

  • AutoOff.js Automatic system shutdown after a period of inactivity in attract mode

  • Filter.js Use Magnasave buttons to cycle through an arbitrary list of filters

  • FilterTop.js Filter top n tables of the currently selected filter. i.e. if 90s filter selected => filters top 10 90s tables, if Williams filter selected => filters top 10 Williams tables etc.

  • FlexDMD.js Enhanced from vbousquet's original to drive display sequence from an array. Includes options to vary the displayed information in sequences or randomly

  • DMDImage.js Stand alone script to generate FlexDMD game images @ 128x32 from PBY DMD screenshots (mk1 algorithm). Scans the PBY DMD images folder for new or changed images

  • LaunchFade.js Fade the preview playfield with ~80% black overlay during game load

  • LaunchVideo.js Run '.mp4' or 'launch.mp4' on game launches (does not co-exist with LaunchFade)

  • Spin.js Use the plunger to spin the game wheel like a wheel of fortune

  • Startup.js Choose a random game from the 'startup' category and run it automatically

VPX

  • SSF.vbs
    • Automatically make PlaySoundAt work with objects that don't have .x , .y properties
    • Factor surround sound SSF into a separate scripts file
    • Standardise SSF code and make conversion/upgrade of tables easier (for me)
    • Common existing code like JP's ball rolling in one place
  • SSF2.vbs
    • SSF functionality with entry points focused on action required i.e. ssfBallHit, ssfBallRoll etc

Table Tweaks

  • Various adjusted scripts for specific tables
  • Flipperfootball.vbs: Updated flipper control to more closely match ROM activation, without slowing down response, especially at half/full time.

visual-pinball's People

Contributors

richardl64 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

visual-pinball's Issues

Dont show or play video when launch game

Hello.
Im using LaunchVideo.js script on my PinballY machine but something its going wrong.

I have the files into correct path: PinballY/Media/Launch Videos/nametable (manufacturer year).mp4

And log file show something like this: Playing White Water (Williams 1993) This video file exists, and if it doesnt, show Playing Launch, but any video appears ...

Any idea?

Thanks!

 

 

What im doing wrong?

Add delayed end to launchVideo

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):
function myGameStarted(ev) {
setTimeout(mainWindow.launchOverlay.bg.clear(0xff000000),3000);
}
But this appears to have zero effect. An alternative was just to comment out the gamestarted event hook entirely, which works fine except I think video continues running in the background somewhere which is a bit wasteful. And when you exit the table, the loading video briefly reappears again.

Any suggestions?

Spin.js: TypeError: Unable to get property 'setAxisRange' of undefined or null reference

Hi Richard,

thank you for that great work.
These scripts are really good ideas.

Unfortunately I get an error message at the Spin.js - the very best script in my opinion:-)
The pinbally log says:
[Javascript]: Uncaught exception:
TypeError: Unable to get property 'setAxisRange' of undefined or null reference
at Anonymous function (file:///myFolder\PinballY\Scripts\Spin.js:23:1)
at module (file:///myFolder\PinballY\Scripts\Spin.js:11:1)

Can you please have a look at?

The Filter.js is also great.
But don´t you need the magna saves to scroll between the tables?
Is there a way to change it to another button? Guess the "Control left / right" in the javascript has to be changed?

Thank you very much.

McNose

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.