Closed jotego closed 4 years ago
Too much attention to basically meaningless option. Actually, all you need is to hardcode (in default field) 1 coin/1 credit.
There is another option if you really want to have some options for coins: MRA has values option. So in ids you list few ids like "1c/1cr,1c/2cr,1c/3cr" and reflect them in values. So OSD will have only 3 options for coinage. This is how i did for several arcades having many useless coin options.
here is example from Ponpoko arcade:
<dip bits="24,27" name="Coinage" ids="3c/1cr,2c/1cr,1c/1cr,1c/2cr" values="4,2,1,3"/>
as you see coinage uses 4 bits, but i've added only 4 options.
Similar in Sky Skipper:
<dip bits="0,3" name="Coinage" ids="1c/1cr,1c/2cr,1c/3cr,Free Play" values="0,9,5,15"/>
what is base=10
?
For MiST I think it is ok with a hard coded value. But MiSTer users want all the juice! And the MiSTer OSD is wider so we can afford it. MiSTer can ignore the coin or maybe have a low-clutter OSD option that get rid of these items.
base=10
is used by MiST to offset all DIP bits. Because MiST only has the 32-bit status word and it must be shared. With base=xx
the same DIP definitions can be used for both MiST and MiSTer and the numbers will just get shifted by the mra tool. MiSTer can ignore this attribute.
But MiSTer users want all the juice!
No one will cry if not all coin options will be available. Those who wants useless options, can always modify MRA for their liking.
I ran a poll on Twitter:
We need to support all DIPs even if there is a mechanism to hide some.
I'm dropping the coin="yes"
proposal as I think we can just parse the DIP name as it will usually be "Coin A" or "Coinage" so it's easy to filter if we want to.
I am thinking of adding another attribute for dip switches: coin. This will serve to define coin related switches. This can serve to hide them in the OSD in MiSTer, or to ommit them in the ARC, which is my main purpose.
Check the example where
coin="yes"
is defined in a couple of places. As you see these are very long strings with little value for us.If you are ok with it I'll make a PR when I'm ready