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

    mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support

    Scheduled Pinned Locked Moved Ideas and Development
    mame
    1.5k Posts 70 Posters 1.7m 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.
    • RiverstormR
      Riverstorm
      last edited by

      @arcadez2003 - I'm not completely sure if it's always been there. I have an image at least 6 months and another at least a year or older if it helps to track it down I'll load them up.

      Current MAME 0.214 does look correct from what I can tell, just tested it now. With Retroarch you can frame advance so it's easy to catch but with current MAME you get about a half second or less to capture it during play so, not even double tapping the pause key helps. Maybe @WeirdH can add to it as it's a good catch, good eye! :) I would have just kept playing blissfully unaware.

      arcadez2003A B WeirdHW 3 Replies Last reply Reply Quote 0
      • arcadez2003A
        arcadez2003 @Riverstorm
        last edited by arcadez2003

        Aye i see what ya mean i didn't spot that video was from 7 years ago :) your right it seems to be sorted in the latest builds, this might be the issue
        im sure we had some troubles with the screen flipping a while back............

        https://mametesters.org/view.php?id=4669

        If not then it'll likely be one of the many graphical updates to the SSV driver over the years, i dont really have the time to look at this in more detail just now
        but i might take another peek at the video code down the road.

        Arcade Addict

        1 Reply Last reply Reply Quote 1
        • B
          barbudreadmon @Riverstorm
          last edited by

          @arcadez2003 @Riverstorm @WeirdH FBNeo also got some issues with some SSV games on arm/aarch64 (still trying to figure out the issue), but FWIW this one seems fine.

          FBNeo developer - github - forum

          arcadez2003A 1 Reply Last reply Reply Quote 1
          • WeirdHW
            WeirdH @Riverstorm
            last edited by WeirdH

            @Riverstorm Yeah, it's a curse. Friends joke that I could spot a dead pixel on a 4K screen from across the room. Sometimes blissfully unaware is the preferred way...

            I only have a MAME 0.139 to test with on my htpc, don't know if that'll add anything new, now that more knowledgable people have already weighed in?

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

              @WeirdH - Yeah it would have to be one of the programmers like @arcadez2003 @grant2258 @barbudreadmon to fix it as they are the true "Githubians of Libretronan" or "Libretronians of Githubio" "The Wizards of Retroly Street" ... :)

              MAME 0.214 does still flag Storm Blade (SSV.cpp) with graphical issues on launch. Also ArcadeItalia lists cocktail issues. Still some good games in their though like Dyna Gear, Drift Out '94, Eagle Shot, Twin Eagle II, Vasara, Storm Blade, etc.

              @barbudreadmon - That's great, thanks for the headsup! I'll be loading it up later this afternoon for testing. My build is mainly a hybrid of m3plus and fbneo with a bit of advmame for a handful of vector games.

              I don't know if this was the fix back in 2005 but it does relate to shadows.

              15th May 2005: Luca Elia - I finally got around to implementing proper shadows in SSV driver, replacing the hack that was there instead. The difference is most noticeable in Storm Blade. The way shadows work is this: The frame buffer is filled with 16 bit pens, that are indexes into the palette (i.e. the actual rgb colors), from the previously drawn, "normal" tiles. When a "shadowing" tile is drawn, it does not overwrite the contents of the frame buffer, but instead replaces the top bits of the pens there with the low bits of its pens. This results in a shift of the affected pixels from one section to another of the game's palette. The game has to just divide the palette into increasingly dark chunks of the same base colors. Some games do highlights this way, while Storm Blade again exploits the mechanism to cross-fade between graphics, which now works.

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

                @Riverstorm said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                I don't know if this was the fix back in 2005 but it does relate to shadows.

                15th May 2005: Luca Elia - I finally got around to implementing proper shadows in SSV driver, replacing the hack that was there instead. The difference is most noticeable in Storm Blade. The way shadows work is this: The frame buffer is filled with 16 bit pens, that are indexes into the palette (i.e. the actual rgb colors), from the previously drawn, "normal" tiles. When a "shadowing" tile is drawn, it does not overwrite the contents of the frame buffer, but instead replaces the top bits of the pens there with the low bits of its pens. This results in a shift of the affected pixels from one section to another of the game's palette. The game has to just divide the palette into increasingly dark chunks of the same base colors. Some games do highlights this way, while Storm Blade again exploits the mechanism to cross-fade between graphics, which now works.

                I've already backported the following improvements........

                0.141u1: Improvements to the SSV sprite position and flipscreen support [Robert Zandona].

                0.139u3: SSV update [Robert Zandona]: Implemented visible area registers in the SSV driver (now the resolution for all the games is the max visible area, the values of the registers after the boot process). Implemented y tilemap offset register. Implemented x and y visible area register. Disabled tilemap draw when mode=0. Removed kludge for sprite x offset and implemented 1 bit of 7a-7b register. Implemented y sprite inversion CRT register. Added a kludge for Dyna Gear. Used CRT registers to get the sprite x offset. Removed offset values from the init; the offset now are handled by the CRT registers. Fixed bit #a of 7a-7b CRT register. Fixed background disable condition. Corrado Tomaselli confirmed visible area register with a Twin Eagle II PCB.

                0.139u3: Roberto Zandona fixed graphical corruption on left side of screen beginining stage 3 in Storm Blade.

                0.96u3: Luca Elia added shadow effects to the SSV driver. Changed palettesize to 32768.

                However from checking the commits i've spotted a small fix for the shadows which never got a mention in the MAME WIP, i've added it to my test build
                and it seems to sort the problems although my eyesight ain't what it was, i'll add in these changes to this core update to latest build then
                try Storm Blade once again and lemmie know how it pans out.

                https://github.com/libretro/mame2003-plus-libretro/commit/ed9a8684e987e39e1981a1ec0a9412663f3f47ff

                Arcade Addict

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

                  @barbudreadmon said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                  @arcadez2003 @Riverstorm @WeirdH FBNeo also got some issues with some SSV games on arm/aarch64 (still trying to figure out the issue), but FWIW this one seems fine.

                  I hadn't played Storm Blade for quite some time but i do remember now sometimes on shooting down certain planes or finishing off certain bosses
                  you would as part of the explosions get a yellow or blue flash which i always thought didn't look quite right,

                  But i was never 100% on this until the recent posts with the pics and reviewing the gameplay on YT, certainly that commit i just pushed to the git seems
                  to sort it as the flashes before the explosions or afterwards are all white now which looks correct i think, of course maybe on arm/aarch64
                  hardware the graphical problems are worse and show up more.??

                  Arcade Addict

                  WeirdHW 1 Reply Last reply Reply Quote 3
                  • RiverstormR
                    Riverstorm
                    last edited by

                    @arcadez2003 - Thanks a bunch for the fix. It's looking darn right proper here unless my old peepers deceive me! :)

                    I mainly use the Pi 3 which I think is a quad core Cortex-A53 (ARMv8). Screenshot below running commit ed9a868. Shadow/shockwave overlap looks good.

                    stmblade-191018-171449.png

                    1 Reply Last reply Reply Quote 3
                    • WeirdHW
                      WeirdH @arcadez2003
                      last edited by

                      @arcadez2003 Appears to be fixed on my 3B+ as well, awesome work!

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

                        Well it was Luca Elia who fixed this issue, i just backported the code into this core, kinda like copying the guy next to ya at school :) but still it's another happy ending at least.

                        Arcade Addict

                        ClydeC WeirdHW 2 Replies Last reply Reply Quote 3
                        • ClydeC
                          Clyde @arcadez2003
                          last edited by

                          @arcadez2003 You made me remember this quote from http://blog.wolfire.com:

                          We have opensource facial hair: if one guy has a big beard we all copy his code and get our own beards.

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

                            @arcadez2003 said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                            ng the guy next to ya at school :) but still it's another happy ending at least.

                            opensource is a great thing when its truly libre :) including copying beards lol

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

                              Thanks a lot all for your help last week :)
                              Now i have my full set MAME 2003 Plus <3
                              I began to try some games and your work is so fantastic :)

                              But i have one question for CHD games ...
                              Mine are CHD2 not v5, but i think it help because less compressed.
                              I try to use them on USB drive or directly on the MicroSD car.
                              I try Area51 and KI1 KI2 and all are slow, impossible to play them fine :(
                              On PI 3b+ ... is it normal ? Is there a trick to help ?
                              Because i remember on XBOX @arcadez2003 we can play KI1 and 2 without CHD and not with MAME, but at full speed on a low 700Mhz proc with 64Mo of RAM ... :(
                              Why not on PI who is a 4 core, 1400Mhz with 1Go of RAM !!?
                              Thanks

                              Life is game, just play it !

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

                                @darknior said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                                Thanks a lot all for your help last week :)
                                Now i have my full set MAME 2003 Plus <3
                                I began to try some games and your work is so fantastic :)

                                But i have one question for CHD games ...
                                Mine are CHD2 not v5, but i think it help because less compressed.
                                I try to use them on USB drive or directly on the MicroSD car.
                                I try Area51 and KI1 KI2 and all are slow, impossible to play them fine :(
                                On PI 3b+ ... is it normal ? Is there a trick to help ?
                                Because i remember on XBOX @arcadez2003 we can play KI1 and 2 without CHD and not with MAME, but at full speed on a low 700Mhz proc with 64Mo of RAM ... :(
                                Why not on PI who is a 4 core, 1400Mhz with 1Go of RAM !!?
                                Thanks

                                Most of the CHD games tend to big chunky 3D games which the xbox and many platforms that use this core will always struggle with, not being a fan of 1 vs 1
                                fighters preferring the ole scrolling beat em ups, i never bothered with the Killer Instinct games so im not 100% on this but im sure the xbox has a special
                                standalone emulator port which is heavily optimized for low spec hardware hence you could play em on a stock xbox.

                                SPPV is the current custodian of that project, maybe if you ask him nicely he might look at porting it across to the RA platforms sometime.

                                Arcade Addict

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

                                  @grant2258 said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                                  @arcadez2003 said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                                  ng the guy next to ya at school :) but still it's another happy ending at least.

                                  opensource is a great thing when its truly libre :) including copying beards lol

                                  Right here's the thing "watching what i say here as the subject matter is adult in nature", after reading a story about big hairy beardy men who all lived in a house
                                  together as pups and they all had a master who wanted them to inject a certain part of their anatomy with a substance which made said part of their anatomy grow
                                  to a huge size so they could rub their faces against them kinda makes me prefer my copying your schoolmate analogy instead :)

                                  Post Script

                                  One of the pups died after the injection hence it made the newspapers and me hearing about a whole world i never knew existed :)

                                  Arcade Addict

                                  1 Reply Last reply Reply Quote 2
                                  • darkniorD
                                    darknior @arcadez2003
                                    last edited by

                                    @arcadez2003 said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                                    i never bothered with the Killer Instinct games so im not 100% on this

                                    Me too i prefer Street of Rages, and CPS games ;)
                                    But it's a CULT GAME, important in the Video Game history and it's why i wish found a solution to play with it.

                                    Like i write i also try AREA 51, a fantastic shooting game !!!
                                    I love it, and it is really slow too :(
                                    Don't you have try it too ?

                                    but im sure the xbox has a special ...

                                    I don't use it from many years :p
                                    The pi is life for me now ;)

                                    standalone emulator port which is heavily optimized for low spec hardware hence you could play em on a stock xbox.
                                    SPPV is the current custodian of that project, maybe if you ask him nicely he might look at porting it across to the RA platforms sometime.

                                    Maybe, i can try ... but xbox gamers are always on xbox lol
                                    They really evolve from many years ...

                                    Life is game, just play it !

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      barbudreadmon @darknior
                                      last edited by

                                      @darknior said in mame2003-plus: hundreds of new games, improved input, features, new bugs - now with runahead support:

                                      Like i write i also try AREA 51, a fantastic shooting game !!!
                                      I love it, and it is really slow too :(

                                      3D arcade games are generally impossible to run at full speed on current SBCs without a dedicated emulator, their original cpu+gpu put too much stress on the SBC's cpu, generally you'll need a dynarec to lower cpu usage, a 3D renderer to offload video processing, or both.

                                      I doubt you'll ever see a dedicated emulator for arcade games based on jaguar, and while it might be possible to add this support to virtualjaguar, i doubt you'll find any developper interested in this (not that it would run full speed on a rpi3 anyway).

                                      FBNeo developer - github - forum

                                      1 Reply Last reply Reply Quote 1
                                      • WeirdHW
                                        WeirdH @arcadez2003
                                        last edited by

                                        @arcadez2003 Thanks Luca Elia, for letting arcadez copy your homework!

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

                                          I added support for Lethal Enforcers a while back however there was still a little bug with the background scrolling in the section with the cars on mission 1,
                                          this also affected the highscore table minor stuff really but annoying none the less, anyway the fix to sort this was on the large side and touched a fair bit
                                          of the code connected to all the 16 and 32bit Konami games.

                                          But today while researching this issue i found a little hack by robiza which didn't make the MAME WIP, i guess it was done before he fixed things up proper like
                                          this is good in the sense it was a simple addition to this core which saved me a ton of work and does not affect any of the other Konami games which means
                                          i didn't have to test em all :)

                                          The shops not scrolling correctly on mission 1 is now fixed, and for good measure i've went ahead and silenced some debug code which would throw out
                                          an "unknown pri" popup message at various points in the game, so all in all a couple easy to add fixes make Lethal Enforcers look a lot sweeter in MAME2003+

                                          lethaleneae.png

                                          Arcade Addict

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

                                            A few bits n bobs............

                                            Added the missing inputs for button 3 for Bonanza Bros

                                            bnzabros.png

                                            Fixed the music and sfx cutting out level 2 onwards in Super Spacefortress Macross II.

                                            macross2.png

                                            Attempted to get Scramble Spirits to work, please test it " using the latest rom from MAME" and lemmie know either way if it's playable now.

                                            sspirits.png

                                            Arcade Addict

                                            1 Reply Last reply Reply Quote 5
                                            • 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.