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: private customizations to controls.ini / johnny5  (Read 1336 times)

0 Members and 1 Guest are viewing this topic.

RobotronNut

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 315
  • Last login:December 22, 2018, 11:39:19 am
  • I want to build my own arcade controls!
private customizations to controls.ini / johnny5
« on: April 14, 2006, 08:37:27 pm »
i've been using controls.ini, johnny5, and mamewah with good success. (btw, thanks to all the developers who put all that together!)

i've been tweaking controls.ini in ways that suit my particular situation but would not be appropriate to contribute back to the project for general use, because they violate the controls.ini guidelines.

i'd like to be able to take future releases of controls.ini, while retaining my changes. is there a recommended way of doing this? i can think of a couple of possibilities:

(1) keep my stuff in a separate file, which i just prepend to controls.ini whenever a new version comes out. for now, j5 is the only program that i'm using that reads controls.ini, and i'm guessing that it just reads the file from the beginning and stops as soon as it finds the entry it's looking for, so having duplicates would be no problem (first one wins). is that a good assumption?

(2) use a source code control system and let it perform automatic merges with manual conflict resolution. this would be more cumbersome but might work better if the file format itself changes a lot.

i'd appreciate any suggestions anyone may have about this.
« Last Edit: April 14, 2006, 08:45:48 pm by RobotronNut »
to see my "Frankenpanel" and design notes, click here.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 11:52:51 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: private customizations to controls.ini / johnny5
« Reply #1 on: April 15, 2006, 09:57:07 am »
First off....  http://fe.donkeyfly.com/forum/index.php?topic=119.180


Yes J5 generally just reads the first entry to match, however it uses window's "readprivateprofilestring" which does the searching automatically, so how exactly it finds a match is a bit of a mystery. 



The format wont be changing anytime soon barring the occasional addition of a control type.  Sirp and I went to great lengths when designing it to assure ourselves that we would have to redesign the format later on. 

RobotronNut

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 315
  • Last login:December 22, 2018, 11:39:19 am
  • I want to build my own arcade controls!
Re: private customizations to controls.ini / johnny5
« Reply #2 on: April 16, 2006, 09:51:02 pm »
sounds good. i'll give the simpler method a try. thanks.
to see my "Frankenpanel" and design notes, click here.

RobotronNut

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 315
  • Last login:December 22, 2018, 11:39:19 am
  • I want to build my own arcade controls!
Re: private customizations to controls.ini / johnny5
« Reply #3 on: April 24, 2006, 06:15:10 pm »
i've tried the simpler method ("keep my stuff in a separate file, which i just prepend to controls.ini whenever a new version comes out"), and it works just fine.
to see my "Frankenpanel" and design notes, click here.