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

    Some questions about retropie script modules

    Scheduled Pinned Locked Moved Ideas and Development
    retropiesetupscriptmoduledevelopment
    7 Posts 4 Posters 2.9k 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.
    • meleuM
      meleu
      last edited by

      I'm trying to write a custom script module to automate some steps to achieve what @RetroResolution instructs to enable RetroArch to record a gameplay. And then some doubts arose.

      1. Is there a way to show a script module in retropie_setup menu for a specific architecture only? In my specific case I want to show only when executing retropie_setup on raspi2 or 3.

      2. [Just a matter of curiosity] In the retroarch.sh for RetroArch installation there's a function build_retroarch that executes commands that are supposed to be called when the current working directory is a very specific one (./configure, make, etc.), but there's no cd command in the function. Obviously the script changes the working directory at some point, but where?
        I'm asking it because my custom scriptmodule needs to cd a couple of times to compile some codecs. It's pretty simple to record the current working dir in a variable before all the cd's and get back to that after the codecs compilations, but is it really necessary?

      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      vbsV 1 Reply Last reply Reply Quote 1
      • vbsV
        vbs @meleu
        last edited by

        @meleu said in Some questions about retropie script modules:

        1. Is there a way to show a script module in retropie_setup menu for a specific architecture only? In my specific case I want to show only when executing retropie_setup on raspi2 or 3.

        Yes you can do that. Take a look at uae4arm.sh, it does it also.

        rp_module_flags="!x86 !mali"
        

        That module is not available for x86 and mali and will not show up in "Manage Packages".

        meleuM 1 Reply Last reply Reply Quote 1
        • meleuM
          meleu @vbs
          last edited by

          @vbs Hmm... I have to explicitly put what architecture I want to NOT show. Then the next question: is there a flag list somewhere?

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          vbsV 1 Reply Last reply Reply Quote 0
          • vbsV
            vbs @meleu
            last edited by

            @meleu
            I think the best you can get as a list is the getPlatform function that determines the current platform:
            https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/system.sh#L150

            And this is where the package filtering based on the platform takes place:
            https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/packages.sh#L362

            As far as I can see it is working as a blacklist only, but not so sure, my "bashish" is too bad. :)

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

              as @vbs said - you can only "exclude" platforms etc.

              platform flags are

              arm armv6 armv7 armv8 neon mali x86 x11 rpi rpi1 rpi2 rpi3

              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 1
              • BuZzB
                BuZz administrators
                last edited by

                I missed out armv6.

                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
                • cyperghostC
                  cyperghost
                  last edited by cyperghost

                  I want to create a scriptmodule for OpenBOR to add version 6315. I see the flag rp_module_id="openbor" that makes the module visiable into script screen. To avoid confusion I want annother name like rp_module_id="openbor_6xxx but want to use the old pathes.

                  Now all instances of $md_id, $md_config... uses the name that is given by rp_module_id so how to change names? I can include a function strip () { }that sets internal variables to openbor but this is not good code. So how to achive this?

                  Again: the goal is to use one config directory and one directory that contains several versions of OpenBOR.

                  Besides thank you BuZz for the platforms flags, I may exclude 6xxx for rpi1.
                  Is there a dedicated WIKI about script modules?

                  1 Reply Last reply Reply Quote 0
                  • 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.