GithubHelp home page GithubHelp logo

Comments (14)

freezy avatar freezy commented on June 7, 2024 1

I think I'll start with something static along those lines:

--idle-screen    Image displayed when no game is running. Either 
                 path to image file or "blank". Default: "blank".

This isn't trivial since I'll need to implement an "idle" event for every source.

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024 1

Yeah, why not. I got animated GIFs working now. Looking into using them as idle source now.

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024 1

image

Thank you very much!

It would be nice to be able to capture DMD animations as animated GIFs as well, but this is not critical for my use case ;)

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

If this is something you like I can sponsor it for $50 to you or the charity of your choice.

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

Would still love to have an idle event, since when we switch tables in TPA, the DMD stays on the last frame of the previous game which is .. not wanted.

I can up my donation to $100 to the charity of your choice if that helps!

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024

I'll see if I can maybe detect the end of a game in TPA directly but I wanted to fix some other issues first. Of course, you're always welcome to have a go at it yourself!

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

I think a generic idle is better; certainly when a DMD capable TPA game is active it is CONSTANTLY pinging and updating the DMD.. there are no exceptions I can think of?

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024

Okay, turned out to be fairly easy. For now it just clears the screen. There is a new option:

  --idle-after             Wait for number of milliseconds until clearing the
                           screen. Disable with 0. Default: 0.

I've tested it like this: dmdext mirror -s pinballarcade --idle-after 3000

Have a try with a test build and let me know if it works.

I'll add the idle-screen afterwards.

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

Hey awesome! Let me try it out. I suggest adding an idle picture before we go to the animation, as it is a logical 1st step.

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024

Well, don't hold you breath for animations. I've fiddled with some video formats before and basically unless you fully integrate ffmpeg or another decoding library it's really difficult to play animations with the correct timing.

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024

Okay, the options are now these:

  --idle-after             Wait for number of milliseconds until clearing the
                           screen. Disable with 0. Default: 0.

  --idle-play              Play this file while idleing instead of blank
                           screen. Supported formats: JPG, PNG, GIF. Animated
                           GIFs are supported.

dmdext-47.2.zip

Have a try! If it works I'll merge the PR.

from dmd-extensions.

coding-horror avatar coding-horror commented on June 7, 2024

This looks really good and works perfectly in my testing!! Tell me where you'd like the $100 donated to ;)

from dmd-extensions.

freezy avatar freezy commented on June 7, 2024

Glad to hear!

You can donate the $100 to the EFF. Cheers!

from dmd-extensions.

Related Issues (20)

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.