Author Topic: Scripting in GNU/Linux  (Read 4797 times)

Tocinillo

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scripting in GNU/Linux
« 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 ;)

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Scripting in GNU/Linux
« Reply #1 on: March 29, 2016, 12:38:31 PM »
Does it work with:
-L /usr/lib/libretro/mednafen_psx_libretro.so "[romfilename]"  & qjoypad "PSX"
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

Tocinillo

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Scripting in GNU/Linux
« Reply #2 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.

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Scripting in GNU/Linux
« Reply #3 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?

People want life easy..then complain about it