Damn ! Great Retroarch feature I totally missed.
-
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
-
@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. -
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).
-
@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
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.