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: Cant get Mame to rotate the games within Mala  (Read 6199 times)

0 Members and 1 Guest are viewing this topic.

creatine28

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 481
  • Last login:July 26, 2012, 03:41:48 pm
  • Which way to the Arcade?
Cant get Mame to rotate the games within Mala
« on: May 24, 2010, 02:19:45 pm »
When I rotate Mala, I cant seem to get the mame games to also auto rotate.   How can I do this?

I've tried the setting with in Mala "rotate mame with Mala" and still nothing happens.  I must be doing something wrong.

Do I need to make a change to my Mame.ini file or isn't mala suppose to already edit the ini file when I select the rotate mame option?

FYI, I'm using the newest beta of Mala and I also tried the previous version and still no luck.


Thanks,

Steve

Triangel7D

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 128
  • Last login:September 10, 2017, 01:06:09 pm
Re: Cant get Mame to rotate the games within Mala
« Reply #1 on: June 09, 2010, 04:15:21 pm »
I just went through this. Change autoror or autorol ("auto rotate right/left) to "1" in mame.ini.

64bitcraft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 13, 2010, 12:16:21 am
Re: Cant get Mame to rotate the games within Mala
« Reply #2 on: June 29, 2010, 11:43:39 pm »
The autoror & autorol, I believe, just changes it so Mame rotates to weather the rom is for a vertical or horizontal setup.  Is there a way where mala can alter the ror and rol (manual rotation) values according to which way the Front End is rotated? Theres an option in the settings that does say "rotate Mame with Mala", but it doesn't work for me either.   

I'm running Mala with MameUI32.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Cant get Mame to rotate the games within Mala
« Reply #3 on: July 08, 2010, 12:37:26 am »
Hi,

    I just found a minor bug in this area. so ...... Try the latest beta.  1.656

    I just tested and works with mame v.89 and v.110

   This is What mala does to mame.ini when you enable 'Rotate mame with mala'


It disables the auto stuff:

Code: [Select]
'norotate' 0
'autoror' 0
'autorol' 0

And then every time you change orientation it edits the mame.ini file to match

Code: [Select]
rotate 0

UpdateMAMELine('ror', '0');
UpdateMAMELine('rol', '0');
UpdateMAMELine('flipx', '0');
UpdateMAMELine('flipy', '0');

rotate 90

UpdateMAMELine('ror', '0');
UpdateMAMELine('rol', '1');
UpdateMAMELine('flipx', '0');
UpdateMAMELine('flipy', '0');

rotate 180

UpdateMAMELine('ror', '0');
UpdateMAMELine('rol', '0');
UpdateMAMELine('flipx', '1');
UpdateMAMELine('flipy', '1');

rotate 270

UpdateMAMELine('ror', '1');
UpdateMAMELine('rol', '0');
UpdateMAMELine('flipx', '0');
UpdateMAMELine('flipy', '0');
« Last Edit: July 08, 2010, 09:02:34 pm by loadman »

64bitcraft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 13, 2010, 12:16:21 am
Re: Cant get Mame to rotate the games within Mala
« Reply #4 on: July 09, 2010, 09:28:23 am »
I just downloaded the MaLa 1.657 beta, but the same problem is still there.  Out of curiousity, where is Mala looking for the ini file? I have a feeling it doesn't work because my version of mame stores it in a [different] subdirectory.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Cant get Mame to rotate the games within Mala
« Reply #5 on: July 09, 2010, 09:34:29 am »
I just downloaded the MaLa 1.657 beta, but the same problem is still there.  Out of curiousity, where is Mala looking for the ini file? I have a feeling it doesn't work because my version of mame stores it in a [different] subdirectory.

in the mame directory

I have not tested in the latest versions just mame v.89 and v.110

I you can tell me what file needs to be changed in latest versions to what and where it is ???  I might be able to fix

64bitcraft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 13, 2010, 12:16:21 am
Re: Cant get Mame to rotate the games within Mala
« Reply #6 on: July 09, 2010, 10:03:11 am »
I'm running mameui32 v1.37u1.  I'm not sure about other versions of mame, but for mine, the mame.ini file is in a subfolder called "ini" of the main directory. 

Thanks for looking into it!

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Cant get Mame to rotate the games within Mala
« Reply #7 on: July 09, 2010, 08:06:51 pm »
I'm running mameui32 v1.37u1.  I'm not sure about other versions of mame, but for mine, the mame.ini file is in a subfolder called "ini" of the main directory.  

Thanks for looking into it!


I just ran command line mame.138 and when you ask it to generate a .ini file it does NOT put it in a sub-folder.

I don't recommend mame32 with MaLa or any FE    :-\  The reason is things just like this. It is supposed to behave the same as command line mame but history shows subtle differences like this cause PAIN!

Q) In the logs and also an error dialogue pops up if MaLa can't find the mame.ini file. Are you seeing that in the logs (at Debug Level). Use the Latest Version? 1.658

