Author Topic: Attract Mode vs Retroarch question  (Read 6625 times)

ZarathustraDK

  • Newbie
  • *
  • Posts: 9
    • View Profile
Attract Mode vs Retroarch question
« on: March 11, 2016, 10:28:27 AM »
So I've loaded Retropie up on an SD-card, installed the mame libretro-cores (2003 and 2010) installed LXDE and compiled Attract Mode and got it working.

Now I'm stuck at configuring libretro in AM's menu, I've got:
Code: [Select]
Executable : /opt/retropie/emulators/retroarch/bin/retroarch
Commandline Arguments : -L /opt/retropie/libretrocores/lr-mame2010/mame2010_libretro.so [romfilename]
Rompaths : $Home/pi/RetroPie/roms/mame-libretro/
Extensions : ZIP,7z,DIR

For some reason this setup forgets to add fileextensions to the end of the parsed line when run, so when I run Bubble Bobble I get:
Code: [Select]
/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2010/mame2010_libretro.so /home/pi/RetroPie/roms/mame-libretro/bublbobl
Instead of what I should have gotten:

Code: [Select]
/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2010/mame2010_libretro.so /home/pi/RetroPie/roms/mame-libretro/bublbobl.7z
I've also tried just adding the ".7z" after the [romfilename] in the commandline arguments. This seems to create the correct launch-command, but it still fails with a "rom not found". OTOH, if I run the command from a terminal (in X) outside AM, then the rom loads correctly.

Am I going about this completely wrong or...?

Brewski

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #1 on: March 11, 2016, 10:40:41 AM »
I'm not to sure if this is your issue but on OS X I have quotes around the [romfilename] parameter.
"[romfilename]"
Maybe the quotes make sure the extension is included?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #2 on: March 11, 2016, 01:05:24 PM »
Correct, needs to be in quotes "[romfilename]" .

Here is my retroarch config for nes
posted from my pi2...

executable           /opt/retropie/emulators/retroarch/bin/./retroarch
args                   -L /opt/retropie/libretrocores/lr-nestopia/nestopia_libretro.so --config /home/pi/.config/retroarch/nestopia_libretro.cfg "[rompath][name][romext]"
rompath              /home/pi/RetroPie/roms/nes
romext               .nes;.unf;.unif;.fds;.zip;.rar;.7z
system               Nintendo Entertainment System (NES)
« Last Edit: March 11, 2016, 01:12:51 PM by omegaman »

ZarathustraDK

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #3 on: March 11, 2016, 02:59:57 PM »
"[rompath][name].7z" (with quotes) at the end seems to do the trick for libretro. (just a note, I don't seem to have the [romext] variable on my build for some reason so I just added the ".7z")

Ok, the rom loads, but my keybindings are messed up (I seem to have pressed arbitrary buttons for all the important stuff during the retropie setup). It asks for the "Type OK if you're a pirate". Where's the .cfg I can use to set...

...deez keys?


...alcohol is involved, it's friday :D

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #4 on: March 11, 2016, 03:22:15 PM »
I think it's here >  /home/pi/.config/retroarch

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #5 on: March 11, 2016, 03:39:46 PM »
Forgot to mention, and you might already know this. But, can rerun RetroPie-Setup to change configurations post install. 

cd RetroPie-Setup
sudo ./retropie_setup.sh

Setup / Configuration post install

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Attract Mode vs Retroarch question
« Reply #6 on: March 13, 2016, 12:06:58 PM »
I'm not to sure if this is your issue but on OS X I have quotes around the [romfilename] parameter.
"[romfilename]"
Maybe the quotes make sure the extension is included?

That is there to cover spaces.. C:\fusion.exe\roms\Sonic the Hedgehog.zip is C:\fusion.exe\roms\Sonic.zip to the command line C:\fusion.exe\roms\"Sonic the Hedgehog.zip" is C:\fusion.exe\roms\Sonic the Hedgehog.zip to the command line. The quotes tell the computer it's "one word"
« Last Edit: November 21, 2016, 04:28:03 PM by akafox »
People want life easy..then complain about it