Display_rotate=1 for specific ROMs?
-
I feel like this is a newb question, but, how is this accomplished?
I've built a cocktail arcade table and am having a difficult time getting this to work correctly.Would I modify (example) frogger.cfg in /opt/retropie/configs/mame-mame4all/cfg, and add a line display_rotate=1?
Using mame4all, if I configure the DIP switches in this game (frogger, for example) to Cocktail mode, it does not rotate correctly.
If I add display_rotate=1 to /boot/config.txt, it works correctly but then EVERYTHING is rotated (including EmulationStation and all the other consoles) -- which isn't what I want. I'm looking to ONLY rotate specific games that are compatible with cocktail mode.
Thank you in advance!
-
@cybermrc said in Display_rotate=1 for specific ROMs?:
I feel like this is a newb question, but, how is this accomplished?
I've built a cocktail arcade table and am having a difficult time getting this to work correctly.Would I modify (example) frogger.cfg in /opt/retropie/configs/mame-mame4all/cfg, and add a line display_rotate=1?
No, you put rom-specific configs right next to (in the same directory as) your rom. And, you need to name it identically to the rom file with the added .cfg extension, so for frogger it would be frogger.zip.cfg.
Something worth noting, these retroarch configs ONLY affect the libretro core emulators. So, lr-mame4all would follow the config, but not the standalone mame4all.
Finally, the dip switches serve to enable player 2 screen flipping. You won't notice it unless you set the dip switch, reset the game, insert two credits and start a 2-player game. For roms that support cocktail cabinets, it will rotate player 2 gameplay 180 degrees from however you have player 1 oriented.
-
Thanks for your reply, however I'm still lost. I tried making a frogger.zip.cfg file and placed it in the same path as the ROM, /home/pi/RetroPie/roms/mame-mame4all/, and added the line display_rotate=1. I then set the Cocktail mode in the DIP switch settings in the menu, rebooted, relaunched the game, and it still didn't change anything.
Am I missing something else?
Can you elaborate on the retroarch configs only affecting the libretro core emulators? What does that mean?Thank you!
-
Ok I got it to work but it applies to all ROMs.
I followed this thread here: http://blog.petrockblock.com/community/members/buzz/forums/replies/page/37/
and modified /opt/retropie/emulators/mame4all/mame.cfg; changing the line ror=no to ror=yes.
The display is now oriented correctly for cocktail games, but all the other non-cocktail games are rotated incorrectly 90 degrees (incorrectly). I guess I can settle for changing the emulator to lr-mame4all get the non-cocktail games to display correctly, but, is there a way to do this without having to specify a different emulator?
-
@cybermrc which mame4all are you using? mame4all-Pi or lr-mame4all? The per rom configs only apply to libretro (retroarch) emulators. I suspect you are using the standalone mame4all-pi. Try switching your default to lr-mame4all using runcommand (using the menu that flashes briefly when you launch a game) and the per rom cfg files will work.
-
@cybermrc I reread your last post more closely. Yeah, you should simply use the libretro mame for everything since you can have the per-rom control with configs. That's the reason your configs weren't working. They are retroarch configs that only apply to the lr- emulators. That other mame.cfg file you edited following the post you linked is specifically for configuring the standalone mame4all-Pi emulator--the whole emulator, as you found out.
-
@cybermrc you probably figured this out by now, but the cocktail switch only serves to flip player 2 upside-down. It won't induce the initial rotation.
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.