1
clrmame Discussion / Validating samples in clones
« on: 03 December 2020, 02:58 »
Hi I was wondering if I could get some help understanding how ClrMamePro would process an old DAT with samples. It's for an old version of MAME (mame4all). I removed all the information except the samples for dkong and a clone (dkongpe) to focus on that part of the DAT if it helps.
If the clone, in this case, dkongpe doesn't list any samples i.e. - <sample name="run01.wav"/>, etc. but it does have the tag <sampleof=dkong> will it look to the parent (dkong) to validate the set? I tried it and it shows no missing but I can't help to think it's like a false-positive and not really validating it. I'm so used to seeing the samples listed out in the clones that it looks off to me to see no sample list and just the <sampleof=dkong> tag in the game header information but maybe it's fine to do it this way?
Another question if you used something like DATUtil for example to pull just clones will it fail with no samples actually listed and only the tag <sampleof=dkong>? Is their a more "correct" way to do it as in listing each sample file out in each clone or just using the <sampleof=dkong> tag for all clones?
<game name="dkong">
<description>Donkey Kong (US set 1)</description>
<year>1981</year>
<manufacturer>Nintendo of America</manufacturer>
<sample name="run01.wav"/>
<sample name="run02.wav"/>
<sample name="run03.wav"/>
<sample name="jump.wav"/>
<sample name="dkstomp.wav"/>
</game>
<game name="dkongpe" cloneof="dkong" romof="dkong" sampleof="dkong">
<description>Donkey Kong - Pauline Edition</description>
<year>2013</year>
<manufacturer>hack</manufacturer>
</game>
If the clone, in this case, dkongpe doesn't list any samples i.e. - <sample name="run01.wav"/>, etc. but it does have the tag <sampleof=dkong> will it look to the parent (dkong) to validate the set? I tried it and it shows no missing but I can't help to think it's like a false-positive and not really validating it. I'm so used to seeing the samples listed out in the clones that it looks off to me to see no sample list and just the <sampleof=dkong> tag in the game header information but maybe it's fine to do it this way?
Another question if you used something like DATUtil for example to pull just clones will it fail with no samples actually listed and only the tag <sampleof=dkong>? Is their a more "correct" way to do it as in listing each sample file out in each clone or just using the <sampleof=dkong> tag for all clones?
<game name="dkong">
<description>Donkey Kong (US set 1)</description>
<year>1981</year>
<manufacturer>Nintendo of America</manufacturer>
<sample name="run01.wav"/>
<sample name="run02.wav"/>
<sample name="run03.wav"/>
<sample name="jump.wav"/>
<sample name="dkstomp.wav"/>
</game>
<game name="dkongpe" cloneof="dkong" romof="dkong" sampleof="dkong">
<description>Donkey Kong - Pauline Edition</description>
<year>2013</year>
<manufacturer>hack</manufacturer>
</game>