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

    Having an issue with high score saving lr mame 2003 plus

    Scheduled Pinned Locked Moved Help and Support
    high scores
    29 Posts 7 Posters 4.7k 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.
    • M
      mahoneyt944
      last edited by

      All my games using mame 2003 plus are not loading the .hi or .nv file (though I only have .nv files right now) that's located in:

      /home/pi/RetroPie/roms/arcade/mame2003-plus/hi
      /home/pi/RetroPie/roms/arcade/mame2003-plus/nvram

      When I exit the game ".nv" files are being made in the directories above but when I re-enter the emulator the high score is not loaded back. This seems like a simple config issue or perhaps I'm missing something as my other emulators are saving just fine. I reinstalled lr mame 2003 plus already with no success. what am I missing here?

      1 Reply Last reply Reply Quote 0
      • M
        mahoneyt944
        last edited by

        I'm also using tapper to test

        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by

          The .hi files are the hiscores. Note that not all games support hiscores in Mame 2003. Can you try with a simple game, like pacman ?

          M 1 Reply Last reply Reply Quote 0
          • M
            mahoneyt944 @mitu
            last edited by

            @mitu well I tested with donkey Kong and it's working. So is there a way to get tapper working? The high scores are there as long as I don't exit. But once I do they are gone. External .dat?

            1 Reply Last reply Reply Quote 0
            • G
              grant2258 Banned
              last edited by

              it would require an update to the driver to work. You would need to request it to be added.

              M 1 Reply Last reply Reply Quote 0
              • M
                mahoneyt944 @grant2258
                last edited by

                @grant2258 through GitHub?

                1 Reply Last reply Reply Quote 0
                • G
                  grant2258 Banned
                  last edited by

                  that would be the best place any active devs there could pick it up is worth try. You could also try fbneo its updated more frequently and probably works with the hi scores not tested it for this game though.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mahoneyt944 @grant2258
                    last edited by

                    well I tested some other games like Tron. Now what's interesting is Tron does not save a .hi file either, but it does save a .nv file and the high scores are reloaded from the .nv file. I tested this from creating a highscore on another pi setup of mine and copying the tron rom and .nv file to the pi setup I'm working on currently. The high score loads up this way for Tron.

                    Tapper also creates a .nv file instead of a .hi file so I assume it's high score would be loaded though this as well. It's also worth noting that these are both Bally midway games that need the mame 2003 plus updates to work properly.

                    sirhenrythe5thS 1 Reply Last reply Reply Quote 0
                    • sirhenrythe5thS
                      sirhenrythe5th @mahoneyt944
                      last edited by

                      @mahoneyt944 fyi: Mame does save nvram-files as well as *.hi since Nicola Salmoria invented it in 1996 - so this is no special behavior of MAME for Raspberry Pis ☺

                      -- Retro-Achievements Username: SirALX --
                      RetroRatio: 1.88
                      Started Games beaten: 2,47%
                      Site Rank: 4382/93743 ranked users (TOP 4.76%)
                      Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mahoneyt944 @sirhenrythe5th
                        last edited by

                        @sirhenrythe5th
                        what I was getting at is, since Tron uses the .nv file for it's high score and does not make a .hi file ---which high score is working, and tapper is creating a .nv file and not making a .hi file just like tron....is it reasonable to think that tappers high score will be apart of the .nv file?

                        Both games are Bally midway so I would think they were similar in some ways at least. If so, the .nv file is being created currently and not saving the high score within it.

                        If this isn't the case what is being saved in the .nv file it's making?

                        1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator
                          last edited by

                          scores via nv files were/are apparently unreliable: https://highscore.mameworld.info/nvramtest.htm

                          1 Reply Last reply Reply Quote 0
                          • G
                            grant2258 Banned
                            last edited by grant2258

                            This is an easy fix thankfully tested it and it works.

                            here is the original code

                            https://github.com/libretro/mame2003-plus-libretro/blob/master/src/drivers/mcr3.c#L428-L436

                            notice this saves videoram instead of nvram as is described here https://github.com/libretro/mame2003-plus-libretro/blob/0134c428b75882aa474f78dbbf2c6ecde49b97b7/src/drivers/mcr3.c#L35-L39

                            change the nvram handler to the code (linked above) to what paste below and it will work as expected. This is something i always meant to look into but never found the time.

                            static NVRAM_HANDLER( mcr3 )
                            {
                            unsigned char *ram = memory_region(REGION_CPU1);
                            
                            	if (read_or_write)
                            		mame_fwrite(file, &ram[0xe000], 0x800);
                            	else if (file)
                            		mame_fread(file, &ram[0xe000], 0x800);
                            }
                            

                            Like i said before in this case the driver needs an update nothing more nothing less. The problem here is the nvram was pointing to the wrong place in the memory map.

                            M 1 Reply Last reply Reply Quote 1
                            • M
                              mahoneyt944 @grant2258
                              last edited by mahoneyt944

                              @grant2258

                              Thank you. Is this change official or do I need to edit manually?

                              Could you link me the updated mame2003_plus_libretro.so to replace mine?

                              My editor keeps crashing when I open it :(

                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @mahoneyt944
                                last edited by

                                @mahoneyt944 said in Having an issue with high score saving lr mame 2003 plus:

                                Could you link me the updated mame2003_plus_libretro.so to replace mine?

                                You can't edit the mame2003_plus_libretro.so file directly, the source needs editing and then re-compiled to produce the new mame2003_plus_libretro.so.

                                M 1 Reply Last reply Reply Quote 1
                                • M
                                  mahoneyt944 @mitu
                                  last edited by

                                  @mitu

                                  Yeah I kind of figured so when I saw the jumbled mess inside the file lol. Is anyone willing to compile this update and post it?

                                  1 Reply Last reply Reply Quote 0
                                  • arcadez2003A
                                    arcadez2003
                                    last edited by

                                    https://github.com/libretro/mame2003-plus-libretro/pull/780

                                    Arcade Addict

                                    M 1 Reply Last reply Reply Quote 3
                                    • M
                                      mahoneyt944 @arcadez2003
                                      last edited by

                                      @arcadez2003

                                      Thank you, does anyone have it compiled so I can update my system manually? Getting ready to back up my pi but wanted to get this fix in there before I do.

                                      1 Reply Last reply Reply Quote 0
                                      • RiverstormR
                                        Riverstorm
                                        last edited by

                                        @mahoneyt944 - You'll probably need to download from source from within the RetroPie Setup menu to get the latest commits. Basically where you installed the emulator, there should be two options, download from binary or download from source.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mahoneyt944 @Riverstorm
                                          last edited by mahoneyt944

                                          @Riverstorm

                                          The change made isn't official yet to update from source. That's why I was hoping someone could compile it

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            grant2258 Banned
                                            last edited by grant2258

                                            Ill provide instructions for you to compile it im assuming you have a pi3 if not change the platform to rpi2.

                                            There is things to keep in mind one you should have mame2003-plus installed via retropie so everything is setup. The code below will compile mame for you at the bash prompt via ssh or f4 depending on your preference.

                                            git clone https://github.com/libretro/mame2003-plus-libretro.git
                                            cd mame2003-plus-libretro/
                                            wget https://github.com/libretro/mame2003-plus-libretro/pull/780.patch
                                            git am 780.patch
                                            make -j8 platform=rpi3
                                            

                                            copy the binary over that is made over the old one and be sure to delete the source directory when finished.

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