Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: H and V in rotating mame mala machine.  (Read 2896 times)

0 Members and 1 Guest are viewing this topic.

Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
H and V in rotating mame mala machine.
« on: April 26, 2023, 02:32:25 pm »
My mame / mala machine rotates for H and V games. Some games we prefer to play horizontal, even though they are vertical games.... Paddle Mania for example.

Please can somebody (probably DaOldMan) tell me what I need to edit to instruct Mala that this game is H, not V.

Thank you.

PBJ need not troll this thread.

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3320
  • Last login:Today at 03:51:19 pm
Re: H and V in rotating mame mala machine.
« Reply #1 on: April 26, 2023, 06:06:02 pm »
With notepad, create and save a [romname].ini file for the game, and place it in the INI folder. For that game, Mame will use any settings in that to override anything in mame.ini

I guess the setting you want is:  -norotate

For more info & options, look up "core rotation options"

Check out my completed projects!


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9243
  • Last login:Today at 12:38:17 pm
  • ...
Re: H and V in rotating mame mala machine.
« Reply #2 on: April 26, 2023, 06:36:28 pm »
It's been a looooong time.  Hopefully Da Old Man will come along and set you straight.

If not, here is what I remember which may be outdated or incorrect:
IIRC I had to modify mame.xml and then refresh the all games list in Mala.
If the game was present in another list, I had to delete it and add it back from the all games list in order for it to have the updated info.
I really hope there is another way because mame.xml has become too huge to work with in notepad.
I tried to look at it to refresh my memory of what setting to change, but it wasn't loading for me.

Looking at an old folder, it appears that I also used mlgconverter.exe (comes with the mala gamelist editor) to convert the gamelist to an ini file and then convert it back to mlg after changes were made.
That looks to be the easier route if it works.
Attached some batch files that I used to convert the gamelist named "classics".  These are just examples.  Path and gamelist name will need changed and the extension will need changed to .bat.
Like I said, it's been many years since I messed with this stuff.

EDIT: After you convert the gamelist to an ini file it becomes readable and there is a line for "videoOrientation=horizontal"
« Last Edit: April 26, 2023, 06:42:20 pm by BadMouth »

Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
Re: H and V in rotating mame mala machine.
« Reply #3 on: April 26, 2023, 06:52:20 pm »
Thank you fellas. I'll have a go at this after work tomorrow.

I did look at the xml earlier and found Paddle Mania but could not see anything that appeared to be related to orientation. I was looking for 'vertical'. Maybe I should have been looking for 'rotate' or something like that.
« Last Edit: April 26, 2023, 06:56:11 pm by Ropi Jo »

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3320
  • Last login:Today at 03:51:19 pm
Re: H and V in rotating mame mala machine.
« Reply #4 on: April 26, 2023, 08:19:45 pm »
Notepad++ works much better for editing large files like mame.xml. It is free.

In mame.xml, rotation is shown in degrees. "0" or "180" = horizontal (normal/flipped), and "90" or "270" = vertical (right/left rotation).
Check out my completed projects!


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9243
  • Last login:Today at 12:38:17 pm
  • ...
Re: H and V in rotating mame mala machine.
« Reply #5 on: April 27, 2023, 06:00:43 am »


In mame.xml, rotation is shown in degrees. "0" or "180" = horizontal (normal/flipped), and "90" or "270" = vertical (right/left rotation).

This.  This is what I was trying to verify when I couldn't get the xml open in notepad.  Remember that it will not change in Mala until you refresh the all games list and the change will not automatically flow to your other gamelists.  The game has to be deleted and added back to other lists.

Notepad++ works much better for editing large files like mame.xml. It is free.
Thanks.  Mame.xml opened right up in Notepad++
« Last Edit: April 27, 2023, 07:59:04 am by BadMouth »

Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
Re: H and V in rotating mame mala machine.
« Reply #6 on: April 27, 2023, 08:11:08 am »
Thanks again. I did use notepad++ when doing the '0 games work-around' for newer mame with mala.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5147
  • Last login:July 06, 2024, 01:20:33 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: H and V in rotating mame mala machine.
« Reply #7 on: April 29, 2023, 11:54:36 am »
Just now seeing this.
Mala does use the mame.xml file to get game info, if I recall correctly.
They changed the way the rotation was listed in the newer xml files, this is what "broke" my joychoose add-on, however I think I fixed that with controlchoose add-on. Although Im not 100% sure it did fix it.
I need to revisit this program because I was working on a way to bypass the xml commands to do what you want based on the command in controlchoose.
It seemed to me like everyone was moving away from mala, so i guess i dropped the ball.
Looks like what BadMouth and Zebidee suggest should work, let us know what you come up with.

Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
Re: H and V in rotating mame mala machine.
« Reply #8 on: May 05, 2023, 03:17:45 pm »
Found the rotate in the xml and edited with notepad++. Simple after all.

Thank you all.