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: Question on .ini files  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

botez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:September 04, 2023, 11:53:06 pm
Question on .ini files
« on: April 12, 2002, 12:06:03 pm »
I am creating a control panel that will have two 8-way joysticks with 6-buttons each and then a 4-way with 3 buttons in between the two 8-ways.

My questions pertaining to this is how to set up the cp so that the 8-way and 4-way will both be the default "first player" controllers.  I could wire them to the same keys in my keyboard encoder, but thought it might be easier to simply create a "gamefile.ini" for each of the games that I would use the 4-way joystick on.  My question is, what is the format for writing up the .ini file.  Any links and/or advice to this would be great.

Thanks, botez
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4946
  • Last login:July 31, 2022, 10:26:34 pm
Re: Question on .ini files
« Reply #1 on: April 12, 2002, 02:26:47 pm »
Are you using mame?

if so, copy around your mame\cfg\default.cfg file.  This way you can have one for all 4 player games and one for all the others.  

btw, JFront handles this automatically.... if I ever get to release it...

One last note.  DONT MAKE THEM BOTH THE SAME KEYS!  I had this going on my cabinet at one point and when I would play a fighting game with a friend, if I was about to beat him, he would grab the other joystick to stop me!  (what an ass......wish I had made it use the player 2 controls so I could get him!)
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

botez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:September 04, 2023, 11:53:06 pm
Re: Question on .ini files
« Reply #2 on: April 12, 2002, 03:28:48 pm »
Lilwolf

Thanks for the advice.  However, I copied the default.cfg file and it doesn't work.  I then went in to edit it, and its a binary file, so I can't view it.  What am I missing here?

botez
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4946
  • Last login:July 31, 2022, 10:26:34 pm
Re: Question on .ini files
« Reply #3 on: April 12, 2002, 05:33:33 pm »
no need to edit it.  You already have an editor for it (mame).

So, setup your defaults to use the 4way joystick.  Quit and copy it to a name 4way.cfg

Then go into mame and set everything up for 2 8ways... then quit and copy  it to a file named 8way.cfg.

then copy either 4way or 8way depending on what you want to use
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

aramis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 94
  • Last login:November 26, 2002, 09:24:04 pm
  • mame cab ALMOST done!
Re: Question on .ini files
« Reply #4 on: April 13, 2002, 05:04:52 pm »
...or, you could use the TAB menu and change the "input (this game)" settings. It will then save them to <gamename>.cfg in the cfg folder.

The pro of this option is that it once it's setup, mame will use it automatically, no file copying/renaming on your part.

The con of this option is that you have to do this for EACH game that you want to be different than the defualt config. But you only have to do it once...

As for .ini files (your original post topic)...the .ini files only contain info such as screen refresh, scanlines, frameskip, mouse enabled, etc. settings. If you want to change these things for a certain game, simply copy mame.ini to <gamename>.ini in the default mame directory.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4946
  • Last login:July 31, 2022, 10:26:34 pm
Re: Question on .ini files
« Reply #5 on: April 13, 2002, 06:56:30 pm »
The trouble with that is on my cabinet its a major pain in the butt to change any settings (no keyboard where in reach of the screen).   So trying to generalize the settings as much as possible is great.

So you could configure 4-ways once and use them for all 4ways after that by copying aroudn the defaults.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

aramis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 94
  • Last login:November 26, 2002, 09:24:04 pm
  • mame cab ALMOST done!
Re: Question on .ini files
« Reply #6 on: April 13, 2002, 09:37:39 pm »
I use an IPAC in my cabinet, so the shift key comes in really handy for going into the tab menu, changing keys, etc...

I haven't had to use a keyboard yet to config...except it always takes me a second to remember "ok, which joystick direction was enter?"... :)
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »