RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    Adding a new emulator for recording Retropie 4.4.2

    Scheduled Pinned Locked Moved Help and Support
    recordingretropie 4.4.24.4.2
    6 Posts 4 Posters 786 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.
    • G
      geneworld
      last edited by

      Hey guys I am running into an issue when it comes to Adding a new emulator option for the SNES.

      I have it set up to record my game play, i created a config file in /home/pi/RetroPie/recording/config.cfg
      with

      format = matroska
      threads = 3
      vcodec = libx264rgb
      video_preset = ultrafast
      video_tune = animation
      pix_fmt = rgb24
      video_qp = 0
      acodec = flac

      From the commandline I can run the following and it works!
      /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_$(date +%Y-%m%d-%H%M%S).mky --recordconfig /home/pi/RetroPie/recording/config.cfg /media/scandisk_128Gb/roms/snes/~Hacks/JOY\ OF\ KAIZO \1.5.1.smc

      However, when I edit /opt/retropie/configs/snes/emulators and add in:

      lr-snes9x2010-record = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_$(date +%Y-%m%d-%H%M%S).mky --recordconfig /home/pi/RetroPie/recording/config.cfg %ROM%"
      and
      default = "lr-snes9x2010-record

      Nothing happens. I go to load a game and the screen loads like it normally does, showing the "press any key to enter config" then it drops me back into the rom selection menu.

      I'm trying to figure out what is wrong? The commands are identical. Is there something i'm missing when i have to edit emulators.cfg?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        My guess is because of the Date part in the '-record' argument. Look in the log - /dev/shm/runcommand.log - to see the error.

        1 Reply Last reply Reply Quote 0
        • G
          geneworld
          last edited by

          Oh Yeah I'm not sure why I haven't checked that, here's what I get:

          nano /dev/shm/runcommand.log

          Parameters: 
          Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_\$(date +%Y-%m%d-%H%M%S).mkv --recordconfig /home/pi/RetroPie/recording/config.cfg "/media/scandisk_128Gb/roms/snes/~Hacks/Kaizo Mario World.smc" --appendconfig /dev/shm/retroarch.cfg
          
          /opt/retropie/supplementary/runcommand/runcommand.sh: eval: line 1008: syntax error near unexpected token `('
          
          /opt/retropie/supplementary/runcommand/runcommand.sh: eval: line 1008: `/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg --record /media/scandisk_128Gb/retropie/recording/SNES_\$(date +%Y-%m%d-%H%M%S).mkv --recordconfig /home/pi/RetroPie/recording/config.cfg "/media/scandisk_128Gb/roms/snes/~Hacks/Kaizo Mario World.smc" --appendconfig /dev/shm/retroarch.cfg'
          

          So maybe it has to to with the date part? Is there anyway to add the date timestamp to these recordings?

          BuZzB 1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators @geneworld
            last edited by

            @geneworld not via emulators.cfg - you would need to modify runcommand and add support for some custom %DATE% token.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            1 Reply Last reply Reply Quote 0
            • D
              DromoroK
              last edited by

              Hello

              Did you manage to get this working with the Date variable in any way? Looking and looking but cant's seem to find a way. Not sure which "runcommand" script or function should I modify and how is the variable passed.

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @DromoroK
                last edited by

                @DromoroK Please don't necro-post by bumping old topics. Open a new topic instead and explain what you're trying to do, maybe adding a reference to this old topic if it's related to your question.
                Thank you.

                1 Reply Last reply Reply Quote 0
                • mituM mitu locked this topic on
                • 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.