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

    lr-mame2003 driver improvement and backport

    Scheduled Pinned Locked Moved Ideas and Development
    mame2003mame-libretrodriverbackport
    507 Posts 30 Posters 278.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.
    • arcadez2003A
      arcadez2003 @zerojay
      last edited by

      @zerojay said in lr-mame2003 driver improvement and backport:

      I compiled with the change and it appears that retroarch is unable to load the compiled .so file that results from it:

      [ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
      [ERROR] Error(s): /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so: undefined symbol: driver_baryon

      Yeah i just added a new driver dreamwld.c which will likely need to be declared in the overall sources hence the above compile errors
      if you can point me towards the sources then i can fix this.

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

        @gamez-fan said in lr-mame2003 driver improvement and backport:

        @zerojay said in lr-mame2003 driver improvement and backport:

        I compiled with the change and it appears that retroarch is unable to load the compiled .so file that results from it:

        [ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
        [ERROR] Error(s): /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so: undefined symbol: driver_baryon

        Yeah i just added a new driver dreamwld.c which will likely need to be declared in the overall sources hence the above compile errors
        if you can point me towards the sources then i can fix this.

        https://github.com/libretro/mame2003-libretro/blob/master/link.T
        https://github.com/libretro/mame2003-libretro/blob/master/Makefile.common

        i think that's it

        arcadez2003A 1 Reply Last reply Reply Quote 1
        • arcadez2003A
          arcadez2003 @dankcushions
          last edited by

          @dankcushions said in lr-mame2003 driver improvement and backport:

          @gamez-fan said in lr-mame2003 driver improvement and backport:

          @zerojay said in lr-mame2003 driver improvement and backport:

          I compiled with the change and it appears that retroarch is unable to load the compiled .so file that results from it:

          [ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
          [ERROR] Error(s): /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so: undefined symbol: driver_baryon

          Yeah i just added a new driver dreamwld.c which will likely need to be declared in the overall sources hence the above compile errors
          if you can point me towards the sources then i can fix this.

          https://github.com/libretro/mame2003-libretro/blob/master/link.T
          https://github.com/libretro/mame2003-libretro/blob/master/Makefile.common

          i think that's it

          Thanks i've declared the new driver in the makefile that should fix the compile errors

          Z 1 Reply Last reply Reply Quote 1
          • Z
            zerojay @arcadez2003
            last edited by zerojay

            @gamez-fan said in lr-mame2003 driver improvement and backport:

            @dankcushions said in lr-mame2003 driver improvement and backport:

            @gamez-fan said in lr-mame2003 driver improvement and backport:

            @zerojay said in lr-mame2003 driver improvement and backport:

            I compiled with the change and it appears that retroarch is unable to load the compiled .so file that results from it:

            [ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
            [ERROR] Error(s): /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so: undefined symbol: driver_baryon

            Yeah i just added a new driver dreamwld.c which will likely need to be declared in the overall sources hence the above compile errors
            if you can point me towards the sources then i can fix this.

            https://github.com/libretro/mame2003-libretro/blob/master/link.T
            https://github.com/libretro/mame2003-libretro/blob/master/Makefile.common

            i think that's it

            Thanks i've declared the new driver in the makefile that should fix the compile errors

            No go. Dumped my copy of the lr-mame2003 source and pulled down a fresh copy, made the change for DMA as we previously mentioned and compiled.

            When running with verbose logging:

            Parameters:
            Executing: SDL_VIDEO_EGL_DRIVER=/opt/vc/lib/libEGL.so SDL_VIDEO_GL_DRIVER=/opt/vc/lib/libGLESv2.so /opt/retropie/emulators/retroarch/bin/retroarch
            -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/mame-libretro/retroarch.cfg "/home/pi/RetroPie/rom
            s/mame-libretro/openice.zip" --verbose --appendconfig /dev/shm/retroarch.cfg
            [INFO] RetroArch 1.6.7 (Git 8e8bdaa)
            [INFO] Redirecting save file to "/home/pi/RetroPie/roms/mame-libretro/openice.srm".
            [INFO] Redirecting savestate to "/home/pi/RetroPie/roms/mame-libretro/openice.state".
            [INFO] === Build =======================================
            Capabilities: NEON VFPv3 VFPv4
            Built: Sep 10 2017
            [INFO] Version: 1.6.7
            [INFO] Git: 8e8bdaa
            [INFO] =================================================
            [INFO] [Config]: loading config from: /opt/retropie/configs/mame-libretro/retroarch.cfg.
            [INFO] Config: appending config "/dev/shm/retroarch.cfg"
            [INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
            [ERROR] Failed to open libretro core: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
            [ERROR] Error(s): /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so: undefined symbol: driver_baryon
            /opt/retropie/supplementary/runcommand/runcommand.sh: line 1014: 16143 Segmentation fault SDL_VIDEO_EGL_DRIVER=/opt/vc/lib/libEGL.so SDL_VIDEO_GL_DRIVER=/opt/vc/lib/libGLESv2.so /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.
            so --config /opt/retropie/configs/mame-libretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/openice.zip" --verbose --appendconfig /dev/shm/retroarch.cfg

            1 Reply Last reply Reply Quote 0
            • Z
              zerojay
              last edited by

              Actually, just noticed your change didn't yet get pulled so I applied it manually. The game loads and runs but even on my overclocked pi3 with resolution at 640x480, it seems to go back and forth between full speed and very slow (though audio sounds fine).

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

                @zerojay said in lr-mame2003 driver improvement and backport:

                Actually, just noticed your change didn't yet get pulled so I applied it manually. The game loads and runs but even on my overclocked pi3 with resolution at 640x480, it seems to go back and forth between full speed and very slow (though audio sounds fine).

                Open ice does the exact same thing on the Xbox with the DMA off but i noticed when i turned it on the game did get a slight boost not as much as MK2 or MK3
                which is what i really use it for, i thought it was worth a try on the Rpi incase you got a better speedup via the DMA change but alas it was not to be which is a pity,

                1 Reply Last reply Reply Quote 0
                • Z
                  zerojay
                  last edited by

                  I am able to play it with advmame 0.94 with my overclock and it's pretty playable there. Thanks for the help.

                  1 Reply Last reply Reply Quote 0
                  • Y
                    yevaman
                    last edited by

                    Hi ! First of all, thanks for your work !

                    I use retroarch and just saw in the new changelog that there is a Mame2003_midway core.
                    I found the site with the source but can't find the DLL
                    When i Update the core in retroarch section I only can see the tradionnal 2003 core but not the midway one.
                    Can you help me to reach this dll ?

                    Thx

                    Regards

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zerojay @yevaman
                      last edited by

                      @yevaman said in lr-mame2003 driver improvement and backport:

                      Hi ! First of all, thanks for your work !

                      I use retroarch and just saw in the new changelog that there is a Mame2003_midway core.
                      I found the site with the source but can't find the DLL
                      When i Update the core in retroarch section I only can see the tradionnal 2003 core but not the midway one.
                      Can you help me to reach this dll ?

                      Thx

                      Regards

                      I'll take a run at it today.

                      1 Reply Last reply Reply Quote 0
                      • darkniorD
                        darknior
                        last edited by

                        Rock'n Tread 1 - 5 (Japan) : https://github.com/libretro/mame2003-libretro/pull/178

                        Tetris Plus 2 World : https://github.com/libretro/mame2003-libretro/pull/177

                        Life is game, just play it !

                        1 Reply Last reply Reply Quote 0
                        • darkniorD
                          darknior
                          last edited by

                          Fix : https://github.com/libretro/mame2003-libretro/pull/179

                          Driftout 94 remove incorrect protection :


                          Monster Slider fix incorrect level logic game now playable :

                          Twin Eagle II add dsp handling and fix graphics game now playable :

                          Add Dyna Gears new working game : https://github.com/libretro/mame2003-libretro/pull/180

                          Life is game, just play it !

                          1 Reply Last reply Reply Quote 0
                          • UDb23U
                            UDb23
                            last edited by UDb23

                            @gamez-fan Thanks for all your great updates & patches.

                            I know I'm insisting on this as I already made this comment on github..
                            but is there any chance to get sound in "Deep Scan" (sega vicdual) ?
                            That would be so great!

                            Recently samples were added to another vicdual game (more info here). I asked if it is possible to add a similar "sample player module" to Deep Scan on that thread but no answer. Samples are available; they are the same as Depth Charge.

                            arcadez2003A 1 Reply Last reply Reply Quote 1
                            • darkniorD
                              darknior
                              last edited by

                              Lets get Fire Barrel playable : https://github.com/libretro/mame2003-libretro/pull/182

                              @gamez-fan Fix sound and improve the bad graphical layer, original code by BP and myself

                              Life is game, just play it !

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

                                @udb23 said in lr-mame2003 driver improvement and backport:

                                @gamez-fan Thanks for all your great updates & patches.

                                I know I'm insisting on this as I already made this comment on github..
                                but is there any chance to get sound in "Deep Scan" (sega vicdual) ?
                                That would be so great!

                                Recently samples were added to another vicdual game (more info here). I asked if it is possible to add a similar "sample player module" to Deep Scan on that thread but no answer. Samples are available; they are the same as Depth Charge.

                                I take it you mean this game it's the only one i can see called Deep Scan in the MAME78 vicdual driver..........

                                GAMEX(1979, invds, 0, invinco4, invds, invds, ROT270, "Sega", "Invinco / Deep Scan", GAME_IMPERFECT_SOUND )

                                It seems to have sound but your saying it needs to use the same samples as depth charge..?? it should be easy enough to hook it
                                to those samples in the driver if thats what the game requires i honestly haven't played this one.

                                1 Reply Last reply Reply Quote 0
                                • DarksaviorD
                                  Darksavior
                                  last edited by Darksavior

                                  Any chance the system16 games might get a fix? Shinobi has a missing audio channel in the 2nd stage, maybe other areas. E-Swat has garbled voice. Moonwalker won't load. I don't think Altered Beast is playable. Enemies don't move or something like that...it's been a while since I tested. Mame2010 plays most of them fine but some are unplayable because they run too slow. Same goes for latest fba.

                                  arcadez2003A darkniorD 2 Replies Last reply Reply Quote 0
                                  • arcadez2003A
                                    arcadez2003 @Darksavior
                                    last edited by arcadez2003

                                    @darksavior said in lr-mame2003 driver improvement and backport:

                                    Any chance the system16 games might get a fix? Shinobi has a missing audio channel in the 2nd stage, maybe other areas. E-Swat has garbled voice. Moonwalker won't load. I don't think Altered Beast is playable. Enemies don't move or something like that...it's been a while since I tested. Mame2010 plays most of them fine but some are unplayable because they run too slow. Same goes for latest fba.

                                    Only gonna be the unprotected versions and bootlegs of these games which will work in this older Core, i've never bumped into any of the problems you mention above
                                    when using MAME84 on the Xbox so im guessing a few MAME commits by Charles Mcdonald around MAME81-82 should sort all of the above it's just the workload required
                                    my end to backport these changes that might be the sticking point.

                                    I'll take a look sometime to see how much graft it would be but for now im taking a break from working on this source i have another xbox project im gonna be busy on
                                    likely for the rest of the year on a seperate note i suppose this would be a good time to round up the Roms for all the new games i've added support for or hooked up
                                    the sound in etc etc give em a whirl and let me know if they work correctly or not.

                                    Cheers!!

                                    1 Reply Last reply Reply Quote 0
                                    • darkniorD
                                      darknior @Darksavior
                                      last edited by darknior

                                      @darksavior said in lr-mame2003 driver improvement and backport:

                                      Moonwalker won't load

                                      I don't have the other, i think they don't work fine like you write, but Moon Walker (bootleg) is already working fine :)
                                      Altered Beast working, but the scrolling is really slow, the enemies don't disappear ... it is not playable lol

                                      For my part @gamez-fan i have try again the Gal's Panic serie, because you write me them works fine on MAME 2003, i use the official set and no more chance, i can't play them :(
                                      The number 1 working fine, the 2, 4, S, S2 not launching and i play a lot to them on xBox without any problem :)
                                      A friend tel me he can make the S2 working on his PI, he gave me his ROM and it not working better ... it is really strange ...

                                      Life is game, just play it !

                                      arcadez2003A DarksaviorD 2 Replies Last reply Reply Quote 0
                                      • arcadez2003A
                                        arcadez2003 @darknior
                                        last edited by arcadez2003

                                        @darknior said in lr-mame2003 driver improvement and backport:

                                        @darksavior said in lr-mame2003 driver improvement and backport:

                                        Moonwalker won't load

                                        I don't have the other, i think they don't work fine like you write, but Moon Walker (bootleg) is already working fine :)
                                        Altered Beast working, but the scrolling is really slow, the enemies don't disappear ... it is not playable lol

                                        For my part @gamez-fan i have try again the Gal's Panic serie, because you write me them works fine on MAME 2003, i use the official set and no more chance, i can't play them :(
                                        The number 1 working fine, the 2, 4, S, S2 not launching and i play a lot to them on xBox without any problem :)
                                        A friend tel me he can make the S2 working on his PI, he gave me his ROM and it not working better ... it is really strange ...

                                        Im sure i read SH2 games have problems on this platform..?? Kaneko Supernova games use that CPU hence maybe why those versions of Gals Panic dont boot.

                                        Edit daft question you do have the bios skins.zip in your Roms folder..??? these games require it.

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

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • DarksaviorD
                                            Darksavior @darknior
                                            last edited by Darksavior

                                            @darknior Ok, I tried the bootleg version of Moonwalker on mame 2003. While it is playable, it does not work fine. The audio is played at a higher pitch. All system16 games need some sort of fixing.

                                            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.