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

    LR-MAME2003 - flipping the screen in SOME games

    Scheduled Pinned Locked Moved Help and Support
    flipping screenlr-mame2003
    20 Posts 8 Posters 4.8k 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.
    • P
      paf @Alturis
      last edited by

      @alturis said in LR-MAME2003 - flipping the screen in SOME games:

      Are you running a cocktail supported rom?

      To be very honest, I don't understand exactly what "cocktail mode" means. A screen split in two? If that's it, then no, I don't think. In the game settings in MAME, there is no such DIP switch.

      The screen is simply inverted left-right.

      I have tried video_scale=-1 but if it does nothing. Anyways, how should it mirror in X or Y direction or both?

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

        @paf said in LR-MAME2003 - flipping the screen in SOME games:

        othunder

        this is interesting - this game has a flag i haven't seen before in the code: ORIENTATION_FLIP_X

        see https://github.com/libretro/mame2003-libretro/blob/7b55725e744ac9702db092f996e2fca2276146b2/src/drivers/othunder.c#L659

        you can see the other games that use it here: https://github.com/libretro/mame2003-libretro/search?p=1&q=ORIENTATION_FLIP_X&type=&utf8=✓

        i would guess that standard mame 0.78 plays these games right, but the libretro version (lr-mame2003) is not. @markwkidd are you able to confirm?

        if standard mame 0.78 plays them right, then this is a mame2003 bug that should be logged :)

        markwkiddM 1 Reply Last reply Reply Quote 0
        • markwkiddM
          markwkidd @dankcushions
          last edited by

          @dankcushions said in LR-MAME2003 - flipping the screen in SOME games:

          @paf said in LR-MAME2003 - flipping the screen in SOME games:

          othunder

          this is interesting - this game has a flag i haven't seen before in the code: ORIENTATION_FLIP_X

          see https://github.com/libretro/mame2003-libretro/blob/7b55725e744ac9702db092f996e2fca2276146b2/src/drivers/othunder.c#L659

          you can see the other games that use it here: https://github.com/libretro/mame2003-libretro/search?p=1&q=ORIENTATION_FLIP_X&type=&utf8=✓

          i would guess that standard mame 0.78 plays these games right, but the libretro version (lr-mame2003) is not. @markwkidd are you able to confirm?

          if standard mame 0.78 plays them right, then this is a mame2003 bug that should be logged :)

          Confirmed -- it works in original MAME 0.78 but not in mame2003.

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

            @markwkidd bah! :)

            i think the problem is here: https://github.com/libretro/mame2003-libretro/blob/78720e819c1fe0ad516e0a478f43f52d1fa092cf/src/usrintrf.c#L273

            it looks like this is never called in mame2003. i guess the rotation stuff is replaced here: https://github.com/libretro/mame2003-libretro/blob/master/src/libretro/libretro.c#L633

            ...but not the X/Y flipping... i don't know how you do that via the libretro API.

            markwkiddM 1 Reply Last reply Reply Quote 0
            • SanoS
              Sano @paf
              last edited by

              @paf said in LR-MAME2003 - flipping the screen in SOME games:

              Under LR-MAME2003 (Retroarch / Retropie), a few games are flipped horizontally (usually games with a light gun, no idea why).

              I believe the explanation is that those light gun games often worked with mirrors, in order to have a certain "distance" feeling from the display.
              See here :
              http://forum.arcadecontrols.com/index.php?topic=93369.0

              jonnykeshJ 1 Reply Last reply Reply Quote 1
              • jonnykeshJ
                jonnykesh @Sano
                last edited by jonnykesh

                @sano You are correct @Sano The screen was reflected in a mirror just as you describe. I tried the very ROM OP mentioned othunder.zipand it was flipped on the horizontal as OP stated.
                The same ROM works perfectly in AdvanceMame and is showing correctly.

                1 Reply Last reply Reply Quote 0
                • markwkiddM
                  markwkidd @dankcushions
                  last edited by

                  @dankcushions said in LR-MAME2003 - flipping the screen in SOME games:

                  @markwkidd bah! :)

                  i think the problem is here: https://github.com/libretro/mame2003-libretro/blob/78720e819c1fe0ad516e0a478f43f52d1fa092cf/src/usrintrf.c#L273

                  it looks like this is never called in mame2003. i guess the rotation stuff is replaced here: https://github.com/libretro/mame2003-libretro/blob/master/src/libretro/libretro.c#L633

                  ...but not the X/Y flipping... i don't know how you do that via the libretro API.

                  Someone like radius or hunterk from the libretro team is probably the best on to ask once this is on github.

                  As opposed to fixing the problem it may also be possible to work around it by way of a shader although I don't think there's anything like that in the libretro shaders repository at the moment.

                  1 Reply Last reply Reply Quote 0
                  • P
                    paf
                    last edited by paf

                    I just tried with a 0.139 ROM and LR-MAME2010, but it crashes with the following info "/opt/retropie/supplementary/runcommand/runcommand.sh: line 1006: 4692 Segmentation fault"...

                    Any alternative?

                    jonnykeshJ 1 Reply Last reply Reply Quote 0
                    • jonnykeshJ
                      jonnykesh @paf
                      last edited by

                      @paf It would do no harm. Also try AdvanceMame, as I suggested. I was playing it earlier with a mouse, got to level 3.

                      1 Reply Last reply Reply Quote 0
                      • DNunoD
                        DNuno
                        last edited by

                        I have the same issue.

                        I'm trying to run Disc Of Tron in flipped mode.

                        I tried a couple of things in the dotron.zip.cfg file, such

                        ORIENTATION_FLIP_Y = "ON"
                        

                        or

                        ORIENTATION_FLIP_Y = "true"
                        

                        or

                        ORIENTATION_FLIP_Y = "yes"
                        

                        But it doesn't affect the display :-(
                        I'm note sure what is the correct syntax to use in the .cfg file ? And/or if an other parameter is require too?

                        I'm using mame-libretro 2003 (mame version 0.78 build), on a fresh image downloaded here (retropie-buster-4.7.1-rpi2_3.img.gz)

                        Can someone point me the exact syntax to use for doing this in the .cfg file ?

                        M dankcushionsD 2 Replies Last reply Reply Quote 0
                        • M
                          mahoneyt944 @DNuno
                          last edited by

                          @dnuno the screen should be displayed properly without changing any settings. Or are you trying to make the screen mirrored for use with a mirror?

                          DNunoD 1 Reply Last reply Reply Quote 0
                          • DNunoD
                            DNuno @mahoneyt944
                            last edited by

                            @mahoneyt944 said in LR-MAME2003 - flipping the screen in SOME games:

                            @dnuno are you trying to make the screen mirrored for use with a mirror?

                            Yes, that's the idea.

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

                              @dnuno said in LR-MAME2003 - flipping the screen in SOME games:

                              Can someone point me the exact syntax to use for doing this in the .cfg file ?

                              i think you’re misreading my post. those are internal variables within the code, not configuration settings. there is no way to flip things via the libretro API but you could try a shader. a quick google led me here: https://www.reddit.com/r/miniSNESmods/comments/99eevo/quick_guide_for_flippingmirroring_the_screen_in/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

                              DNunoD 1 Reply Last reply Reply Quote 0
                              • DNunoD
                                DNuno @dankcushions
                                last edited by

                                @dankcushions said in LR-MAME2003 - flipping the screen in SOME games:

                                i think you’re misreading my post. those are internal variables within the code, not configuration settings. there is no way to flip things via the libretro API but you could try a shader. a

                                Well, it shouldn't be an issue for me as I do not plan to 'Y flip' for certain games. I want to dedicated the 'YFlip' for only one game(and I do not plan to run any other game on this setup. So instead using a shader, could this be such a option in the general config of LR Mame 2003. I've found this option in Advance Mame .94, but I would prefer to go with Mame2003 ?

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

                                  @dnuno why not run a shader for one game? it probably could become an option in the core but you’d have to find someone to implement it: https://github.com/libretro/mame2003-libretro/issues

                                  DNunoD 1 Reply Last reply Reply Quote 0
                                  • DNunoD
                                    DNuno @dankcushions
                                    last edited by

                                    @dankcushions Thanks, I'll look in that way. I wasn't aware of the use of shaders so far :-)

                                    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.