EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: How to Apply Fix_MAME.xml file question.  (Read 5441 times)

TomJones

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
  • Operating System:
  • Windows Server Home/Server 2003 Windows Server Home/Server 2003
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
How to Apply Fix_MAME.xml file question.
« on: 11 July 2015, 08:16 »

It is said that MAMEUIFX32 0.163 listxml output lists ketsui_v100.u38 with the wrong SHA-1 hash value. Clrmamepro will refuse to rebuild that ROM even though the CRC32 hash value is correct. I have obtained a file called fix_Arcade_MAME_Roms_mame.xml that contains the following:
<?xml version="1.0"?>

<datafile>
   <header>
      <name>fix_mame</name>
      <description>fix_mame 0.161 (Apr 29 2015)</description>
      <category>FIXDATFILE</category>
      <version>04/30/2015 04:16:08</version>
      <date>04/30/2015</date>
      <author>RomVault</author>
      <homepage></homepage>
      <url></url>
      <comment>Created by RomVault</comment>
   </header>
   <game name="ketarr17">
      <description>Ketsui: Arrange (2014/07/16 Arrange Ver. 1.7)</description>
      <year>2012</year>
      <manufacturer>hack by Trap15</manufacturer>
      <rom name="ketsui_v100.u38" size="2097152" crc="2cb80b89" sha1="9aaba1242d7ce29915a31d40341da82985927f9d"/>
   </game>
</datafile>
Assuming that this xml file does contain the correct SHA-1 hash value, how would I go about applying the new xml data to clrmampro so that is accepts the Ketsui Arrange ketsui_v100.u38 rom as valid?
Currently the scanner says:
Ketsui: Arrange (2014/07/16 Arrange Ver. 1.7) [folder: ketarr17 - parent: ket - size: 40mb]
missing set: Ketsui: Arrange (2014/07/16 Arrange Ver. 1.7)
missing rom: ketsui_v100.u38 [size: 2097152] [CRC32: 2cb80b89] [SHA1: 9aaba1242d7ce29915a31d40341da82985927f9d]

Thank You
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
Re: How to Apply Fix_MAME.xml file question.
« Reply #1 on: 12 July 2015, 20:04 »

Guess you get something wrong here....

A fixdatfile is nothing more than an ordinary datfile which you can use to create a new profile for. The only difference is that it usually contains only a sub set of sets/roms/chds....files which a person misses...So this fix datfile is created and shared and the user hopes someone can find this missing stuff.

So you can't really "apply" it to your mameuifx profile.

If there is a typo or simply wrong sha1 present in the database it usually gets fixed with the next version. If you can't wait so long you still can add the file (assuming you got the correct one) with the rebuilder or via scanner's fix-missing (or of course manually).
As long as you don't scan for SHA1 checksum mismatched cmpro won't show you any issues.
By default fix-missing and the rebuilder do check sha1 values (when given in the database)....but you can turn this additional check off (rebuilder/scanner advanced)
Logged

TomJones

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
  • Operating System:
  • Windows Server Home/Server 2003 Windows Server Home/Server 2003
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
Re: How to Apply Fix_MAME.xml file question.
« Reply #2 on: 13 July 2015, 09:08 »

Solved!
I used the free Nirsoft HashMyFiles utility to get the SHA1 hash of the ketsui_v100.u38 ROM file.
I did: MameUIFX32 -listxml >MameUIFX32_0.163_ketarr17_Fixed.dat to create a full .dat file for MameUIFX342 0.163.
I opened the MameUIFX32_0.163_ketarr17_Fixed.dat file and in the ketarr17 section I replaced the SHA1 with the SHA1 obtained earlier and then saved the altered MameUIFX32_0.163_ketarr17_Fixed.dat file.
In the profiler I did "Add DatFile..." to add the MameUIFX32_0.163_ketarr17_Fixed.dat to the profiler.
Then: "Load / Update", "Settings", "Scanner" and "New Scan".
The scan now completes without a hitch.
I now have a green profile instead of a red profile.
Although MameUIFX32 still lists the ketarr17 game under the Unavailable category, the game does play O.K.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
Re: How to Apply Fix_MAME.xml file question.
« Reply #3 on: 13 July 2015, 09:21 »

well....of course simply replacing the assumed wrong sha1 value in the datfile works....I thought you got a direct mame data import ....without a datfile)
Logged

TomJones

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
  • Operating System:
  • Windows Server Home/Server 2003 Windows Server Home/Server 2003
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
Re: How to Apply Fix_MAME.xml file question.
« Reply #4 on: 13 July 2015, 10:27 »

Not so "of course"  for us non-programmers.
It took me the better part of two days to learn enough about .dat (xml) files and MAME command line switches to perform the steps outlined above.
And don't forget about that absolutely essential file redirection character ">".
I can't count how many times the MAME -listxml output disappeared to who knows where until I caught on to that little file redirection character ">".
I hope this thread will help others create, fix and use .dat files without having to learn it the hard way.
Thank You
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Chrome 43.0.2357.132 Chrome 43.0.2357.132
    • View Profile
Re: How to Apply Fix_MAME.xml file question.
« Reply #5 on: 13 July 2015, 12:09 »

others do not use datfiles for mame ;-)
« Last Edit: 14 July 2015, 08:56 by Roman »
Logged
Pages: [1]   Go Up
 

Page created in 0.201 seconds with 20 queries.

anything
anything