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 derive 'snaps' from rom dat  (Read 7986 times)

Traxx

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 8.0 Firefox 8.0
    • View Profile
How to derive 'snaps' from rom dat
« on: 17 November 2011, 20:55 »

Hallo,
i want to create a 0.72 snapshot set. Since i cannot find any proper snapshot dat i have to convert/create/derive it from the rom dat somehow.

Filenames in the rom dat are 'sets'. For snapshots they must be 'roms' i guess. I want clrmame to rebuild just by filename (1942.png). Any idea how to achieve that?
Quote
   <game name="1942">
      <description>1942 (set 1)</description>
      <year>1984</year>
      <manufacturer>Capcom</manufacturer>
      <rom name="01d_sb-2.bin" size="256" crc="8bb8b3df" sha1="49de2819c4c92057fedcb20425282515d85829aa"/>
      <rom name="01m_sb-9.bin" size="256" crc="4921635c" sha1="aee37d6cdc36acf0f11ff5f93e7b16e4b12f6c39"/>
      <rom name="02d_sb-3.bin" size="256" crc="3b0c99af" sha1="38f30ac1e48632634e409f328ee3051b987de7ad"/>
      <rom name="03k_sb-8.bin" size="256" crc="f6fad943" sha1="b0a24ea7805272e8ebf72a99b08907bc00d5f82f"/>
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Chrome 15.0.874.120 Chrome 15.0.874.120
    • View Profile
Re: How to derive 'snaps' from rom dat
« Reply #1 on: 18 November 2011, 08:47 »

hmm...

for the names...I guess the easiest would be to use xslt to translate a .72 mame dat (in xml) into a datfile of snapshots...should be pretty easy (take the setnames as rom entries and add png).
Or you scan an empty rompath with the .72 datfile and export the missing list and edit that later on..

...but how do you want to add things like checksums and sizes of the pngs?

It sounds like you want to verify your snapshots....but how can you verify them if you don't know the correct checksums/sizes.



Or, as an alternative solution you might be able to use the rename wizard in cmpro's profiler. There you can load 2 dats (a current one and a .72 one), it will analyze the changes and you can apply the changes to a dat. So theoretically you can transform a current snapshot dat into a .72 dat (but it might not include all entries since there might be removals which can't be reconstructed...


and besides of that: I don't see any need in using anyhing but the current MAME version.. ;)

Logged

Traxx

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 8.0 Firefox 8.0
    • View Profile
Re: How to derive 'snaps' from rom dat
« Reply #2 on: 18 November 2011, 22:00 »

The 0.72 set is for the XBox360 version. They picked that release for portability reasons i guess.

My first attempt was a manually created DAT file with all files set to 'size 0' and 'crc 0' (via text processor). CLRMamePro scanner didn't like it (kind of high cpu freeze, i killed the task). The rebuilder also doesn't found a match either. I was hoping for blind name selection but couldn't figure out a solution.

In the next attempt i stripped everything but the filenames out of the DAT (text processor, regular expression) and inserted a simple copy process.
Quote
copy 005.png "G:\Snap 0.72" >> g:\log.txt
copy 1941.png "G:\Snap 0.72" >> g:\log.txt
copy 1941j.png "G:\Snap 0.72" >> g:\log.txt
copy 1942.png "G:\Snap 0.72" >> g:\log.txt
That was somewhat ok but i then realized that many snaps were renamed and got changed over time and there is no real relation between old and recent snaps ending up in many missing pngs.

The other thing is the current 0.72 frontend for the XBox360 doesn't take clones into account so i would have to duplicate every png for its clone individually. Windows frontends handle that automatically.

In the end i gave up. Some guys already did some great work reaching 3660/4098 PNGs by manually working it out. I think i will use that collection.

Thank you!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 5.1 Safari 5.1
    • View Profile
Re: How to derive 'snaps' from rom dat
« Reply #3 on: 19 November 2011, 12:12 »

a datfile needs checksums. without you're lost. rebuilder matches files by checksum compares.
my idea with the rename wizard would be the way to go with some manual work afterwards. the rename wizard would see the renames from current mame to 72 and then applies them to a 3rd dat like a current snapshot one.
Logged
Pages: [1]   Go Up
 

Page created in 0.165 seconds with 20 queries.

anything