Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I just checked, and the -listxml doesn't give the dipswitch values

	<game name="005" sourcefile="segag80r.c">
<description>005</description>
<year>1981</year>
<manufacturer>Sega</manufacturer>
<rom name="1346b.cpu-u25" size="2048" crc="8e68533e" sha1="a257c556d31691068ed5c991f1fb2b51da4826db" region="maincpu" offset="0"/>
<rom name="5092.prom-u1" size="2048" crc="29e10a81" sha1="c4b4e6c75bcf276e53f39a456d8d633c83dcf485" region="maincpu" offset="800"/>
<rom name="5093.prom-u2" size="2048" crc="e1edc3df" sha1="4f593546bbb0f50850dc6286cb514af6831c27a7" region="maincpu" offset="1000"/>
<rom name="5094.prom-u3" size="2048" crc="995773bb" sha1="98dd826527853bc031edfb9a821778cc3e906150" region="maincpu" offset="1800"/>
<rom name="5095.prom-u4" size="2048" crc="f887f575" sha1="de96573a91b60b090b1f441f1410ecad63c9467c" region="maincpu" offset="2000"/>
<rom name="5096.prom-u5" size="2048" crc="5545241e" sha1="ee504ccaab469100137717341a1b461175ff792d" region="maincpu" offset="2800"/>
<rom name="5097.prom-u6" size="2048" crc="428edb54" sha1="4f3df6017068d939014a8f638f28e3228acb7add" region="maincpu" offset="3000"/>
<rom name="5098.prom-u7" size="2048" crc="5bcb9d63" sha1="c0c91bc9f75ad88a6e15c554a980d5c075725fe8" region="maincpu" offset="3800"/>
<rom name="5099.prom-u8" size="2048" crc="0ea24ba3" sha1="95a30c9b63ef1c346df0da71af3fdecd1a75cb8f" region="maincpu" offset="4000"/>
<rom name="5100.prom-u9" size="2048" crc="a79af131" sha1="0ba34130174e196015bc9b9c135c420209dfd524" region="maincpu" offset="4800"/>
<rom name="5101.prom-u10" size="2048" crc="8a1cdae0" sha1="f7c617f9bdb7818e6069a981d0c8820deade134c" region="maincpu" offset="5000"/>
<rom name="5102.prom-u11" size="2048" crc="70826a15" sha1="a86322d0e8a88534e9b78dcde42ae4c441276913" region="maincpu" offset="5800"/>
<rom name="5103.prom-u12" size="2048" crc="7f80c5b0" sha1="00748cd5fc7f75fdca194e748524d406c006296d" region="maincpu" offset="6000"/>
<rom name="5104.prom-u13" size="2048" crc="0140930e" sha1="f8ef894c46d3663bd89d2d817675a67075d3e0d6" region="maincpu" offset="6800"/>
<rom name="5105.prom-u14" size="2048" crc="17807a05" sha1="bd99f5beab0155f6e4d2fab2fa5f4e147c5730d5" region="maincpu" offset="7000"/>
<rom name="5106.prom-u15" size="2048" crc="c7cdfa9d" sha1="6ab7adc60ac7bb53a7175e8de51924008737c9ac" region="maincpu" offset="7800"/>
<rom name="5107.prom-u16" size="2048" crc="95f8a2e6" sha1="89c92e000b3e1630380db779370cf9f5b13e5719" region="maincpu" offset="8000"/>
<rom name="5108.prom-u17" size="2048" crc="d371cacd" sha1="8f2cdcc0b4e3b77e0958d257e37accefc5749cde" region="maincpu" offset="8800"/>
<rom name="5109.prom-u18" size="2048" crc="48a20617" sha1="5b4bc3beda0404ff0a61bb42751b87f71817f363" region="maincpu" offset="9000"/>
<rom name="5110.prom-u19" size="2048" crc="7d26111a" sha1="a6d3652ae606a5b75026e524c9d6aaa78300741e" region="maincpu" offset="9800"/>
<rom name="5111.prom-u20" size="2048" crc="a888e175" sha1="4c0af94441bf51dfc852372a5b90d0830df81363" region="maincpu" offset="a000"/>
<rom name="epr-1286.sound-16" size="2048" crc="fbe0d501" sha1="bfa277689790f835d8a43be4beee0581e1096bcc" region="005" offset="0"/>
<rom name="6331.sound-u8" size="32" crc="1d298cb0" sha1="bb0bb62365402543e3154b9a77be9c75010e6abc" region="proms" status="baddump" offset="0"/>
<sample name="lexplode.wav"/>
<sample name="sexplode.wav"/>
<sample name="dropbomb.wav"/>
<sample name="shoot.wav"/>
<sample name="missile.wav"/>
<sample name="heilcopt.wav"/>
<sample name="whistle.wav"/>
<chip type="cpu" tag="maincpu" name="Z80" clock="3867000"/>
<chip type="audio" tag="samples" name="Samples"/>
<chip type="audio" tag="005" name="005 Custom"/>
<display type="raster" rotate="270" width="256" height="224" refresh="59.998138" pixclock="5156000" htotal="328" hbend="0" hbstart="256" vtotal="262" vbend="0" vbstart="224" />
<sound channels="1"/>
<input players="2" buttons="1" coins="2" service="yes">
<control type="joy4way"/>
</input>
<dipswitch name="Lives">
<dipvalue name="3" default="yes"/>
<dipvalue name="4"/>
<dipvalue name="5"/>
<dipvalue name="6"/>
</dipswitch>
<dipswitch name="Cabinet">
<dipvalue name="Upright" default="yes"/>
<dipvalue name="Cocktail"/>
</dipswitch>
<dipswitch name="Unused">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unused">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unused">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unused">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unused">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Coin A">
<dipvalue name="4 Coins/1 Credit"/>
<dipvalue name="3 Coins/1 Credit"/>
<dipvalue name="2 Coins/1 Credit 5/3 6/4"/>
<dipvalue name="2 Coins/1 Credit 4/3"/>
<dipvalue name="2 Coins/1 Credit"/>
<dipvalue name="1 Coin/1 Credit" default="yes"/>
<dipvalue name="1 Coin/1 Credit 5/6"/>
<dipvalue name="1 Coin/1 Credit 4/5"/>
<dipvalue name="1 Coin/1 Credit 2/3"/>
<dipvalue name="1 Coin/2 Credits"/>
<dipvalue name="1 Coin/2 Credits 4/9"/>
<dipvalue name="1 Coin/2 Credits 5/11"/>
<dipvalue name="1 Coin/3 Credits"/>
<dipvalue name="1 Coin/4 Credits"/>
<dipvalue name="1 Coin/5 Credits"/>
<dipvalue name="1 Coin/6 Credits"/>
</dipswitch>
<dipswitch name="Coin B">
<dipvalue name="4 Coins/1 Credit"/>
<dipvalue name="3 Coins/1 Credit"/>
<dipvalue name="2 Coins/1 Credit 5/3 6/4"/>
<dipvalue name="2 Coins/1 Credit 4/3"/>
<dipvalue name="2 Coins/1 Credit"/>
<dipvalue name="1 Coin/1 Credit" default="yes"/>
<dipvalue name="1 Coin/1 Credit 5/6"/>
<dipvalue name="1 Coin/1 Credit 4/5"/>
<dipvalue name="1 Coin/1 Credit 2/3"/>
<dipvalue name="1 Coin/2 Credits"/>
<dipvalue name="1 Coin/2 Credits 4/9"/>
<dipvalue name="1 Coin/2 Credits 5/11"/>
<dipvalue name="1 Coin/3 Credits"/>
<dipvalue name="1 Coin/4 Credits"/>
<dipvalue name="1 Coin/5 Credits"/>
<dipvalue name="1 Coin/6 Credits"/>
</dipswitch>
<driver status="imperfect" emulation="good" color="good" sound="imperfect" graphic="good" savestate="unsupported" palettesize="64"/>
</game>

