Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

[SOLVED] how to add something to RetroPie menu?



  • How can I add a command to the RetroPie menu? Is there a wiki explaining it?

    I saw in the es_systems.cfg that emulationstation should display the *.sh files in ~/RetroPie/retropiemenu, but I put my script there and it wasn't displayed.


  • administrators

    Should show up files with .sh extension - did you restart ES ?



  • Edit the file /etc/emulationstation/es_systems.cfg and copy one of the entries. They look like:

    <system>
        <name>amiga</name>
        <fullname>Amiga</fullname>
        <path>~/RetroPie/roms/amiga</path>
        <extension>.sh .SH</extension>
        <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ amiga %ROM%</command>
        <platform>amiga</platform>
        <theme>amiga</theme>
    </system>
    

    Replace the command that is between the <command> tags. And point to the proper ROM location betwwen the <path> tags etc. In this case you'll probably end u w/ an extra Amiga entry in EmulationStation that will start another emulator.

    Good luck. :-)



  • @BuZz said in how to add something to RetroPie menu:

    Should show up files with .sh extension - did you restart ES ?

    Yes, i did. I restarted the ES, and after I restarted the entire system.

    First I put a symbolic link to my shell, it didn't work. And then I put the real shell script, it didn't work. Check my RetroPie/retropiemenu/:

    pi@retropie:~ $ ls -l RetroPie/retropiemenu/
    total 8
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 audiosettings.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 bluetooth.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 configedit.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 esthemes.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 filemanager.rp
    drwxr-xr-x 2 pi pi 4096 Apr 14 17:10 icons
    lrwxrwxrwx 1 pi pi   31 May 22 10:11 input_selection.sh -> /home/pi/bin/input_selection.sh
    -rwxr-xr-x 1 pi pi 3663 May 22 10:25 is.sh
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 raspiconfig.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 retroarch.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 retronetplay.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 rpsetup.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 runcommand.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 showip.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 splashscreen.rp
    -rw-r--r-- 1 pi pi    0 Apr 14 17:10 wifi.rp
    

  • administrators

    Have you changed any options in ES - eg, Parse Gamelists Only?



  • @BuZz said in how to add something to RetroPie menu:

    Have you changed any options in ES - eg, Parse Gamelists Only?

    BINGO!!! thanks man!!!


  • administrators

    Parse Gamelists Only: If on, it will only read the roms you have scraped, so if you add any new roms it will not look for them unless you turn this back off. it is off by default.

    :-)



  • let me ask another question:
    How can I add a description of my script to show in RetroPie menu?


  • administrators

    same as for games

    edit /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml

    https://github.com/RetroPie/RetroPie-Setup/wiki/scraper



  • When i try to add prboom to my menu(so i can have my doom stuff as a seperate system) its let me add it, but when i try to run it, it says there is no config for it? Is there a certain way to make a config for it?



  • @cyberneticwired I think I struggled with a similar problem, and then I realized that the executables invoked from retropie menu is done with root user.
    That's why the scripts wasn't finding the $HOME files.
    Maybe this is your problem.



  • I'm using WinSCP to access my retropie, as the root user to go into the file systems..to be completely honest I have never built a script before so i could be doing it completely wrong.



  • I got the games to launch now..but i have no control settings so im guessing i have to go back and add controls to prboom :/


Log in to reply
 

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.