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

    Custom Scripts in Emulation station arguments

    Scheduled Pinned Locked Moved Help and Support
    custom scriptsemulationstaton
    4 Posts 3 Posters 1.1k 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.
    • M
      MiroKostovBG
      last edited by

      Hello guys.

      Pi Model or other hardware: (RaspberryPi 4B 2GB)
      Power Supply used: (official Raspberry Pi power supply)
      RetroPie Version Used (4.8 RPI 4/400):
      Built From: (Raspberry PI imager v1.7.5)
      USB Devices connected: Two 8bitDo SN30 controllers connected with USB.
      MicroHD devices: Two Arzopa portable monutors Gamut G1.

      Where can I read how to use the arguments provided by the custom scripts in emulation station for example we have this in the documentation but the section is quite thin for a noobie like me:

      game-start before starting a game %rom_path% %rom_name% %game_name%

      So how can I use those within the script that I would like to run?

      Thank you in advance.

      M 1 Reply Last reply Reply Quote 0
      • M
        MiroKostovBG @MiroKostovBG
        last edited by

        Actually after more searching I found this guide and I answered my questions but I see a difference between the retropie documentation and the one here : https://gitlab.com/es-de/emulationstation-de/-/blob/master/INSTALL.md#custom-event-scripts

        In the latter there game-end event passes the rom arguments while in retropie documentation about it those arguments are missing and naturally I cannot pass those arguments. Am I doing something wrong or this is expected behavior ?

        Is there a way to pass which game I'm ending as an argument from the game-end event

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

          In the latter there game-end event passes the rom arguments while in retropie documentation about it those arguments are missing and naturally I cannot pass those arguments. Am I doing something wrong or this is expected behavior ?

          Yes, it's the expected behavior - you're referencing a different EmulationStation fork, not the one used by RetroPie, and they're not the same program.

          1 Reply Last reply Reply Quote 1
          • H
            hopwon
            last edited by

            Check the docs for runcommand_onstart.sh, runcommand_onlaunch.sh, runcommand_onend.sh

            These are for pre/post game activities and the docs tell you which cli options are passed to them.

            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.