Software Support > controls.dat

dat redesign discussion

<< < (2/2)

Yenome:

--- Quote from: SirPoonga on August 29, 2014, 03:43:35 pm ---I need a refresher, what are the oddball things in mame?
I know there is a game that has different controls for 2nd player than 1st?
What uses a 49 way joy other than Blitz/Gauntlet/Midway games?

Also, how do I filter out non-arcade games?  Is it the ismechanical attribute?
<game name="jd_l1" sourcefile="wpc_dcs.c" ismechanical="yes" cloneof="jd_l7" romof="jd_l7">

--- End quote ---

After playing with it for a day I noticed that when merged with the 141 controls romlister was outputting some control names in the old way. The old one wasn't being accepted as proper for Clrmamepro. if you tried to add it as a dat file it would tell you bad exe or you stopped the program. I found the issue when I compared this section with a new xmllist from mame 151. once I changed it all to the new way I was able to create and load a custom dat for just the games I want on my system. with the ability to check crc with clrmamepro for consistency. with out replace all instances of the old 141 with the one for 151 clrmamepro would not load the xml as a dat file and allow all my work I got done. I must say im excited to finally be able to make custom lists for hyperspin and clrmamepro with lil effort.

bikkuric is the game that first displayed this
Old way in 141
 <control type="joy8way"/>

new way that was accepted by 151
 <control type="joy" ways="8"/>

I know at some point I had read bout these changes but it has been a while. so not sure if you knew of this issue.

SirPoonga:
That's the toughest part about the redeign.  So many changes have been made since this has been last updated.  Good new is I finally got my db access back and made a backup.  So the next bit is if I stick with storing in a MySQL db it needs a redesign.  I am looking to see if there is a more modern way of storing the data.  Suggestions welcome.

ZeroQI:
This github project is 4 month old it seems https://github.com/yo1dog/controls-dat-json
He also posted there: http://forum.arcadecontrols.com/index.php/topic,150639.0.html

He wrote "I found the structure of the data in the controls.dat project a bit archaic, convoluted, and difficult to use. So I created a tool that will restructure the controls.dat JSON file in a way that (in my opinion) is much easier to work with. I think the JSON format makes this much easier compared to XML. I also expanded the structure so that more exact and meaningful information could be recorded. It also updates the way the MAME input ports are stored so it is compatible with the latest MAME (no more _EXT inputs)."

That seem to follow through the ideas mentionned (to me) so i thought i would post there to let you know...

Navigation

[0] Message Index

[*] Previous page

Go to full version