Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: Deku99 on December 13, 2025, 03:44:35 AM

Title: video as Loading screen before starting game
Post by: Deku99 on December 13, 2025, 03:44:35 AM
 I want a loading screen that plays before games, and the game starts parallel with it and also closes when the emulator process is detected.

So first, I tried the fadetogame plugin and used some images as a loading screen. It failed, as the emulator starts after the plugin ends.

Then I used the LaunchDecorator plugin and used a BAT script to play the VLC video. It worked, but there are many problems, as it does not exit as the emulator start, so I used different lengths of videos for different emulators, hoping they wouldn't play for too long or too short.

(Currently this is what I am using, but it's not robust, as all games take different times to launch.)

And last, I created a C# app that plays video as soon as it launches in fullscreen loop, and as soon as it detects the process, which is done by process name, the app auto-closes and fades. I tested it, and it was working individually but not working with attract mode same running with launchdecorator and using a BAT script, as it is non-blocking.

any suggestion or alternative The VLC method works great, but I want the video to quit as soon as the game loads.
Title: Re: video as Loading screen before starting game
Post by: zestful on January 09, 2026, 03:59:11 AM
The thing with the loading to game transitions is they fake the time in between selecting the game to load from attract mode, and the emulator starting.   You're already in attract mode, the code is just adding delays to show an entry graphic, before attempting to load the emulator