r/MiSTerFPGA • u/jacobpederson • 10h ago
Scripts for rotating MiSTer TATE games to match a physical CRT and setup SAM to match.
I finally finished this project that I've been thinking about (and complaining about) for a couple years. Some TATE cabinets turned the tube clockwise and others counter-clockwise. Turns out on MiSTer we got pretty much 50/50. On a TATE CRT you pick one direction at a time :D. Every game built for the other direction then appears upside down, and there is no "rotate" button that fixes it on analog video:
- Core "Rotate"/"Orientation" options only affect HDMI. They use the scaler, which doesn't drive the analog output. On the CRT they did nothing in every core tested (Batrider was the one exception, and it gave an unusable narrow picture).
- The only fix that works on a CRT is a 180° flip done by the game itself. That is a game DIP switch ("Flip Screen") or a core OSD option ("Flip Screen", "Vertical flip"). Which of these exists, and whether it really flips the analog picture, varies from game to game and core to core. Some are mirror-only, and some do nothing at all on a CRT.
- DIP settings are stored per MRA file name, as
config/dips/<launched .mra name>.dip. A flip you set while launching a game from one folder doesn't apply when the same game launches from another folder, or from SAM, which launches_Arcade/<name>.mra. A game you fixed by hand in the menu can still come up upside down in SAM. - Folder tags and MRA
<rotation>tags are unreliable. In the Arcade Organizer_Vertical (CW)and_Vertical (CCW)folders that this scan used, 161 games appear in both folders. Many MRA<rotation>tags contradict the folder they are in, so they can't be used to decide orientation.
So every game was checked on a real CRT.
Requirements:
- A MiSTer with a TATE CRT, analog output and Python 3. Stock MiSTer Linux has it.
- Arcade MRAs and cores from update_all.
- The Arcade Organizer folder
_Arcade/_Organized/_4 Video & Inputs/_2 Rotation/(used for the_TATE …folder).
Steps:
- Copy
out/tate_flip_ccw.sh(or_cw) andout/tate_flip_restore.shto/media/fat/Scripts/. - Preview the changes with
tate_flip_ccw.sh --dry-runover SSH, or run it from the Scripts menu. Run it. It:
- backs up all DIP and core settings files and SAM's ini and game list to
/media/fat/config/tate-flip-backups/<timestamp>.tgz;
- backs up all DIP and core settings files and SAM's ini and game list to