Posts by WH2O

    That works, thanks! Now I can select and launch a game in an IAGL list using RetroArch instead of Retroplayer! Of course, at the moment, when I exit RetroArch it dumps me into Kodi's main menu instead of taking me back to the IAGL list. So, not totally seamless. I wonder if I can fix that via IAGL Settings->Kodi launch options...

    :)

    Running the latest IAGL (4.03) on the latest LibreElec (21.2) on a Raspberry Pi 4. I can *almost* use RetroArch as an external launcher in a game list. Here's what I've done so far:

    OUTSIDE OF IAGL: Installed Retroarch on LibreElec 21.2 following your instructions and confirmed I can launch Retroarch (as a system.d service) from LibreElec. I can even launch Retroarch with hard-coded arguments (i.e. I can specify a core name and rom name in a conf file that the service will use). My system.d service "retroarch.service" looks like this:

    [Unit]
    Description=Retroarch
    After=network-online.target graphical.target
    Requires=graphical.target
    Wants=network-online.target

    [Service]
    EnvironmentFile=/storage/retroarch/retro.conf
    ExecStartPre=systemctl stop kodi
    ExecStart=/storage/retroarch/retroarch ${ARG1} ${ARG2} ${ARG3}
    ExecStopPost=systemctl start kodi
    TimeoutStopSec=10
    Restart=no
    StartLimitInterval=0
    LimitNOFILE=16384

    [Install]
    WantedBy=kodi.target

    The arguments above (ARG1, ARG2, and ARG3) are populated from "retro.conf" which looks like this:

    KODI_AUDIO_ARGS=--audio-backend=alsa+pulseaudio
    HOME=/storage
    KODI_TEMP=/storage/.kodi/temp
    KODI_HOME=/usr/share/kodi/
    ARG1=-L
    ARG2=/storage/retroarch/cores/cap32_libretro.so
    ARG3=/storage/.kodi/userdata/addon_data/plugin.program.iagl/game_cache/Amstrad CPC/2 Player Soccer Squad (1986)(Cult Games).dsk

    In the above conf file, I specified the Caprice core in ARG2 and a soccer game in ARG3.

    INSIDE OF IAGL: If I go into a list and manually specify an external launch command (systemctl start retroarch), then launch a game, retroarch starts and runs the core/game that are hard-coded in ARG2 and ARG3 (Caprice and the soccer game).

    That's where I'm stuck. Instead of hard-coded ARG1 and ARG2, I can't figure out how to pass the core name and rom name from IAGL to the retroarch "service". Any ideas?

    Brilliant way to get RetroArch working under Libreelec! I can launch RetroArch by clicking on the Kodi favorite that launches the Python wrapper that launches the RetroArch service... and RetroArch works! It feels like a breakthrough. So here's my question: Using your approach, is there a way to pass a core name and game name to Retroarch (to launch a specific game)? I'm asking because, ultimately, I want to take this one step further and launch Retroarch directly from IAGL (i.e. use Retroarch as an external launcher). I'm using LibreElec 12.0.2/Kodi 21.2 Omega, on a Pi 4.

    Running LibreELEC RR-20230215-6a5ed68 11.0 on RPi4, if I attempt to launch a MAME 2016 game via retroarch, using the MAME 2016 core (mame2016_libretro.so, which LibreELEC-RR installed in /tmp/emulation/retroarch/cores/), LibreELEC immediately reboots. The process to re-create this is as follows:

    1. From the main menu in LibreELEC, launch Retroarch.
    2. In Retroarch, use Load Content to load a known good MAME 0.174 ROM
    3. In Retroarch, launch the content using the MAME 2016 core

    LibreELEC reboots after Step 3 above.

    Having problems loading ANY add-ons from https://addons.libreelec.tv/10.80.12/ARMv8/arm... Worked fine just a couple days ago. Here are typical kodi.log messages...

    2023-02-20 10:42:37.594 T:1136 error <general>: CCurlFile::CReadState::FillBuffer - (0xd8a7a3c0) Failed: Couldn't connect to server(7)

    2023-02-20 10:42:37.594 T:1136 error <general>: CCurlFile::Open - <https://addons.libreelec.tv/10.80.12/ARMv8…ro-20.2.2.1.zip> Failed with code 0:

    2023-02-20 10:42:37.594 T:1136 error <general>: CAddonInstallJob[game.libretro]: failed to download special://home/addons/packages/game.libretro-20.2.2.1.zip

    2023-02-20 10:42:37.386 T:1136 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…ro-20.2.2.1.zip> Failed: Couldn't connect to server(7)

    2023-02-20 10:42:35.794 T:1132 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…bretro/icon.png> Failed: Couldn't connect to server(7)

    2023-02-20 10:42:34.091 T:1136 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…bretro/icon.png> Failed: Couldn't connect to server(7)

    2023-02-20 10:42:26.184 T:1135 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…s.sftp/icon.png> Failed: Couldn't connect to server(7)

    2023-02-20 10:42:21.773 T:1136 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…s.sftp/icon.png> Failed: Couldn't connect to server(7)

    2023-02-20 10:42:13.815 T:1134 error <general>: CCurlFile::Stat - <https://addons.libreelec.tv/10.80.12/ARMv8…ources/icon.png> Failed: Couldn't connect to server(7)

    2023-02-20 10:39:04.836 T:1000 error <general>: CCurlFile::Open - <https://addons.libreelec.tv/10.80.12/ARMv8…s.xml.gz.sha256> Failed with code 0:

    2023-02-20 10:39:04.836 T:1000 error <general>: CRepository: failed read 'https://addons.libreelec.tv/10.80.12/ARMv8…s.xml.gz.sha256'

    Tried a lot of different things including... the latest nightly LibreELEC build as well as the latest LibreELEC-RR (fork) build, a couple different Raspberry Pis, a PC, and changing to a different IP address.

    Any ideas?