I have noticed that zaggash build of RetroArch (http://sourceforge.net/projects/zaggxbmcaddons/?source=typ_redirect) creates a emulator folder in storage (/storage/emulators/RetroArch) when you run RetroArch for the first time and im trying to figure out why Lordashram’s build doesnt do this, any ideas??
I though I had mentioned before that you need to run rgui.sh after installing my builds as it configures everything needed to use my build after installing the addon.
I am working on updating my build right now, personal life has been very crazy these past few months leaving me very limited time on the pc though I did manage to get a couple of git commit submitted I just didn’t have the time to work on this.
RetroArch-2015-04-11 Updatted: default.py to launch in OpenElec [komadori] Updatted: retroarch.sh & rgui.sh to launch RetroArch faster [gark81] Updated: RetroArch
Thanks for the update Lordashram!!!. Hopefully you’ll get on top of your health issues real soon, all the best!!
EDIT: Sadly the cg based shaders still cause RA to crash so for the time being we’ll have to use glsl based shader (OpenGL). Ive uploaded the latest glsl shaders below for anyone who wants them…
With GLSL shader you cant alter the Parameters on the fly via the shaders menu like you can with the cg based shaders however.
Also Lord im wanting to add my ‘overlays’ folder to your zip file, i have added the actual folder and edited the retroarch.cfg file to point to the overlays at “/storage/emulators/retroarch/overlays” but what command do i need to add to the rgui.sh or retroarch.sh file (which one do i need to edit) so that when i start rgui the first time it copies the ‘overlays’ folder over to the /emulators/retroarch folder??
@BlockABoots, I just need to update “retroarch.cfg” so that it uses “/storage/emulators/retroarch/overlays” in the first place, that is an over site on my part. You shouldn’t have to do anything other than have your files in that location. I will do this on the next update.
rgui.sh does two things: update the files if they are in the “~/.kodi/addons/emulator.retroarch/” location and make any needed changes so RetroArch is set to the correct environment. launch RetroArch UI without laumching into a game
Thanks Lord.
Im having an issue with the audio as well, now im not sure if this is related to this latest update of Retroarch, version 5.0.8 of OpenElec or my new Intel NUC system ive got. Basically im getting no audio at all from RA if i have the correct Audio out device selected (both in RA and in the system settings in Openelec) but do get audio in RetroArch if i select the wrong audio output device in the settings in openelec, only downside with this is then i get no Audio in Kodi what so ever!!
In the OpenElec Audio Input Settings (System>Settings>System>Audio Input) if i select the ‘Audio output device’ as the correct output device, mines listed as…
HDA Intel, SNY Sony TV On HDMI #0 (as its connected to my Sony TV atm)
and load RetroArch i get no audio from retroarch at all.
Now if i got back to the OpenElec Audio output settings and change the ‘Audio Output device’ to anything other than the setting above, the options i have are…
HDA Intel, HDMI #1 HDA Intel, HDMI #2 HDA Intel, PCH, ALC283 Analog
If i select anyone of those then i get audio from RetroArch. Its as if Openelec can deal with have the audio enabled for kodi whilst also dealing with the audio from RetroArch its either on or the other!. Could this be an issue with this latest update of RA?
I’m really not sure, what happens when you use the previous binary (just the binary not any of the older .sh scripts)?
Well i completely uninstalled the ‘RetroArch-OpenElec-x86_64-2015-04-11’ version and installed the previous version, ‘RetroArch-OpenElec-x86_64-2015-01-21’ and the audio works fine when im selecting the correct Audio output device in OpenElec/Kodi (HDA Intel, SNY Sony TV On HDMI #0). If i delete the ‘Bin’ folder and replace it with the ‘Bin’ folder from your latest version (RetroArch-OpenElec-x86_64-2015-04-11) and then run…
‘/storage/.kodi/addons/emulator.retroarch/bin/rgui.sh’
im getting no audio again, so it looks like its something in one of the .sh files that causing the issue!
RetroArch-2015-04-24 Fixed: Overlays path in retroarch.cfg Updated: RetroArch
@BlockABoots, then try this: In both .sh files revert this:
pgrep kodi.bin | xargs kill -SIGSTOP
sleep 1
$ADDON_DIR/bin/retroarch -c $ADDON_FILES/config/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so "$2" &
while [ $(pidof retroarch) ];do
usleep 200000
done;
rm /var/lock/kodi.disabled
pgrep kodi.bin | xargs kill -SIGCONT
back to this and let me know:
touch /var/lock/kodi.disabled
systemctl stop kodi
$ADDON_DIR/bin/retroarch -c $ADDON_FILES/configs/retroarch.cfg $EXTRAFLAG -L $ADDON_CORES/$1_libretro.so "$2" &
pid=$!
while kill -0 $pid >/dev/null
do
usleep 200000
done
rm /var/lock/kodi.disabled
systemctl start kodi
Tried the above suggestion and when i launch retroarch via the rgui.sh it just resets kodi
EDIT: ok theres a typo in your command you have listed the folder config as configs with an ‘s’ on the end.
Now when run, /storage/.kodi/addons/emulator.retroarch/bin/rgui.sh i get these error messages…
RetroArch: rarch_log_libretro: [libretro INFO] :: Frontend supports RGB565 - will use that instead of XRGB1555. /storage/.kodi/addons/emulator.retroarch/bin/rgui.sh: line 64: -L: not found sh: can’t kill pid 1170: No such process
If i run, /storage/.kodi/addons/emulator.retroarch/bin/retroarch --config /storage/emulators/retroarch/config/retroarch.cfg --menu
then i still get the audio driver error message…
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver. RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize… RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
Plus shaders are still not working!
what happened to the auto detect core function when a rom was selected from content folder?
edit - disregard I was able to figure out that i needed to setup the path options again and all is fine.
Hello,
at the moment is use openelec 5.0.8 64bit on my zbox. Which version should i use for retroarch from the link of the first site? How should i install this Version?
Hope someone can help me?
So much changes and dont know what should i do?
Thx
marcos
@BlockABoots, It looks like I may need to update my build system as it may have become out of date for latest OE.
@marcos79, You should be able to download the zip file, copy to your Downloads folder in OE, and from the addons menu do an install from zip and point OE to your Downloads folder.
Nice, ill look forward to the update!
RetroArch-2015-05-23 Added; Cheats & Database Updated: Toolchain to OpenElec 5.0.8 Updated: RetroArch
@BlockABoots,I don’t know if it might help but I now remember when I was testing RA on OE a few months back on my wife’s laptop I had to change the audio device to 0,0 but back in December I remember having to use different device numbers.
I’ll test out and let you know later today. The odd thing was that the older .sh files from your December 2014 and January 2015 builds made the Audio work fine when I replaced them with the ones from your April build…so not sure if it is related to audio device setting or some script line in your newer .sh files are killing the audio driver on RetroArch??
Any progress on getting the shaders working at all or do they still terminate RetroArch when you try and run them?
Sadly audio still is not working. At the moment im just running RetroArch via the rgui.sh from the ‘Programs’ tab in OpenElec (Kodi), i tried leave the Audio Device at 0,0 and got no audio and then changed it to my actual audio device which is 0,3 and still no audio!.
In Terminal program i type the command ‘aplay -l’ and got the following info…
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
So my audio device is definitely HW:0,3.
There must be a line in the rgui.sh file thats killing the audio for RetroArch which isnt in your older builds (DEC/JAN)???
Also the cg shaders still kill RetroArch any ideas on whats causing that?
EDIT: Ok i try running RetroArch via terminal to see if it was just an issue loading it via the rgui through ‘Programs’ in OpenElec. So in terminal i ran the command…
/storage/.kodi/addons/emulator.retroarch/bin/retroarch --config /storage/emulators/retroarch/config/retroarch.cfg --menu
and all terminal reported was…
sh: xdg-screensaver: not found
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver.
and the audio did indeed work!!. But then i tried running RetroArch again but this time i got the following info via terminal…
sh: xdg-screensaver: not found
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver.
RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize...
RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
and got no audio!!!, so not sure whats happening???
EDIT2: I restarted OpenElec to see if that would help, ran RA from terminal got the same error message about failing to initalize the audio driver. Quit RA and tried running again via Terminal this time it worked, have tried in numerous times now and it seems to be working now, so it just seems to be an issue with the rgui.sh file then?
Hopefully the shader issue can be fixed as this has been broken for the past 3 or 4 releases
I’m finally about done with my setup using OpenELEC and RetroArch on Raspberry Pi 2. Check it out