How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)
3 posters
Page 1 of 1
How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)
DISCLAIMER: How you configure your banner software is entirely your responsibility. This post provides the means to retrieve the probable marquee (based on rom filename) that you can integrate in your banner software, but I have no interest in investigating that part on your behalf
RetroBat supports triggering EmulationStation events, just create .bat scripts in the subfolders of
C:\RetroBat\emulationstation\.emulationstation\scripts\game-start
C:\RetroBat\emulationstation\.emulationstation\scripts\game-end
2) Similar to https://retropie.org.uk/docs/EmulationStation/#scripting (although implementation doesn't match 100%), only game-start events receive parameters on launch, e.g.
For a minimum "mansplaining" (lol) on batch file arguments, %0 is the command line itself (how the batch file was called), %1 is the first argument passed to the batch file and so on.
For marquee scripts the parameter %3 can be used to display the game name "'H' NBA Jam", or %2 "nbajam" could somewhat be used to display resources though there is no specific variable for system, so you'd need to parse this from %1 ""C:\RetroBat\roms\arcade\nbajam.zip""
The example batch file below generates the probable path (assuming it matches rom filename) for the wheel art, in this case "C:\RetroBat\roms\arcade\wheel\nbajam.png" . Feel free to adapt this to fit whatever banner software you want to use.
C:\RetroBat\emulationstation\.emulationstation\scripts\game-start\test.bat
3) You'll probably need an event on the game-end folder to clear the banner
RetroBat supports triggering EmulationStation events, just create .bat scripts in the subfolders of
C:\RetroBat\emulationstation\.emulationstation\scripts\game-start
C:\RetroBat\emulationstation\.emulationstation\scripts\game-end
2) Similar to https://retropie.org.uk/docs/EmulationStation/#scripting (although implementation doesn't match 100%), only game-start events receive parameters on launch, e.g.
- Code:
"C:\RetroBat\emulationstation\.emulationstation\scripts\game-start\test.bat" ""C:\RetroBat\roms\arcade\nbajam.zip"" "nbajam" "'H' NBA Jam"
For a minimum "mansplaining" (lol) on batch file arguments, %0 is the command line itself (how the batch file was called), %1 is the first argument passed to the batch file and so on.
For marquee scripts the parameter %3 can be used to display the game name "'H' NBA Jam", or %2 "nbajam" could somewhat be used to display resources though there is no specific variable for system, so you'd need to parse this from %1 ""C:\RetroBat\roms\arcade\nbajam.zip""
The example batch file below generates the probable path (assuming it matches rom filename) for the wheel art, in this case "C:\RetroBat\roms\arcade\wheel\nbajam.png" . Feel free to adapt this to fit whatever banner software you want to use.
C:\RetroBat\emulationstation\.emulationstation\scripts\game-start\test.bat
- Code:
@echo off
set args0='%*'
set args1=%args0:"=~%
for /F "tokens=2 delims=~" %%G in ("%args1%") do (set rom_path=%%~dpG& set rom_name=%%~nG)
set game_wheel="%rom_path%images\%rom_name%-marquee.png"
rem Line below is an example, can be replaced with custom action.
echo %game_wheel% > C:\wheelart_filename.txt
3) You'll probably need an event on the game-end folder to clear the banner
Last edited by bilu on 08/02/23, 10:57 pm; edited 6 times in total
bilu- Messages : 36
Date d'inscription : 2020-10-11
Lorenzolamas and getupor like this post
Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)
Hello Bilu, thanks for this post
Hope that we got some returns from users.
Hope that we got some returns from users.
getupor- Admin
- Messages : 1422
Date d'inscription : 2020-10-04
bilu likes this post
Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)
Script edited to handle double quotes and ROM names with multiple spaces.
bilu- Messages : 36
Date d'inscription : 2020-10-11
getupor likes this post
Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)
Now only if I knew how to use this. +1 for adding Retropie style marquee support to retrobat. -1 because I don't have the talent to do it myself.
Thank you all for your awesome work however!!
Thank you all for your awesome work however!!
wtstreetglow- Messages : 115
Date d'inscription : 2022-01-30
Similar topics
» integration ledblinky partie bouton
» [TUTO] Marquee / Topper dynamique avec Retrobat
» Anyone have a solution for a second screen marquee with retrobat (homemade or 3rd party)
» What does RetroBat use on backend for video driver (software, d3d or opengl?)
» BitLCD Resolution Support?
» [TUTO] Marquee / Topper dynamique avec Retrobat
» Anyone have a solution for a second screen marquee with retrobat (homemade or 3rd party)
» What does RetroBat use on backend for video driver (software, d3d or opengl?)
» BitLCD Resolution Support?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum