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

    How Can We Make MAME ROW Better?

    Scheduled Pinned Locked Moved MAME Random Of the Week
    mamemame row
    49 Posts 10 Posters 11.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.
    • meleuM
      meleu
      last edited by meleu

      Just using this post as a rough requirements specification.

      Sorry if it's too technical or a little off-topic. I just want to leave it here for future reference when I have time to work on it (nd maybe some of you can give suggestions).

      • it'll be a bash script.

      • random.org HTTP Interface Description is the doc where I can get instructions to get the random numbers from the script.

      • the mamerow_gamelist.txt needs two more fields, one for the MAME ROW "round" number and another for the retropie forum URL.

      • the mamerow_gamelist.txt needs to be updated when a game wins the poll, recording the round number and the URL. Critical: if other users will use the script to make the post, they'll need a github account to keep the mamerow_gamelist.txt up to date. Also, I need to discover how to make Pull Requests from script (useful info about it here).

      • great care must be taken when manipulating the mamerow_gamelist.txt, it will be a critical file. The script must have a rigorous error checking scheme.

      • poll creation at strawpoll can't be fully automated, but I think I can take advantage of the "Save draft" feature (should we change to another poll web service? I don't know any other).

      usage examples

      EDIT: The use will be through dialogs rather than command line arguments.

      create a new post

      ./mamerow.sh --new
      
      • Check mamerow_gamelist.txt looking for the last round before the new one.
      • get the 3 random numbers.
      • check if some of the numbers is an already played game and get a new number if needed.
      • prepare the poll at strawpoll (note: it can't be fully automated and can be a hindrance).
      • add the "what is MAME ROW" text
      • add links to the previous rounds (get the links from the mamerow_gamelist.txt).
      • if everything is fine, spit the markdown formatted text on the screen to let the user copy and paste on the retropie forum.

      update mamerow_gamelist.txt with the winner game

      ./mamerow.sh --update-gamelist ROUND_NUMBER GAME_NUMBER http://RETROPIE.FORUM/MAME_ROW/THREAD/URL
      
      • assure that the local mamerow_gamelist.txt is synchronized with the github one.
      • get the last round number from mamerow_gamelist.txt, increments by one and record the respective GAME_NUMBER entry with the round number and the URL.
      • update the mamerow_gamelist.txt on github (note: how can I make pull requests from the script?).

      show info about a previous round

      ./mamerow.sh --round NUMBER
      
      • show the game name and the URL for the MAME ROW #NUMBER thread on retropie forum.

      check gamelist integrity

      ./mamerow.sh --check-gamelist
      

      Scan for errors in mamerow_gamelist.txt. Possible errors:

      • games with round numbers and no URL
      • round numbers must be different and sequential (except the 0, used for phoenix and nrallyx).
      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      meleuM 1 Reply Last reply Reply Quote 3
      • F
        ferdnand
        last edited by

        Hello, I'm no programmer, but would be nice to use "xlink Kia" with the retropie...Some how , would benefit the retropie, and give a leg up on the other OS....

        Just my thoughts....Happy gaming

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

          @obsidianspider
          I'm not cured of my always-looking-for-an-excuse-to-code disease and am working on the "MAME ROW management" tool.

          I decided to make it operable through dialogs. Look how it's going (working flow to register the week's winner game):

          0_1487011618926_mamerow1.png

          1_1487011618926_mamerow2.png

          2_1487011618926_mamerow3.png

          3_1487011618926_mamerow4.png

          4_1487011618926_mamerow5.png

          5_1487011618926_mamerow6.png

          6_1487011618926_mamerow7.png

          Why invest time in a code that only one or two people will use?
          BECAUSE PROGRAMMING IS FUN!!! :-)

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

            @meleu I'm not sure what this is doing?

            📷 @obsidianspider

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

              @obsidianspider I want to automate the post generation. The script will automatically get the random numbers and check:

              • this game was played before?
              • this game is a mahjong?

              To check if the game was played before, we need to keep the mamerow_gamelist.txt updated. And to avoid editing a not-human-friendly .csv file, the updating will be made through those dialogs. There's a lot of error checking behind the cool dialog boxes. :-)

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

                @meleu You have much more free time than I do. Creating that post only takes a few minutes for me, but you're welcome to take it back when you're ready. :)

                📷 @obsidianspider

                meleuM 2 Replies Last reply Reply Quote 0
                • meleuM
                  meleu @obsidianspider
                  last edited by

                  @obsidianspider Not exactly free time.

                  My job is to operate an industrial process. When the process is stable the automatism does everything alone and I just have to monitor. I can not play video games in the control room, but I can program and monitor the process at the same time (please, don't see me as a Homer Simpson at work!). :-)

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

                    @meleu

                    📷 @obsidianspider

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

                      @obsidianspider LOL. I'm saving this video link to post when people come here complaining about the runcommand's "Press a button to configure" message!!

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

                        @obsidianspider said in How Can We Make MAME ROW Better?:

                        Creating that post only takes a few minutes for me, but you're welcome to take it back when you're ready. :)

                        The first version is ready. If you have time, try it. Any feedback is welcome.

                        How to "install": go to the directory you want and then

                        git clone https://github.com/meleu/mame-row-management.git
                        

                        Just execute and follow the instructions:

                        ./mamerow.sh
                        

                        Cheers!

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

                          @meleu said in How Can We Make MAME ROW Better?:

                          git clone https://github.com/meleu/mame-row-management.git

                          I tested it and it seems to work, though it may be a solution in search of a problem. It took me longer to do than my manual process, but maybe because I'm not used to using the tool yet.

                          Anyway, the post for MAME ROW #22 will be the one that was made using your tool and is now sitting on my computer waiting for Monday.

                          📷 @obsidianspider

                          meleuM 1 Reply Last reply Reply Quote 1
                          • obsidianspiderO
                            obsidianspider
                            last edited by obsidianspider

                            I was just looking at the script itself and it makes me want to get back into writing some code to improve my skills. Very nicely done. Also, what's this comment about "Create secret Raspberry Pi network and take over the world" about? #kidding ;)

                            📷 @obsidianspider

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

                              @obsidianspider said in How Can We Make MAME ROW Better?:

                              it may be a solution in search of a problem.

                              My primary motivation to start work on this was the question "Can I edit comma-separated values files with shell scripts?". I'm satisfied with the results and learned a lot while writing this tool:

                              • how to get random numbers from random.org in a shell script.
                              • finally learned how to use the dialog --form.
                              • a bunch of grep and sed tricks.
                              • etc...
                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              obsidianspiderO 1 Reply Last reply Reply Quote 1
                              • obsidianspiderO
                                obsidianspider @meleu
                                last edited by

                                @meleu Kind of like that screen on a cartridge add-on for my Super Famicom. It was more of a "can I do this" type of thing than it as a practical feature. When I'm playing I really only glance at it, it if that. I love figuring crap like that out and learning new skills, but I don't know that I'll get to your level of coding prowess any time soon.

                                📷 @obsidianspider

                                1 Reply Last reply Reply Quote 1
                                • obsidianspiderO
                                  obsidianspider
                                  last edited by

                                  When I tried to create MAME ROW #23 this week it didn't seem to have the data from MAME ROW 22 saved, so I'm going to head back to my manual post creation with the assistance of your initial lookup tool.

                                  Thanks again for taking the time to make some scripts for the community.

                                  📷 @obsidianspider

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

                                    @obsidianspider said in How Can We Make MAME ROW Better?:

                                    it didn't seem to have the data from MAME ROW 22 saved

                                    Did you update the gamelist with the MAME ROW 22 info and it wasn't saved?!

                                    The path is "Manage MAME ROW gamelist" >> "Update gamelist with a new round information". Screenshots below:

                                    0_1488311928200_Captura de tela de 2017-02-28 16:57:19.png

                                    1_1488311928201_Captura de tela de 2017-02-28 16:57:45.png

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

                                      @meleu I'll test it again some time. I've been busy this week working on my Gameboy Advance project and I still have a bit of a cold. Thanks.

                                      📷 @obsidianspider

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

                                        In 2 weeks MAME ROW completes one year of existence.

                                        Do you guys have some suggestion for something special for MAME ROW #52?

                                        One idea I had:

                                        1. Go to the MAME ROW forum category.
                                        2. On the top right of the page click on "Sort by" and choose "Most posts".
                                        3. Ignore the sticky post and get the games of the top 5. Currently they are:
                                          • Pac'n'Pal
                                          • Phoenix
                                          • Frenzy
                                          • Joust
                                          • Aliens
                                        4. Make a strawpoll with the top 5.

                                        What do you think?


                                        tagging some MAME ROW players: @obsidianspider @UDb23 @GtBFilms @backstander @dankcushions @mediamogul @qix77 @lilbud @Fruitybit @Lyle_JP @pjft @mholsson @buddyscott @MrJordaaany @AndersHP @chubsta @itsnitro @Cole_48 @R1n0X @Brigane @edmaul69

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        lilbudL obsidianspiderO 2 Replies Last reply Reply Quote 1
                                        • lilbudL
                                          lilbud @meleu
                                          last edited by lilbud

                                          @meleu I was thinking about something along the lines of an actual bracketed tournament, possibly using those 5 games.

                                          We set up a poll as you suggested, and the game with the most votes will be the 1 used for a single elimination tournament.

                                          Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                          Backlog: http://backloggery.com/lilbud

                                          1 Reply Last reply Reply Quote 0
                                          • obsidianspiderO
                                            obsidianspider @meleu
                                            last edited by

                                            @meleu Most posts isn't a good metric as quite a few of them have sidebar conversations that have nothing to do with top scores, but I'm up for whatever in terms of doing something special for the anniversary.

                                            📷 @obsidianspider

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