RETROBAT Official Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

3 posters

Go down

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Empty How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

Post by bilu 02/02/23, 11:10 pm

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 Wink

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 Wink


Last edited by bilu on 08/02/23, 10:57 pm; edited 6 times in total
bilu
bilu

Messages : 36
Date d'inscription : 2020-10-11

Lorenzolamas and getupor like this post

Back to top Go down

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Empty Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

Post by getupor 02/02/23, 11:19 pm

Hello Bilu, thanks for this post 😉
Hope that we got some returns from users.


How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Modo
getupor
getupor
Admin

Messages : 1117
Date d'inscription : 2020-10-04

bilu likes this post

Back to top Go down

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Empty Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

Post by bilu 07/02/23, 08:15 pm

Script edited to handle double quotes and ROM names with multiple spaces.
bilu
bilu

Messages : 36
Date d'inscription : 2020-10-11

getupor likes this post

Back to top Go down

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Empty Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

Post by wtstreetglow 23/10/23, 10:10 pm

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!!
wtstreetglow
wtstreetglow

Messages : 80
Date d'inscription : 2022-01-30

Back to top Go down

How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc) Empty Re: How-to: RetroBat integration for any marquee software (LEDBlinky, Bitlcd, etc)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum