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: Way to automate creation of game-specific .ini files?  (Read 1150 times)

0 Members and 1 Guest are viewing this topic.

rerstad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 70
  • Last login:December 11, 2006, 01:25:57 pm
  • I want to build my own arcade controls!
Way to automate creation of game-specific .ini files?
« on: January 18, 2005, 04:22:59 pm »
I started to create game-specific .ini files for my three-panel cocktail cab to rotate games to display appropriately.

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: Way to automate creation of game-specific .ini files?
« Reply #1 on: January 18, 2005, 05:29:22 pm »
See my reply over at Mameworld.

John

Spartan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 112
  • Last login:December 02, 2009, 07:09:38 pm
  • I like stuff!
    • The Municade
Re: Way to automate creation of game-specific .ini files?
« Reply #2 on: January 19, 2005, 07:44:38 pm »
See my reply over at Mameworld.

John

Link plz?  I cannot seem to find it.

rerstad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 70
  • Last login:December 11, 2006, 01:25:57 pm
  • I want to build my own arcade controls!
Re: Way to automate creation of game-specific .ini files?
« Reply #3 on: January 20, 2005, 08:19:39 am »
Here's the link.

Spartan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 112
  • Last login:December 02, 2009, 07:09:38 pm
  • I like stuff!
    • The Municade
Re: Way to automate creation of game-specific .ini files?
« Reply #4 on: January 20, 2005, 07:34:59 pm »
hmmm -- once upon a time I wrote a program to manually convert the .c driver files so that the cocktail mode is the default setting.  Is this any different?

rerstad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 70
  • Last login:December 11, 2006, 01:25:57 pm
  • I want to build my own arcade controls!
Re: Way to automate creation of game-specific .ini files?
« Reply #5 on: January 21, 2005, 07:46:03 am »
I'd like to see that program.  Manually setting those dip sticks gets a bit boring and I'm sure I've missed some.  No, what I did with this is make an ini for each horizontal rom that tells mame to rotate the game so it plays horizontally and I can use the side control panel on my cocktail.  I suppose it could go the other way as well and you could have a horizontal FE and vertical games launch vertically.  You can make other rom-specific changes to the inis with this app as well.  Worked great.

Spartan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 112
  • Last login:December 02, 2009, 07:09:38 pm
  • I like stuff!
    • The Municade
Re: Way to automate creation of game-specific .ini files?
« Reply #6 on: January 21, 2005, 06:28:00 pm »
Here we go:

http://www.municade.com/municade/software/

Note -- I wrote this guy back when mame was at 0.58.  It still works today, but once the source code is changed, mame will no longer compile.  The problem is that in MAME, I insert comments where the code was changed, and the compiler gets mad b/c 1) sometimes the code is inside of a macro (compiler does not like comments in a macro) and 2) sometimes the code is already commented out.  In C/C++ comments inside of comments are generally a no-no.

So, have a look and good luck!

I about a year ago, I lost the source code in a hd crash, so I can't change the behavior of the proggy anymore.


Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Way to automate creation of game-specific .ini files?
« Reply #7 on: January 22, 2005, 10:53:11 am »
If you want mame to automatically rotate a game if it is a vertical game and to not rotate if it is a horizontal game all you have to do is open p your mame.ini and set autorol or autoror(depending on which way your monitor is mounted) from zero to 1.

Spartan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 112
  • Last login:December 02, 2009, 07:09:38 pm
  • I like stuff!
    • The Municade
Re: Way to automate creation of game-specific .ini files?
« Reply #8 on: January 22, 2005, 12:55:01 pm »
If you want mame to automatically rotate a game if it is a vertical game and to not rotate if it is a horizontal game all you have to do is open p your mame.ini and set autorol or autoror(depending on which way your monitor is mounted) from zero to 1.

you are talking about rol/ror.  We are talking about standup vs. cocktail mode (auto flipping from one player to another)

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Way to automate creation of game-specific .ini files?
« Reply #9 on: January 22, 2005, 04:46:39 pm »
If you want mame to automatically rotate a game if it is a vertical game and to not rotate if it is a horizontal game all you have to do is open p your mame.ini and set autorol or autoror(depending on which way your monitor is mounted) from zero to 1.

you are talking about rol/ror.