Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: ZarathustraDK on March 11, 2016, 10:28:27 AM

Title: Attract Mode vs Retroarch question
Post by: ZarathustraDK 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...?
Title: Re: Attract Mode vs Retroarch question
Post by: Brewski 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?
Title: Re: Attract Mode vs Retroarch question
Post by: omegaman 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)
Title: Re: Attract Mode vs Retroarch question
Post by: ZarathustraDK 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?
(https://i.ytimg.com/vi/5LlQNty_C8s/hqdefault.jpg)

...alcohol is involved, it's friday :D
Title: Re: Attract Mode vs Retroarch question
Post by: omegaman on March 11, 2016, 03:22:15 PM
I think it's here >  /home/pi/.config/retroarch
Title: Re: Attract Mode vs Retroarch question
Post by: omegaman 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
Title: Re: Attract Mode vs Retroarch question
Post by: akafox 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"