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 35 Posters 6.0m 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 @DTEAM
      last edited by DTEAM

      @dteam

      Two imperfect method :

      1- Bash kgradius, bmsoccer, jak_dbz , etc. like you said to generate the system folder with the system name (like Jakks) and use mess.ini list in Retropie menu even if it's 0.229 and not 0.227. In the Retropie menu, It could be interesting to substitute kgradius by konamih like we said before.

      2 - Start with your massive list and soustract stuff from (arcade.ini and Mechanical Arcade.ini)

      If doable, isolate handheld systems is great idea you had.

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

        @dteam

        Point 1 shouldn't be that difficult.
        I think we should do it in the dialog module-script.
        Just joining for example konamih to one game, like I did in the desired script.

        Point 2, I will have a look at that. I can't tell for sure how we can manage this, at this point. I we could it would reduce the list to useful systems, that is what you mean.

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

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

          I think that should be the approach.
          But we have to keep in mind that we can only use these filters on systems that are without (-media) and use the bios as the game, sort of speek.
          Are we spot on ?

          Yes.

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

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

            Point 2, I will have a look at that. I can't tell for sure how we can manage this, at this point.

            If feasible, the result should be pretty close to what we expect. You have 33672 arcade games/sytem in arcade.ini in your list 38000.

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

              @dteam

              Yes indeed, we subtract the mechanical's we can't use.

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

                @folly
                Mechanichal arcade is included in arcade.ini

                In mess.ini, you have 4377 systems, so method 2 works with arcade.ini only . We dont need more files

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

                  @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:

                  Point 2, I will have a look at that. I can't tell for sure how we can manage this, at this point.

                  If feasible, the result should be pretty close to what we expect. You have 33672 arcade games/sytem in arcade.ini in your list 38000.

                  You have to know my list isn't perfect due to imperfect code.
                  There are empty systems and lettes only, so the count isn't correct.

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

                    @folly

                    mess.ini = 4377
                    arcade.ini = 33672
                    total = 38049

                    You are not far !!

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

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

                      @folly
                      Mechanichal arcade is included in arcade.ini

                      In mess.ini, you have 4377 systems, so method 2 works with arcade.ini only . We dont need more files

                      We keep that in mind and use it when we are ready to do so.
                      There is still much work to get the basics working.
                      But it's good to talk about it so we will be prepared a bit.

                      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

                        mess.ini = 4377
                        arcade.ini = 33672
                        total = 38049

                        You are not far !!

                        Ok that's nice to know.
                        Just summarizing again :
                        Basically we want to categorize the arcade into sections and subsections and we keep the mess systems as they are.

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

                          @folly @valerino

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

                          Just summarizing again :
                          Basically we want to categorize the arcade into sections and subsections and we keep the mess systems as they are.

                          Final result could be something like that (similar to the previous sketch) . For # to Z = 4377 systems. Are you agree with that?
                          New edit: I forgot something, It's not A to Z but # to Z. Some systems start by a number.

                          Capture.PNG

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

                            @dteam

                            Nice schematic.

                            My idea is to share the code so we all can see how this evolves.

                            Agreed, I hope we can make it like this.

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

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

                              Agreed, I hope we can make it like this.

                              I hope also. I hope what @valerino proposed could help for the menu part.

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

                                @dteam @valerino

                                Here you can see the changes I made to the docsview.sh and trying to convert it to a base for our front-end.
                                https://github.com/FollyMaddy/RetroPie-Share/commit/07daf2f032dbdd3a06fb030ae2443151bf28e14a

                                You will see :

                                • I just changed the page string and the pages array into system and systems.
                                • I changed the command to get the mame system information into the array.
                                • I turned of some docsview choices.
                                1 Reply Last reply Reply Quote 1
                                • F
                                  Folly
                                  last edited by Folly

                                  @DTEAM @valerino

                                  Perhaps very premeture, but we can already create with the front-end script.
                                  https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-workdir-00/add-mamedev-systems.sh

                                  Download to RetroPie-Setup :
                                  ( Edit : renamed the file on github as add-mamedev-systems-test1.sh which is saved with this command as add-mamedev-systems.sh )

                                  wget -q -nv -O /home/$(ls /home)/RetroPie-Setup/scriptmodules/supplementary/add-mamedev-systems.sh https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-workdir-00/add-mamedev-systems-test1.sh
                                  
                                  

                                  Go to -> configuration / tools -> select (192) add (wait 20 sec.) -> view systems -> select a system -> it will generate and install (and will go back to the systems list again)
                                  Then you still have to restart the RetroPie-Setup to see the new module-scripts.
                                  Refresh added in third commit.

                                  Commit 1 :
                                  This is what I changed to fix the ownership problem :
                                  Perhaps a bit unconventional but I changed the generate-systems-lr-mess_mame-2v0-alpha.sh so it will create in /home/<user> .
                                  (many times it will become the normal /home/pi though)
                                  It will also change the ownership to the normal <user> .
                                  https://github.com/FollyMaddy/RetroPie-Share/commit/6fa291756f11611204d2ce3262b52e203f0737e4

                                  Commit 2 :
                                  Perhaps I also have to fix also the created directory in line 84.
                                  I have to check this (fixed this too) :
                                  https://github.com/FollyMaddy/RetroPie-Share/commit/53265236288a829382dfa6820313c23bb1215b12

                                  Edit : I will search for a better user/ownership solution.
                                  It works for now, but it's not the perfect solution, I think.

                                  Commit 3 :
                                  Added refresh, so no need to restart RetroPie-Setup :
                                  https://github.com/FollyMaddy/RetroPie-Share/commit/8a3c7d6487b7371652f41a956733e989d158e93f

                                  Commit 4 :
                                  Moved refresh to somewhere else, added clear, added unconventional way of installing the generated module-scripts directly :
                                  https://github.com/FollyMaddy/RetroPie-Share/commit/debe1edd0fae83e8572ff9678a1fc2295ebff1ea
                                  It is obvious to see I have to get the module_id with the ls command.
                                  If the generated-script is within the front-en module we can just use those strings to install the generated-script.

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

                                    @folly
                                    Wow, you are fast. I don't have time to test it right now, but I will do it ASAP. Great job!

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

                                      Yesterday I used the retropie_packages.sh within the front-end-module.
                                      It was possible to directly install the generated module-scripts after generation.
                                      So that is nice to know.

                                      I see the possibilities here :

                                      • show systems in dialog menu
                                      • select systems
                                      • refresh modules after generation
                                      • install generated modules directly after generation

                                      But I also encounter some limits with the approach, that I took, with running the generation-script with curl from the front-end-test module,
                                      because strings can't be exchanged easily between the front-end and the generator-script back and forth.
                                      So perhaps it's better to implement the generator-script within the front-end module-script.

                                      I also have some concern about the filling of the array's.
                                      I would like to display the systems descriptions instead of the systems names to get a better idea on what we choose/install.
                                      Integrating the generation-script could be the better approach in this case.
                                      Along with filtering can take more time as we build more things into it.
                                      So I have to think about that.
                                      Perhaps there is a way of doing this one time, making fixed array's that are faster, once created.
                                      And then add a refresh option, so things can be refreshed/updated on demand.

                                      Well I have to think that a bit, hopefully I don't make it too difficult for myself and others.

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

                                        @folly
                                        I Folly, normally I'm fast to reply, but now, I'm busy with real life stuff. I’ll check what you did this tuesday. It looks awesome. regards

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

                                          @dteam

                                          No problem, I understand.

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

                                            @DTEAM @valerino

                                            As a test-2, I integraded the generation-script within the front-end module-script.

                                            I already notice, that this approach will probably will be much better.

                                            I saved the file on github as add-mamedev-systems-test2.sh.
                                            With this command it is saved/overwritten as add-mamedev-systems.sh

                                            wget -q -nv -O /home/$(ls /home)/RetroPie-Setup/scriptmodules/supplementary/add-mamedev-systems.sh https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-workdir-00/add-mamedev-systems-test2.sh
                                            
                                            

                                            Here you can see most changes of test-1 vs test-2 :
                                            https://github.com/FollyMaddy/RetroPie-Share/commit/a53ebf77ff2f556558785469e2a1220e6ae5f56c

                                            DTEAMD F 2 Replies 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.