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

    Development of module-script generator for lr-mess, lr-mame and mame standalone

    Scheduled Pinned Locked Moved Ideas and Development
    developmentlr-messmamelr-mamescripts
    2.2k Posts 36 Posters 6.1m 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.
    • DTEAMD
      DTEAM @Folly
      last edited by DTEAM

      @folly

      good idea , sounds good!
      At the end, It must be simple for newbies . I think It should be the target

      F 2 Replies Last reply Reply Quote 0
      • F
        Folly @DTEAM
        last edited by Folly

        @dteam

        Indeed, we should make/keep it simple.
        Ok, tomorrow I have to go with the boat to an island.
        Then I have some time to make a summarize.
        Then we get back to @valerino if this is doable.

        1 Reply Last reply Reply Quote 1
        • V
          valerino
          last edited by valerino

          hi guys, sorry but today i've been very busy @ work !

          i think @DTEAM 's idea to integrate with existing mame/mess script is the cleaner .... no ?

          also in my fork i extended already present scripts with extra features when i needed, i.e. in some i added the option to install from source the most recent version from github instead of the branch officially supported by retropie, things like that.

          imho this is the clearer way ....

          v.

          F 1 Reply Last reply Reply Quote 0
          • F
            Folly @valerino
            last edited by Folly

            @valerino

            Ok, if you think the @DTEAM is the cleaner way, we can do it like that.
            I have only one concern.
            When a generated module-script is generated, RetroPie-setup will not directly see it.
            So normally I have to restart.
            Does it have a way of refreshing ?
            If there is no such option we could use retropie_packages.sh to install it directly after generation.

            V 1 Reply Last reply Reply Quote 0
            • F
              Folly
              last edited by Folly

              I copied generate-systems-lr-mess_mame-1v8-alpha.sh as generate-systems-lr-mess_mame-2v0-alpha.sh to my repository.

              I did this so we can make changes to that script which are possibly necessary to make our idea work.

              I already made some changes to the 2v0 script :

              • It will install the run_mess.sh script if not detected.
              • create extra platforms.cfg so we can run the script online with curl and also have a nice extra platforms.cfg
              • removed help / not necessary if used in the menu
              • date command removed / turn off generate all message shortened
              • generated files come in RetroPie-Setup/ext
                • found that if there are already module-scripts, with the same name in the original directory, then these will be used (you get a warning). So old scripts have to be removed if they were already there.

              This is how it will look like in the external repositiory directory :
              2021-03-24-200702_1600x900_scrot.png

              1 Reply Last reply Reply Quote 0
              • V
                valerino @Folly
                last edited by

                @folly i will check asap, surely it's possible to refresh retropie's internal structures. look at what it does in its own startup: https://github.com/RetroPie/RetroPie-Setup/blob/master/retropie_packages.sh#L61

                F 1 Reply Last reply Reply Quote 1
                • F
                  Folly @valerino
                  last edited by

                  @valerino

                  That would be nice indeed !

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    Folly @Folly
                    last edited by Folly

                    @DTEAM @valerino

                    I have made some wonderful improvements !

                    We can now generate without even having the script on the computer and it will place the generated scripts in the directory for external repository's. 137
                    It will also install the run_mess.sh script if not detected.

                    Try this command :

                    curl "https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scripts-00/generate-systems-lr-mess_mame-2v0-alpha.sh" | bash -s kgradius
                    

                    ps.
                    We can use this now, but the normal way still works. So we can use it both ways.

                    Edit :
                    Updated quite a lot in the first post.

                    1 Reply Last reply Reply Quote 1
                    • F
                      Folly @DTEAM
                      last edited by

                      @dteam

                      Something to check I think :
                      https://retropie.org.uk/forum/topic/30155/lcd-handhelds-mame-0-229-dat

                      DTEAMD 1 Reply Last reply Reply Quote 0
                      • DTEAMD
                        DTEAM @Folly
                        last edited by

                        @folly
                        I don't know if he is aware of what we are doing.

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Folly @DTEAM
                          last edited by

                          @dteam

                          Indeed, but he is very busy.
                          He has to read quite some stuff, we already know.
                          I think he will get the jist.

                          DTEAMD 1 Reply Last reply Reply Quote 0
                          • F
                            Folly
                            last edited by

                            @valerino

                            We are a bit curious, have you :

                            • read the first post ?
                            • read the commented parts in the script on how it's working ?
                            • installed some handhelds ?
                            • used the get script ?
                            V 1 Reply Last reply Reply Quote 0
                            • V
                              valerino @Folly
                              last edited by

                              @folly heya :) i've read the first post, yes. but i haven't tried anything, sorry but i've very few time to dedicate to my hobbies at the moment.

                              anyway, i have some suggestions:

                              1. forget the 1st post, have a github (being my repo, or a new one doesn't matter.... and list issues/ideas there)
                              2. decide if we want to use my fork or have another, merging mine+folly+dteam work. just, having a single repo imho is the way to go to avoid fragmentation.
                              3. push retropie admins to merge this stuff in the official repo :)
                              F 1 Reply Last reply Reply Quote 2
                              • DTEAMD
                                DTEAM @Folly
                                last edited by DTEAM

                                @folly said in Development of module-script generator for lr-mess and mame standalone:

                                @dteam
                                Indeed, but he is very busy.
                                He has to read quite some stuff, we already know.
                                I think he will get the jist.

                                I was talking about the new thread you mentionned above. I had an answer from him. He is a Global Moderator on this site and he gave me his impression about what we are doing.

                                https://retropie.org.uk/forum/topic/30155/lcd-handhelds-mame-0-229-dat

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  Folly @DTEAM
                                  last edited by Folly

                                  @dteam said in Development of module-script generator for lr-mess and mame standalone:

                                  @folly said in Development of module-script generator for lr-mess and mame standalone:

                                  @dteam
                                  

                                  Indeed, but he is very busy.
                                  He has to read quite some stuff, we already know.
                                  I think he will get the jist.

                                  I was talking about the new thread you mentionned above. I had an answer from him. He is a Global Moderator on this site and he gave me his impression about what we are doing.

                                  https://retropie.org.uk/forum/topic/30155/lcd-handhelds-mame-0-229-dat

                                  Sorry , misunderstood, haha.
                                  I wasn't aware of that because I didn't read the stuff.
                                  Will do that.

                                  Edit :
                                  Read it, indeed, seems he isn't aware of specific things,
                                  but strangely enough said that he was inspired by our threads.
                                  Mmmm,......

                                  I did an extra post on the thread !

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    Folly @valerino
                                    last edited by Folly

                                    @valerino said in Development of module-script generator for lr-mess and mame standalone:

                                    @folly heya :) i've read the first post, yes. but i haven't tried anything, sorry but i've very few time to dedicate to my hobbies at the moment.

                                    anyway, i have some suggestions:

                                    1. forget the 1st post, have a github (being my repo, or a new one doesn't matter.... and list issues/ideas there)
                                    2. decide if we want to use my fork or have another, merging mine+folly+dteam work. just, having a single repo imho is the way to go to avoid fragmentation.
                                    3. push retropie admins to merge this stuff in the official repo :)

                                    Ok, Seems a good plan.

                                    Although you have to take into account, not everyone is that keen on github.
                                    And also, not everyone has a github account.
                                    For me, the syncing and pushing things is something that's still blurry for me too.
                                    So that is why I keep everything here, so everyone can help to improve.

                                    But indeed, with your way of doing, we all could learn quite a bit more.

                                    DTEAMD 1 Reply Last reply Reply Quote 0
                                    • DTEAMD
                                      DTEAM @Folly
                                      last edited by DTEAM

                                      @folly

                                      Hi Folly,

                                      I've try (for saturn)

                                      curl "https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scripts-00/generate-systems-lr-mess_mame-2v0-alpha.sh" | bash -s saturn
                                      

                                      And It doesn't work. Did I do something wrong.

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        Folly @DTEAM
                                        last edited by Folly

                                        @dteam said in Development of module-script generator for lr-mess and mame standalone:

                                        curl "https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-scripts-00/generate-systems-lr-mess_mame-2v0-alpha.sh" | bash -s saturn

                                        I tried your command.
                                        Works on my end, these are generated in /home/pi/RetroPie-Setup/ext/RetroPie-Share/scriptmodules/libretrocores :
                                        install-saturn-cmd.sh
                                        install-saturn-from-mamedev-system-saturn-cart.sh
                                        install-saturn-from-mamedev-system-saturn-cdrm.sh
                                        It pushes the files to the new separate external repository directory.

                                        If they are not found by the RetroPie-Setup then perhaps you don't have an up to date Setup.
                                        Use this to move your generated files back to the old location.

                                        mv /home/pi/RetroPie-Setup/ext/RetroPie-Share/scriptmodules/libretrocores/* /home/pi/RetroPie-Setup/scriptmodules/libretrocores
                                        
                                        

                                        EDIT :
                                        For others who read this.
                                        You can miss third party module-scripts easily because,
                                        third party module-scripts are the very bottom of the list in the RetroPie-Setup.
                                        So then above mv command is not necessary.

                                        DTEAMD 1 Reply Last reply Reply Quote 0
                                        • DTEAMD
                                          DTEAM @Folly
                                          last edited by DTEAM

                                          @folly
                                          It works for me with 1.8 version and not 2.0 . I don't know why
                                          i'll try what you said in you last post.

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            Folly @DTEAM
                                            last edited by Folly

                                            @dteam said in Development of module-script generator for lr-mess and mame standalone:

                                            @folly
                                            It works for me with 1.8 version and not 2.0 . I don't know why

                                            Well I explained in the last post.
                                            Ok. You can also use 1.8 that will create it in the old location.

                                            Perhaps I am already too much busy in the future 😁

                                            Curious how saturn will run.

                                            DTEAMD 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.