Posted

Tempest, just in case you didn't catch it, for digital inputs the defvalue is either the same as the mask or 0, depending if the input is ACTIVE_LOW or ACTIVE_HIGH, respectively. (ACTIVE_HIGH/LOW are defined in src/emu/inptport.h.)

I would be very interested in the code you use to parse mame's source inputs. I was looking into this for other reasons before tags were forced on all inputs, and mame used an index number. I could not figure out how the index number was calculated. Watch out for INPUT_PORTS_EXTERN, PORT_INCLUDE, and PORT_MODIFY. All the special stuff is declared in the same inptport.h file.

Two possible problems: not everyone downloads the source, and mame has changed the input declare area quite a few times and semi-recently. :mellow: However, if you can figure out how, other non-official mame builds can get build their cfg files, and you won't need to rerun all the games in mame every new version (IOW, ~weekly if you keep up with the U builds, or ~monthly if update to the major releases).

Posted

BKenobi - The information definately will have to come from the Drivers. I thought about it after I posted this morning, and I think this should be a built-in feature of CFG Magician. If the user should choose to, they could browse to the Mame source to create their own empty cfgs, similar to the way you have to build your own input file in RomLister.

Urebelscum - I had sorta figured out the defvalues, but thanks for confirming it. I haven't started coding anything, I was just browsing different Drivers, and comparing them to the known values that I had in the cfgs to find a pattern. I'm sure I have a lot ahead of me, and am currently in the "Mind Wrapping" stage.

Now that everyone is on-board, I hope I can pull it off... :P .

Posted
..am currently in the "Mind Wrapping" stage.

When I'm coding, I frequently refer to it as the "Mind Warping" stage.

  • 1 month later...
  • 2 weeks later...
Posted
DipSwitch options are now available in CFG Magician. :)

Thanks Tempest! My cab is on hold still while other things take precedence.

BTW, what MAME version do I have to be running to use this? It's probably listed elsewhere...I'll go look.

Guest
This topic is now closed to further replies.
×
×
  • Create New...