But.....  ;)   I can change it to look for that but I am assuming that the ror,rol flip works the same as older versions.
You need to test that as I don't have and roms that work with recent versions to see if rotate/flip works with the same changes to mama.ini. Refer above posting about it to see the changes mala makes to the .ini file
« Last Edit: July 09, 2010, 09:28:14 pm by loadman »

64bitcraft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 13, 2010, 12:16:21 am
Re: Cant get Mame to rotate the games within Mala
« Reply #8 on: July 10, 2010, 11:44:19 pm »
Okay, I found some interesting results.  I ran verbose debug mode on the 1.658 beta, and attached the log file along with a copy of the log file and my mame.ini file (just in case its needed, but I don't think it will).  Prior to this, I also checked out the mame.ini file, and the same rol, ror, etc variables are both present and function as expected.  I tested them simply by running mame without Mala running.

Procedure
  After Mala starts up, I navigated to the MAME gamelist.  Once there, I went over to the side controller panel successfully had Mala rotate by pressing one of the buttons.  I started up a game while Mala was vertical, the game ran horizontal, and exited. After that, I went to a different game with Mala horizontal, played with the game horizontal, and quit.  Then I exited from Mala.  No error messages during the session (thats normal behavior)
  Also, in a session other than the log file attached, I tried playing around with the Mame.ini file in combination with Mala.  First, I changed both flipx & y to 1, and ran Mala after.  Unlike in my tests running MAME directly, the game ran in the normal rotation (should have been fliped 180).  Upon inspection, the Mame.ini file variables were changed back to zero. The same came of changing rol and ror to 1; the game ran horizontally if you started Mala after saving the Mame.ini file.  However, when I tried changing the variables after starting Mala, the games were rotated accordingly.

Log File
  Mala looks for the Mame.ini file at startup.  At line 22, Mala realizes that 'mameui32.ini' is not the right ini file to change for rotation (its correct).  Line 23, it can't find mame.ini in the mame.exe directory.  At line 24, surprisingly, Mala finds Mame.ini in the correct subdirectory.  Then, at line 25, it actually modifies the mame.ini file successfully (evidence from my Mame testing points to Mala changing the rotation variables to 0).
  Later, when I actually press the side-controller button to have Mala rotate, it's registered at line 174.  However, after stating that the button is in a different controller set and such, line 180 only states that rotation is required.  Unlike in line 25, there is no 'modify' step.

Conclusions
  To my surprise, Mala is finding my Mame.ini file.  Also, it can (and does!) alter it successfully at startup, changing the ror, rol, flipx, and flipy variables to 0.  However, the change of any of these to 1 is not happening when Mala rotates.  I have two theorys.  1) Mala is somehow forgeting (or not storing) the location of the Mame.ini file once Mala finds it and alters it at startup.  Or, 2) Mala knows to rotate its own display, but is for some reason not altering the mame.ini file at the same time.  It could be something else, of course, too.

Well, that was long.  :P  I hope that helps.  Again, thanks for the time and help!

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Cant get Mame to rotate the games within Mala
« Reply #9 on: July 11, 2010, 01:55:39 am »
Interesting:

I have limited time, so this is a great example of how I can help people who help themselves.  :angel:

Your testing seems to reveal that the mame.ini is not being updated in cocktail mode. I never tested that.

If you use the right mouse click to change orientation do you have the same issue,???

Anyway I think I fixed it now in 1.659  ;)
« Last Edit: July 11, 2010, 04:38:12 am by loadman »

64bitcraft

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 13, 2010, 12:16:21 am
Re: Cant get Mame to rotate the games within Mala
« Reply #10 on: July 11, 2010, 08:39:57 am »
Huh.  The right mouse option did work. 
But with the new beta, it seems to work officially in cocktail mode.  Success!  :applaud: