RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    (SOLVED) MAME "standalone" Cheats for systems like Coleco, Arcade and more

    Scheduled Pinned Locked Moved Help and Support
    cheatslr-messmamemame rommame.ini
    29 Posts 3 Posters 8.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.
    • DTEAMD
      DTEAM @Folly
      last edited by DTEAM

      @folly
      No sorry, for Arcade and jaguar, I did nothing excepted what you see above with mame.ini and cheat.7z file location.

      for -cheat in emulators.cfg , I did a test with jaguar and nothing happens. mame.ini seems to do the same thing.

      For some reason, we can load cheats for arcade games (MAME) and not for systems from the old MESS

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

        @dteam said in MAME "standalone" Cheats for systems like Coleco and more:

        @folly
        No sorry, for Arcade and jaguar, I did nothing excepted what you see above with mame.ini and cheat.7z file location.

        for -cheat in emulators.cfg , I did a test with jaguar and nothing happens. mame.ini seems to do the same thing.

        Ok I understand it correctly.

        What is your emulators.cfg of Arcade then ?

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

          @folly
          those 2

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

            @dteam said in MAME "standalone" Cheats for systems like Coleco and more:

            @folly
            those 2

            mame_autoframeskip = "/opt/retropie/emulators/mame/mame -c -autoframeskip %BASENAME%"
            mame = "/opt/retropie/emulators/mame/mame %BASENAME%"
            

            Yes, just what I was thinking/explaining in my earlier post.
            Your edit1 doesn't run through the softwarelist and your edit2 does.
            In both (Arcade and jaguar) you use MAME naming, as you said,
            but with jaguar you added the system in the commandline so the MAME naming for the softwarelist is not used/rejected.
            So the question is, do cheats only work when a game is loaded the softwarelist way.

            Pfff... do you follow it ?

            Can you try your jaguar game (with MAME naming) from the Arcade rom directory, to see what will happen ?
            Perhaps you also have to add a hash table for jaguar too in you mame directory.
            Here are hash tables :
            https://github.com/mamedev/mame/tree/master/hash

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

              @folly
              Not working. In mame.ini , It already pointed in the hash folder with xml. The xml. are already there.

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

                @dteam said in MAME "standalone" Cheats for systems like Coleco and more:

                @folly
                Not working.

                Do you have hash tables ?
                I think the have to be in :
                /home/pi/RetroPie/BIOS/mame/hash

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

                  @folly

                  Yes, and in 2 places (lr-Mess and MAME) . For mame, It's in the mame.ini and Its full by default, unlike Lr-Mess

                  My hashpath
                  /opt/retropie/emulators/mame/hash;
                  /home/pi/RetroPie/BIOS/mame/hash;

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

                    @dteam
                    And you have the jaguar.xml in there ?

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

                      @dteam

                      What %BASENAME% doing
                      Can we use it in

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

                      with jaguar

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

                        @dteam

                        I am quite certain basename is the romname without the extension.
                        So the basename is looked up in the hash tables then it knows the :

                        • game
                        • system
                        • etc.
                        1 Reply Last reply Reply Quote 0
                        • DTEAMD
                          DTEAM @Folly
                          last edited by DTEAM

                          @folly
                          yes, jaguar.xml is there
                          Before I use your script, I installed Lr-Mess systems manually with .xml files.
                          I'm running both. I'm familiar with It.

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

                            @dteam

                            Is your jaguar game with the correct checksum in the jaguar.xml hash table ?

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

                              @folly
                              No, games are in the rom folder and xml (for mame) in /opt/retropie/emulators/mame/hash and for lr-mess in /home/pi/RetroPie/BIOS/mame/hash.

                              /home/pi/RetroPie/roms/mame is a cut and paste mistake, sorry

                              Is your jaguar game with the correct checksum in the hash table ?

                              Yes, because I'm able to run It with this line and It required the .xml file:

                              lr-mess = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mess/mess_libretro.so --config /opt/retropie/configs/jaguar/retroarch.cfg %ROM%"
                              

                              This line doesn't work if I delete the .xml file in the hash folder

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

                                @dteam

                                I think we have a missunderstanding.
                                Well, this happens with how MAME works , haha ;-)

                                I really meant, open your jaguar.xml in a texteditor and look for your game.

                                Edit : looking at your post it looks indeed you have a good rom with a good checksum, because it runs with lr-mess.

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

                                  @dteam

                                  Can you try to make a jaguar folder in the arcade rom directory ?
                                  And run the game from the arcade/jaguar directory ?

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

                                    @folly
                                    see also: Mess cheats

                                    *Activate Cheats
                                    You can activate cheats in MESS by selecting them in GUI or by using the -cheat option at command line. Unfortunately, cheats are currently not working in MESS after MAME 0.127 cheat rewrite.

                                    More precisely, you can add cheat in xml format as system.xml but you cannot currently add per game cheats as in previous versions. They should be re-added soon.*

                                    But here, the seems to be able : http://www.mamecheat.co.uk/forums/viewforum.php?f=2

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

                                      @dteam

                                      Seems like we are running into a dead end for now.
                                      Perhaps we have to look at this again later on, do you agree ?

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

                                        @folly
                                        yes, I agree

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

                                          @Folly
                                          Like this, It works:

                                          mame-jag-cheat= "/opt/retropie/emulators/mame/mame -c jaguar %BASENAME%"
                                          mame-jag-autoframeskip-cheat= "/opt/retropie/emulators/mame/mame -c -autoframeskip jaguar %BASENAME%"
                                          

                                          Note: for jaguar, ssometime better performance without autoframeskip and sometime with It.

                                          1.jpg

                                          You must add MESS system name before %BASENAME%.

                                          To use cheat codes with MAME/MESS, your roms must have the MAME roms names from the HASH file.

                                          You must add in mame.ini :

                                          cheatpath /home/pi/RetroPie/roms/mame/cheat
                                          cheat 1
                                          

                                          (note : I did a test without cheat 1 in mame.ini and without -cheat in emulators.cfg and It also worked)

                                          You must put cheat.7z file from "Pugsy's Cheats " in /home/pi/RetroPie/roms/mame/cheat

                                          You must have the system hash file like jaguar.xml (with MAME standalone, It's already there)

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

                                            @dteam

                                            That is just what I was thinking tonight.

                                            Cool, we were on the right track ;-)

                                            Well, still we have to learn allot about MAME, we are not finished yet with learning !

                                            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.