Main > Software Forum

Has someone mcm.ini and mame.xml (and controls.dat) combined?

<< < (2/3) > >>

MaMeNnO:
NOP, you have some code to work out ;D

Have sent it by email.

NOP:
yeah, I see that, and thank you!

Could your stuff be made into a standalone application that just takes the 2 files and outputs a 3rd? That would keep me from having to re-write the whole thing, and I'm as lazy as they come.   ;D

-jeff!

Extreme8:
Like my father has always said;
"Give the laziest man the hardest job and he'll find the easiest way to do it." ;)

MaMeNnO:
That's a good quoot Extreme8!

NOP, in what format would that be then? I mean, just a comma separated file?? INI like??

NOP:
For my purposes, this is what I'm dreaming of, a merged xml output file:

   <game romname="puckman" gamename="PuckMan (Japan set 1, Probably Bootleg)" numPlayers="2" alternating="1" mirrored="1" usesService="0" tilt="0" cocktail="1">
      <description>PuckMan (Japan set 1, Probably Bootleg)</description>
      <year>1980</year>
      <manufacturer>Namco</manufacturer>
      <player number="1" numButtons="0">
         <controls>
            <control name="4-way Joystick">
               <constant name="joy4way"/>
            </control>
         </controls>
      <labels>
            <label name="P1_JOYSTICK_RIGHT" value="Right"/>
            <label name="P1_JOYSTICK_LEFT" value="Left"/>
            <label name="P1_JOYSTICK_DOWN" value="Down"/>
            <label name="P1_JOYSTICK_UP" value="Up"/>
         </labels>
      </player>
      <rom name="namcopac.6e" size="4096" crc="fee263b3" sha1="87117ba5082cd7a615b4ec7c02dd819003fbd669" region="cpu1" offset="0"/>
      <rom name="namcopac.6f" size="4096" crc="39d1fc83" sha1="326dbbf94c6fa2e96613dedb53702f8832b47d59" region="cpu1" offset="1000"/>
      <rom name="namcopac.6h" size="4096" crc="02083b03" sha1="7e1945f6eb51f2e51806d0439f975f7a2889b9b8" region="cpu1" offset="2000"/>
      <rom name="namcopac.6j" size="4096" crc="7a36fe55" sha1="01b4c38108d9dc4e48da4f8d685248e1e6821377" region="cpu1" offset="3000"/>
      <rom name="pacman.5e" size="4096" crc="0c944964" sha1="06ef227747a440831c9a3a613b76693d52a2f0a9" region="gfx1" dispose="yes" offset="0"/>
      <rom name="pacman.5f" size="4096" crc="958fedf9" sha1="4a937ac02216ea8c96477d4a15522070507fb599" region="gfx1" dispose="yes" offset="1000"/>
      <rom name="82s123.7f" size="32" crc="2fc650bd" sha1="8d0268dee78e47c712202b0ec4f1f51109b1f2a5" region="proms" offset="0"/>
      <rom name="82s126.4a" size="256" crc="3eb3a8e4" sha1="19097b5f60d1030f8b82d9f1d3a241f93e5c75d6" region="proms" offset="20"/>
      <rom name="82s126.1m" size="256" crc="a9cc86bf" sha1="bbcec0570aeceb582ff8238a4bc8546a23430081" region="sound1" offset="0"/>
      <rom name="82s126.3m" size="256" crc="77245b66" sha1="0c4d0bee858b97632411c440bea6948a74759746" region="sound1" offset="100"/>
      <chip type="cpu" name="Z80" clock="3072000"/>
      <chip type="audio" name="Namco" clock="96000"/>
      <display type="raster" rotate="90" width="288" height="224" refresh="60.606060" />
      <sound channels="1"/>
      <input players="2" buttons="1" coins="2">
         <control type="joy4way"/>
      </input>
      <dipswitch name="Rack Test (Cheat)">
         <dipvalue name="Off" default="yes"/>
         <dipvalue name="On"/>
      </dipswitch>
      <dipswitch name="Service Mode">
         <dipvalue name="Off" default="yes"/>
         <dipvalue name="On"/>
      </dipswitch>
      <dipswitch name="Cabinet">
         <dipvalue name="Upright" default="yes"/>
         <dipvalue name="Cocktail"/>
      </dipswitch>
      <dipswitch name="Coinage">
         <dipvalue name="2 Coins/1 Credit"/>
         <dipvalue name="1 Coin/1 Credit" default="yes"/>
         <dipvalue name="1 Coin/2 Credits"/>
         <dipvalue name="Free Play"/>
      </dipswitch>
      <dipswitch name="Lives">
         <dipvalue name="1"/>
         <dipvalue name="2"/>
         <dipvalue name="3" default="yes"/>
         <dipvalue name="5"/>
      </dipswitch>
      <dipswitch name="Bonus Life">
         <dipvalue name="10000" default="yes"/>
         <dipvalue name="15000"/>
         <dipvalue name="20000"/>
         <dipvalue name="None"/>
      </dipswitch>
      <dipswitch name="Difficulty">
         <dipvalue name="Normal" default="yes"/>
         <dipvalue name="Hard"/>
      </dipswitch>
      <dipswitch name="Ghost Names">
         <dipvalue name="Normal" default="yes"/>
         <dipvalue name="Alternate"/>
      </dipswitch>
      <dipswitch name="2x Speed Cheat">
         <dipvalue name="Disabled" default="yes"/>
         <dipvalue name="Enabled Always"/>
         <dipvalue name="Enabled with Button"/>
      </dipswitch>
      <driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="supported" palettesize="32"/>
   </game>


This is taking MAME's listxml output and merging in controls.xml.  The highlighted stuff was taken from controls.xml.  To make the output smaller, I'd be totally ok with dumping all of the "<rom name="82s123.7f" Sha1...." lines, since they don't do me any good.

-jeff!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version