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

    Possible to rotate screen per rom file?

    Scheduled Pinned Locked Moved Help and Support
    rotaterotationtate modetate
    19 Posts 6 Posters 15.2k 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.
    • ?
      A Former User @Hex
      last edited by

      @hex Thanks I will try that out right now and post back.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Hex
        last edited by

        @hex Yeah so it works but changes rotation globally how do I do it per rom? I dont see a save config for rom or anything like that.

        1 Reply Last reply Reply Quote 0
        • 3
          32assassin
          last edited by 32assassin

          if you wan to do if in a per rom basis you need to build a config file for the rom zip file

          example
          Atari Lynx has 5 games that run on a vertical mode
          one example

          if you want to play this on wall mounted TV you either need to rotate the TV or you need to rotate the video screen
          you do this by building a per rom Cfg file and place it in the rom folder

          RomName.exennsion.Cfg

          rom name = NFL Football (USA, Europe)
          rom is zipped --> extension = zip

          name of config file
          NFL Football (USA, Europe).zip.Cfg

          inside the Cfg file you need to rotate the video

          video_allow_rotate = "true"
          video_rotation = "1"

          1=90 CCW
          2= 180 CCW
          3= 270 CCW

          this is my full CFG for the NFL Football rom
          with
          enabled Overlay
          screen sized down to match overly
          video rotated

          input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/AtaryLynxVertical_1080p.cfg
          input_overlay_enable = true
          input_overlay_opacity = 0.700000
          input_overlay_scale = 1.000000

          video_allow_rotate = "true"
          video_rotation = "1"

          custom_viewport_width = "645"
          custom_viewport_height = "1013"
          custom_viewport_x = "642"
          custom_viewport_y = "33"

          aspect_ratio_index = "22"

          video_scale_integer = True

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by

            Thank you and how do I set the Aspect ratio to 4:3 in the config? I know how to do it via the UI.

            ? 1 Reply Last reply Reply Quote 0
            • 3
              32assassin
              last edited by 32assassin

              aspect_ratio_index = "22"
              video_scale_integer = True

              I used 22 since I was shrinking the video to a custom size. You will also need to add the video_scale_integer
              if you want the aspect_ratio_index to be used

              or Not, I'm not sure I never set
              aspect_ratio_index = "0"

              experiment by setting video_scale_integer equal to true and false
              and see what works for you
              the only thing I can tell you is that the video size and location will not be shifted to the correct position if you set
              video_scale_integer = false

              here is a full list

              0: 4:3
              1: 16:9
              2: 16:10
              3: 16:15
              4: 1:1
              5: 2:1
              6: 3:2
              7: 3:4
              8: 4:1
              9: 4:4
              10: 5:4
              11: 6:5
              12: 7:9
              13: 8:3
              14: 8:7
              15: 19:12
              16: 19:14
              17: 30:17
              18: 32:9
              19: config (video_aspect_ratio setting)
              20: 10:9 (1:1 PAR)
              21: Core Provided
              22: Custom

              1 Reply Last reply Reply Quote 0
              • HexH
                Hex
                last edited by

                No. You can just change settings and save the config only for the rom from retroarch itself.

                Sent from 20,000 leagues under the sea.

                Powersaver Emulation station : https://github.com/hex007/EmulationStation
                ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @Hex
                  last edited by

                  @hex Sorry wasnt seeing that option to save a config just for the the rom loaded.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @A Former User
                    last edited by

                    @32assassin Great, is it possible to put control scheme changes into this config file as well?

                    1 Reply Last reply Reply Quote 0
                    • HexH
                      Hex
                      last edited by Hex

                      Open Game > Retroacrch > Main menu > Quick Menu > Save game overriddes

                      Sent from 20,000 leagues under the sea.

                      Powersaver Emulation station : https://github.com/hex007/EmulationStation
                      ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                      ? 1 Reply Last reply Reply Quote 1
                      • ?
                        A Former User @Hex
                        last edited by

                        @hex Couldnt get that to work @32assassin 's method works and it follows this official guide here https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration

                        1 Reply Last reply Reply Quote 0
                        • HexH
                          Hex
                          last edited by

                          I edited the setting name. Did you check the new one or the old one?

                          Sent from 20,000 leagues under the sea.

                          Powersaver Emulation station : https://github.com/hex007/EmulationStation
                          ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                          ? 2 Replies Last reply Reply Quote 0
                          • ?
                            A Former User @Hex
                            last edited by

                            @hex didn't try the new one will try again tomorrow. Is it possible to set a per game controller config this way as well?

                            1 Reply Last reply Reply Quote 0
                            • 3
                              32assassin
                              last edited by 32assassin

                              I never had the need to remap any of my controller inputs.

                              the per rom config files bypasses the default retroarch.cfg files
                              the retroarch.cfg files have a call for the default controls

                              call for FBA key mapping
                              input_remapping_directory = "/opt/retropie/configs/fba/"

                              I"m sure you could add custom key mapping Cfg file and the call to it in your rom specific Cfg file
                              such as
                              input_remapping_directory = "/opt/retropie/configs/fba/custom.cfg"

                              or you could just add the custom settings to your rom specific cfg file
                              https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration#hardcoded-configurations

                              scroll down to
                              Example Per-System Control Override retroarch.cfg
                              you will need to update the path for each system
                              /opt/retropie/configs/megadrive/

                              Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

                              input_remapping_directory = /opt/retropie/configs/megadrive/

                              input_player1_joypad_index = 0
                              input_player1_b_btn = 2
                              input_player1_a_btn = 1
                              input_player1_y_btn = 3
                              input_player1_x_btn = 0
                              input_player1_l_btn = 4
                              input_player1_r_btn = 5
                              input_player1_start_btn = 9
                              input_player1_select_btn = 8
                              input_player2_joypad_index = 1
                              input_player2_b_btn = 2
                              input_player2_a_btn = 1
                              input_player2_y_btn = 3
                              input_player2_x_btn = 0
                              input_player2_l_btn = 4
                              input_player2_r_btn = 5
                              input_player2_start_btn = 9
                              input_player2_select_btn = 8

                              Axis for RetroArch D-Pad.

                              Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number.

                              input_player1_up_axis = -1
                              input_player1_down_axis = +1
                              input_player1_left_axis = -0
                              input_player1_right_axis = +0
                              input_player2_up_axis = -1
                              input_player2_down_axis = +1
                              input_player2_left_axis = -0
                              input_player2_right_axis = +0

                              #Hotkeys- Hotkeys enable you to press a combination of buttons to do such things as exit emulators, save states,

                              and load states, as well as any other functionality in an emulator. (In the example below 8 is the select key

                              and 9 is the start key so when I hold down select and press start it will exit the emulator.)

                              input_enable_hotkey_btn = 8
                              input_exit_emulator_btn = 9
                              input_save_state_btn = 5
                              input_load_state_btn = 4
                              input_menu_toggle_btn = 0
                              input_state_slot_increase_axis = +0
                              input_state_slot_decrease_axis = -0


                              of course that you can avoid all this by simply loading a rom in to FBA/MAME
                              hit the TAB key
                              and modify your keys (and Video) inside the emulator config menu,
                              their is no need for you to make rom specific config files or to make any changes in the Retorarch menu

                              I like using rom specific cfg files because I can make them in my PC and simply drag and drop them into my PI
                              their is no need to connect a keyboard or for me to navigate through the retroarch cfg menus.

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @Hex
                                last edited by

                                @hex seemed to work but its a little wonky and messed with my other config I put in the rom folder .. I think I figured it out though thanks again

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

                                  Regular MAME can auto-rotate the screen; does RetroArch have a similar feature? If not, you could consider switching to regular MAME in stead.

                                  1 Reply Last reply Reply Quote 0
                                  • langestL
                                    langest
                                    last edited by

                                    @32assassin said in Possible to rotate screen per rom file?:

                                    video_rotation

                                    I managed to rotate the screen and get aspect ratio correct. Now I am only wondering, where should I put the rom specific file? Or where in the menu can I find the save rom specific configuration (for lr-fbneo)?

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

                                      @langest said in Possible to rotate screen per rom file?:

                                      Now I am only wondering, where should I put the rom specific file?

                                      As the posts above said - and it's also mentioned in the Docs - , next to the ROM file.

                                      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.