Possible to rotate screen per rom file?
-
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 folderRomName.exennsion.Cfg
rom name = NFL Football (USA, Europe)
rom is zipped --> extension = zipname of config file
NFL Football (USA, Europe).zip.Cfginside the Cfg file you need to rotate the video
video_allow_rotate = "true"
video_rotation = "1"1=90 CCW
2= 180 CCW
3= 270 CCWthis is my full CFG for the NFL Football rom
with
enabled Overlay
screen sized down to match overly
video rotatedinput_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/AtaryLynxVertical_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 0.700000
input_overlay_scale = 1.000000video_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
-
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.
-
aspect_ratio_index = "22"
video_scale_integer = TrueI 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 usedor 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 = falsehere 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 -
No. You can just change settings and save the config only for the rom from retroarch itself.
-
@hex Sorry wasnt seeing that option to save a config just for the the rom loaded.
-
@32assassin Great, is it possible to put control scheme changes into this config file as well?
-
Open Game > Retroacrch > Main menu > Quick Menu > Save game overriddes
-
@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
-
I edited the setting name. Did you check the new one or the old one?
-
@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?
-
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 controlscall 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-configurationsscroll 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 = 8Axis 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 menuI 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. -
@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
-
Regular MAME can auto-rotate the screen; does RetroArch have a similar feature? If not, you could consider switching to regular MAME in stead.
-
@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)?
-
@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.
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.