RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Damn ! Great Retroarch feature I totally missed.

    Scheduled Pinned Locked Moved Ideas and Development
    retroarch
    4 Posts 3 Posters 884 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SanoS
      Sano
      last edited by Sano

      Hello,

      Following a @mediamogul post, I spent a few minutes on Retroarch Wiki, and seen THIS :
      https://github.com/GregorR/RetroArch/wiki/Network-Commands
      https://buildbot.libretro.com/.docs/tech/network-control-interface/
      I totally missed this feature.

      I often looked for a simple way to interact with running games, without finding a solution.
      Here are some scripts I wanted to code, but could not find a way to properly interact with retroarch :

      • pause game when controller disconnects (out of battery)
      • take screenshot every n seconds
        Etc...

      Now I just have to activate the Network Control Interface, maybe add an iptable rule to limit incoming traffic on this port from localhost and my computer, an I have a very simple way to do what I was looking for.
      This will greatly simplify some of my existing scripts, too.

      Hope I'm not the only one who wasn't aware of this, and that this could help people here.

      Edit : tagging a few guys that could be interested : @meleu @pjft @cyperghost

      RionR 1 Reply Last reply Reply Quote 2
      • RionR
        Rion @Sano
        last edited by

        @sano I did not know about this.
        You could probably just setup an SSH client on your phone. Mapp these command to some kind of shortcuts.

        FBNeo rom filtering
        Mame2003 Arcade Bezels
        Fba Arcade Bezels
        Fba NeoGeo Bezels

        1 Reply Last reply Reply Quote 0
        • chipsnblipC
          chipsnblip
          last edited by

          nice find, have you tested it much? if they aren't already aware of it, this should definitely be made known to any web interface/manager/console developer (i don't use them personally).

          SanoS 1 Reply Last reply Reply Quote 0
          • SanoS
            Sano @chipsnblip
            last edited by Sano

            @chipsnblip
            Yes I tested it and it works perfectly :)

            When I edited the retroarch.cfg I also found a stdin_cmd_enable option, so it should be possible to do the same without opening network ports, but I couldn't find the corresponding documentation.

            Edit : First use case here https://retropie.org.uk/forum/topic/10811/pause-when-controller-disconnects

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.