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

    Tutorial: Handheld and Plug & Play systems with MAME

    Scheduled Pinned Locked Moved Ideas and Development
    game&watchjakkskonami handheldmametiger handheld
    278 Posts 10 Posters 128.5k 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.
    • F
      Folly @DTEAM
      last edited by Folly

      @dteam said in Tutorial: Handheld and Plug & Play systems with MAME:

      @folly said in Tutorial: Handheld and Plug & Play systems with MAME:

      Are you going to try GP32 in mame ?
      Try to find the overclock option for mame.

      Honestly, the easiest way would be to use MESS without Lr (retroarch) to see what happens with auto frameskip and systems performance in general. I don'T know how to get It.

      MESS is now a part of MAME.
      In the lr- versions, arcade and computers are still somewhat splitted.
      Therefor It's not needed to use MESS anymore because it's 1 package now.

      Perhaps you can still compile standalone MESS,
      but then you have to edit the makefile of the MAME source and compile MESS manually.
      Finding out how to, will be difficult, I think.

      Edit :
      Alle these packages are compiled from the MAME source :

      • lr-mame
      • lr-mess
      • MESS (if still possible)
      • MAME
      DTEAMD 1 Reply Last reply Reply Quote 0
      • DTEAMD
        DTEAM @Folly
        last edited by

        @folly
        Great. I'll try It with MAME first.

        TPRT 1 Reply Last reply Reply Quote 0
        • TPRT
          TPR @DTEAM
          last edited by

          @dteam @Folly Is there a repository to download some of the missing artwork, for example, the overlay for astrocmd.zip - I don't see it on the Google Drive that you linked to, or did I miss it?

          Thank you!

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

            @folly said in Tutorial: Handheld and Plug & Play systems with MAME:

            So you only have to add it like this, I think :
            mame-GP32= "/opt/retropie/emulators/mame/mame -c -autoframeskip %BASENAME%"

            If you run the game, go to the slider menu for overclocking/underclocking.

            It works if I switch %BASENAME% by gp32 !!!!!
            But something missing, we can see the introduction logos but the game won't load. May Be wrong Bios location. I'm digging to see where the problem come from.
            I tested nes, fmtmarty, gp32, jaguar, supracan.
            For FM-Marty, I hope It will fix saves bugs.

            TPRT DTEAMD 2 Replies Last reply Reply Quote 0
            • TPRT
              TPR @DTEAM
              last edited by

              @dteam @Folly As I'm going through more of the "classich" roms, I take it there are just some games that don't have overlays? I want to make sure I'm not missing something here.

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

                @tpr
                No,It’s normal. Some games have no overlay

                TPRT 1 Reply Last reply Reply Quote 1
                • TPRT
                  TPR @DTEAM
                  last edited by

                  @dteam Thank you!

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

                    @folly

                    @dteam said in Tutorial: Handheld and Plug & Play systems with MAME:

                    @folly said in Tutorial: Handheld and Plug & Play systems with MAME:

                    So you only have to add it like this, I think :
                    mame-GP32= "/opt/retropie/emulators/mame/mame -c -autoframeskip %BASENAME%"
                    If you run the game, go to the slider menu for overclocking/underclocking.

                    It works if I switch %BASENAME% by gp32 !!!!!
                    But something missing, we can see the introduction logos but the game won't load. May Be wrong Bios location. I'm digging to see where the problem come from.
                    I tested nes, fmtmarty, gp32, jaguar, supracan.
                    For FM-Marty, I hope It will fix saves bugs.

                    jaguar works like this:

                    mame-jaguar= "/opt/retropie/emulators/mame/mame -c -autoframeskip jaguar -cart %ROM%"
                    

                    fmmarty like this

                    mame-fmmarty= "/opt/retropie/emulators/mame/mame -c -autoframeskip fmtmarty -ram 96M -cdrm %ROM%"
                    

                    NES like this:

                    mame-nes= "/opt/retropie/emulators/mame/mame -c -autoframeskip nes -cart %ROM%"
                    

                    Gamecom

                    mame-gamecom= "/opt/retropie/emulators/mame/mame -c -autoframeskip gamecom -cart1 %ROM%"
                    

                    It works with regular game names !!!! Not just with MAME naming... Awesome!! Nothing to do in mame.ini

                    It’s scary how It’s simple!

                    @folly, You could have two emulators (lr-mess and mame/mess) with your script if you want !!!! (-;

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

                      @dteam

                      WOW, nice. Haha.
                      Indeed, Now that you say. I was a bit aware of it.
                      And indeed it's simple if you got the "aha" effect !
                      I can confirm, I have to look at that some time to implement this it the script, I was aware of it.
                      Thank you for the suggestion ! ;-).

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

                        @dteam

                        In your earlier post I can't really tell if you got GP32 working or not.

                        But I had a look. This is the media type you have to load with GP32 :

                        pi@raspberrypi:~ $ /opt/retropie/emulators/mame/mame -listmedia GP32
                        SYSTEM           MEDIA NAME       (brief)    IMAGE FILE EXTENSIONS SUPPORTED
                        ---------------- --------------------------- -------------------------------
                        gp32             memcard          (memc)     .smc
                        

                        Try this :

                        mame-GP32= "/opt/retropie/emulators/mame/mame -c -autoframeskip GP32 -memc %ROM%"
                        
                        DTEAMD 1 Reply Last reply Reply Quote 0
                        • F
                          Folly @DTEAM
                          last edited by Folly

                          @dteam said in Tutorial: Handheld and Plug & Play systems with MAME:

                          It works with regular game names !!!! Not just with MAME naming... Awesome!! Nothing to do in mame.ini

                          It’s scary how It’s simple!

                          Explained :

                          MAME naming works like this :
                          If it finds the name and checksum in the database (~/BIOS/mame/hash/<system>.xml), if it exists.
                          Then it knows how to run the game with which type of media and with which system.

                          In the commands above we tell MAME, what system and media type it has to run.
                          That's why the gamename doesn't mather anymore.
                          As you see with jaguar and nes, etc.
                          That's the theory.

                          Basically, earlier on, I did the same with Philips CDI in an earlier script.
                          But with Philips CDI, I could not get it to work anymore.
                          Now I think it's because of a BIOS change, but I still don't actually know.

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

                            @folly said in Tutorial: Handheld and Plug & Play systems with MAME:

                            Try this :
                            mame-GP32= "/opt/retropie/emulators/mame/mame -c -autoframeskip GP32 -memc %ROM%"

                            Yes GP32 works, but also very slow with autoframeskip and slider overclock 125% .

                            CD-i also works :

                            mame-CD-i= "/opt/retropie/emulators/mame/mame -c -autoframeskip cdimono1 -cdrm %ROM%"
                            
                            TPRT 1 Reply Last reply Reply Quote 1
                            • TPRT
                              TPR @DTEAM
                              last edited by

                              @dteam @Folly So what exactly does what you guys are talking about in this last exchange do? I'm not familiar with gp32

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

                                @tpr
                                alt text

                                This system (gp32) doesn’t work well with Lr-Mess, but seems cool to play.

                                That’s why I’m trying to run It with MAME.
                                Same result with MAME

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

                                  @dteam OH! Duh. Sorry. I thought for some reason it was a setting in MAME. Sorry, my brain is too far deep into these G&W games right now! lol

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

                                    @dteam said in Tutorial: Handheld and Plug & Play systems with MAME:

                                    @tpr
                                    alt text

                                    This system (gp32) doesn’t work well with Lr-Mess, but seems cool to play.

                                    That’s why I’m trying to run It with MAME.
                                    Same result with MAME

                                    Looks very cool !
                                    Perhaps it will improve with the next version of MAME combined with the new vulkan video driver.
                                    We have to wait a little bit longer.

                                    Tried to edit my script for MAME.
                                    But this can get quite a challenge or very difficult.
                                    Because :

                                    • I have to dig deeper in how script-modules are written.
                                    • Also MAME has to find/use the same BIOS files as lr-mess.
                                    • And it would be nice if 1 scriptmodule could add both commands for a system in one time in an emulators.cfg (for mame and lr-mess in one time)
                                      (So then I also have to look at the filenaming of the script modules)
                                    • Also Valerino has a run_script for MAME, I think.
                                      So It can load a bit the same as it does with lr-mess.
                                    • And a database should be added for the different options we would like to add ( like you did with fmmarty adding more ram)

                                    Are you getting it all Pfff.... ;-) ?

                                    So for the time beeing,
                                    I leave it for a while to get a better picture on how It has to be done and perhaps begin from scratch.

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

                                      @folly
                                      Seems to be a big project !
                                      What is your feeling about Vulkan. Is It coming soon?

                                      No need to play with Retropie naming :
                                      gb = Retropie gameboy = MAME

                                      mame-gb= "/opt/retropie/emulators/mame/mame -c -autoframeskip gameboy -cart %ROM%"
                                      

                                      It works as It is with gb rom folder and gameboy for MAME !

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

                                        @dteam said in Tutorial: Handheld and Plug & Play systems with MAME:

                                        @folly
                                        Seems to be a big project !

                                        Indeed, but sometimes if I have a good idea about it,
                                        I can make it simpler and also smaller and easier.
                                        We will see, I hope I get the AHA effect.

                                        What is your feeling about Vulkan. Is It coming soon?

                                        I heard that it is already in a very developped stage.
                                        My brother said that it's already in the UBUNTU OS for RPI4.
                                        But I really don't know.
                                        My feeling is that it could be implemented within a month or perhaps two months.
                                        Curious if i will be correct in the prediction.

                                        No need to play with Retropie naming :
                                        gb = Retropie gameboy = MAME

                                        mame-gb= "/opt/retropie/emulators/mame/mame -c -autoframeskip gameboy -cart %ROM%"
                                        

                                        It works as It is with gb rom folder and gameboy for MAME !

                                        Yes, I know.
                                        Perhaps we don't understand each other about this point.
                                        But this part shouldn't be a problem for the future script.
                                        I really meant the the filenames of the module-scripts.
                                        Because if a generated module script can also add a mame command and the name of the script module is lr-mess...etc....
                                        You get confused about what the module-script actually does. That was my concern.

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

                                          @folly
                                          Hi Folly, I'm trying to run MSX2 with cartridge and It won't recognize. Any idea!
                                          I already try this

                                          mame-msx2= "/opt/retropie/emulators/mame/mame -c -autoframeskip msx2 -cart %ROM%"
                                          

                                          and this

                                          mame-msx2= "/opt/retropie/emulators/mame/mame -c -autoframeskip msx2_cart -cart %ROM%"
                                          

                                          also without 2 (MSX standalone)

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

                                            @dteam

                                            You have to use an MSX type like this for example :

                                            mame-msx2= "/opt/retropie/emulators/mame/mame -c -autoframeskip hbf700p -cart1 %ROM%"
                                            

                                            And make sure you have a matching BIOS rom file.
                                            hp700p.zip

                                            With this command you can find which one you really want (you use grep to filter the lines containing your search text) :

                                            /opt/retropie/emulators/mame/mame -listdevices | grep Driver | grep MSX
                                            

                                            If you want some information about the system do :

                                            /opt/retropie/emulators/mame/mame -listdevices hbf700p
                                            

                                            If you want some information about the supported media do :

                                            /opt/retropie/emulators/mame/mame -listmedia hbf700p
                                            
                                            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.