Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: Tocinillo on March 29, 2016, 11:26:16 AM

Title: Scripting in GNU/Linux
Post by: Tocinillo on March 29, 2016, 11:26:16 AM
Hi!

First of all congrats for this amazing job ;)

I used from years RCB as frontend and now I want to use Attract mode but I have a problem. I need launch script BEFORE the execution; that's need for a few emulators that requires antimicro/qjoypad with custom profiles. So in my setup I use this command in RCB:

Exec: /usr/bin/libretro
Args: -L /usr/lib/libretro/mednafen_psx_libretro.so "%ROM%"
Prescript: qjoypad "PSX"

If I try in terminal, works like a charm:

/usr/bin/libretro -L /usr/lib/libretro/mednafen_psx_libretro.so "/media/htpc/Emuladores/PSX/CB3.cue" & qjoypad "PSX"

In Attract Mode I tried everything, but I can't add my custom script. Without it, everything works lovely.

Can someone helps me?

Thanks again ;)
Title: Re: Scripting in GNU/Linux
Post by: hermine.potter on March 29, 2016, 12:38:31 PM
Does it work with:
-L /usr/lib/libretro/mednafen_psx_libretro.so "[romfilename]"  & qjoypad "PSX"
Title: Re: Scripting in GNU/Linux
Post by: Tocinillo on March 30, 2016, 03:26:41 AM
Hi,

No, It's not working. Attract mode launch the game correctly, but not qjoypad (and I can't see the PID in the terminal with: ps cax | grep qjoypad)

Regards.
Title: Re: Scripting in GNU/Linux
Post by: akafox on March 31, 2016, 08:55:20 AM
I take it that you are you linux based? Looks like you a loading a software key encoder? (qjoypad) Try using antimicro see if it helps.

Is this script the same for all games or is it different for certain games?