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: Dir2Dat scan with gamename - Need Deprecated format  (Read 6881 times)

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 50.0.2661.102 Chrome 50.0.2661.102
    • View Profile

Hi to all!
I scanned my mame 0.78 roms folder with clrmamepro4029a and I created the .dat file in Deprecated Format (I need this).

This is an example of my dat file:
Code: [Select]
game (
name 3stooges
description "3stooges"
rom ( name drom1 size 8192 crc 87a9fa10 md5 449d419214d285d1367a68157b1ceb15 sha1 9c07837dce1384d6b51b716aa8ceeb5bc247a911 )
rom ( name gv113fg0 size 8192 crc 95762c53 md5 c6d94b9ba7188e5a6c5e3200d0ca7936 sha1 e486a232e6b62ab21b9c3be521606dea2a451889 )
rom ( name gv113fg1 size 8192 crc fb223854 md5 bcf233b08e2bee46e983ca566017ef81 sha1 b1eaad971edd2f3a2aed66c5f9d0f27d6ffd5466 )
rom ( name gv113fg2 size 8192 crc 9fa3dfde md5 4f9583e549e261dc8ca1ba81b934ec25 sha1 693327c60691748bf16e486b2962ebe019009a69 )
rom ( name gv113fg3 size 8192 crc 28071212 md5 9046d301704f5881897b4358173b767a sha1 33ce5cfae3491658f8b4cb977dc2da0a75dffee4 )
rom ( name gv113ram.4 size 4096 crc 533bff2a md5 7edc328d466bed4a0e729f63af5fff4b sha1 58d0be8add4b02dc3e27cf6b17a05baf4304f3ce )
rom ( name gv113rom.0 size 8192 crc ab124329 md5 20e867cce0bfdb2ea7e0ae01668f45be sha1 de1bc721eea74426035eec10a389f77b435aa9b9 )
rom ( name gv113rom.1 size 8192 crc 34ab051e md5 2009d00df164689fd0ea5be9e1268c23 sha1 df416aaf34d6bbbdd79ae633842355a292ed935d )
rom ( name gv113rom.2 size 8192 crc b45b2a79 md5 417d82e4b4faa9a68c3bc17c7ac74d79 sha1 7d0b19bec462ab67f518361afdf4b6982829ed07 )
rom ( name gv113rom.3 size 8192 crc b816d8c4 md5 cb27279bf66fc8c6b63d90113d873651 sha1 86e16888492390034ac04e3f6a9f56422575c778 )
rom ( name gv113rom.4 size 8192 crc 8b6e52b8 md5 a71e2798ac43274104647a766729b842 sha1 6e17e11afce92a7fa1735a724f0c0faf9375ac89 )
rom ( name yrom1 size 8192 crc 55f8ab30 md5 f42da1ad542e3432c894402662c3a133 sha1 a6b6318f12fd4a1fab61b82cde33759da615d5b2 )
rom ( name yrom2 size 8192 crc 90f9c940 md5 6249afbc230c2a064460acd141066fcc sha1 646dacc902cf235948ac9c064c92390e2764370b )
)


The issue is that I need of the real game name instead of the zip file name.
In the example: b]The Three Stooges In Brides Is Brides[/b] instead of 3stooges.
How can I do this in a batch (automatic) mode? Manually rename more that 4000 entry is crazyness.
Thanks to all!

EDIT:
I tried also to create the Profile loading mame.exe file.
I push Load/Update but at the end of scan the .dat file inside datflies folder is empity:
Code: [Select]
clrmamepro (
name "MAME"
description "Mame 0.78"
category "Exe Based DatFile"
author "-internal-"
exe "C:\Users\lollo78\Desktop\Mame-0.78\mame.exe"
version ""
)

If I export from Set information I have a complete DAT, but in XML format.
I can't choose Deprecated format in Set Information.
Please, help me. I need it to create an .rdb file for mame2003-libretro (Retroarch project) - XML is not supported.
« Last Edit: 05 June 2016, 16:59 by lollo78 »
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 51.0.2704.79 Chrome 51.0.2704.79
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #1 on: 05 June 2016, 17:48 »

Well, the setname is taken from the folder (or archive) which dir2dat scanned. How should clrmame invent a plain text description from romnames like gv113fg0......If you got only 1 file per game (and the file got a name you like) you can use the"single file sets" option.

Setinformation's export function uses the format which you've set in dir2dat (bottom right). If you switch it to deprecated you can go to setinformation and export the dat in the old format.
Logged

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 50.0.2661.102 Chrome 50.0.2661.102
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #2 on: 05 June 2016, 18:24 »

For MAME scan, maybe you could add in Dir2Dat the EXE file scan support to extract also the .xml gamelist and do a match between archive name (for the roms collection to scan) and real name (from Mame EXE)...

EDIT: another question...
There's a way to create a DAT file (for MAME) with CRC and SHA1 calculated only on the .zip files instead of the .zip contents?
« Last Edit: 05 June 2016, 18:26 by lollo78 »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 51.0.2704.79 Chrome 51.0.2704.79
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #3 on: 05 June 2016, 18:50 »

The match tagdata option does this. It tries to match the currently found setname from dir2dat with the currently loaded datfile/mame binary.
Logged

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 50.0.2661.102 Chrome 50.0.2661.102
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #4 on: 05 June 2016, 19:08 »

Sorry I edited during your reply.

Quote
EDIT: another question...
There's a way to create a DAT file (for MAME) with CRC and SHA1 calculated only on the .zip files instead of the .zip contents?

for this I mean only one CRC and SHA1 information for any ZIP file (calculated on .zip archive)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 51.0.2704.79 Chrome 51.0.2704.79
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #5 on: 05 June 2016, 19:19 »

"Keep archives as files" dir2dat option
Logged

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 50.0.2661.102 Chrome 50.0.2661.102
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #6 on: 05 June 2016, 20:19 »

Thanks.
I tried it:
Code: [Select]
game (
name roms
description "roms"
rom ( name 005.zip size 29390 crc c6051e08 md5 e41ce0ee9943affc1c92fb3f4fa59661 sha1 f3890fa577644dbb5e0bd76e9323c3269bfa79e2 )
rom ( name 1941.zip size 1419103 crc 47a129b8 md5 6a8d0186f31f15317128c9c70fcc8513 sha1 a2b4862c49922214dd17902a2335bc094f7195b6 )
rom ( name 1941j.zip size 198657 crc bf6221d4 md5 d171207667e2f351e0a5b0ce721f68ab sha1 365c6d30748dbd43b554221449caf2c88f7a2999 )
rom ( name 1942.zip size 105715 crc 963e0f79 md5 8cf24f7d62ddc4b371eb34da3b9b6612 sha1 d8ae39577e6ce2d8c412c50711540f08f1317251 )
rom ( name 1942a.zip size 12025 crc 0a20f1c4 md5 832789b3e23c2c0900539d12965c859e sha1 de49e57a897dd172aa80b4987dcac31add793672 )
rom ( name 1942b.zip size 44198 crc 64119b59 md5 e8554c591f853d5d53a9e31205973c9b sha1 17b2d522b4db7608e797eb62683bb5e6d9355f3e )

With Keep archives as files and Single File Sets I reached this:
Code: [Select]
game (
name 005
description "005"
rom ( name 005.zip size 29390 crc c6051e08 md5 e41ce0ee9943affc1c92fb3f4fa59661 sha1 f3890fa577644dbb5e0bd76e9323c3269bfa79e2 )
)

and with Match Tagdata (and loaded Mame EXE) it add also the right game name but like "description" and not like "name".
Code: [Select]
game (
name 1943
description "1943 - The Battle of Midway (US)"
rom ( name 1943.zip size 304996 crc c5096227 md5 f5e70a35a0898118e6a4348e8ce390fd sha1 5c1bffe77e7f8918ed6c2a54ab2f225d9c1f0aea )
)
I have to test it to see if after Retroarch scanning I see the description like game name in the GUI playlist.
But for now is a great achievement
« Last Edit: 05 June 2016, 20:38 by lollo78 »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 9.0 Safari 9.0
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #7 on: 05 June 2016, 20:49 »

The name comes as mentioned from the folder/archive. Match tagdata tries to fill the rest.
Why do you need a descriptive name element? That's what the description element is for.
A good txteditor with macro options should be able to update it anyway. Or in xml format it is just a simple xslt stylesheet to transformat it.
Logged

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #8 on: 05 June 2016, 20:58 »

(Just tested the dat file)
I need to use the descriptions like names because if I use this .dat with Retroarch, after the scan I see the archive names like game names. So it's very difficult (pretty impossible) to undestand which game are listed into the Mame playlist.
I'll try the way of the texteditor considering that I have a Deprecated format.
EDIT: Seems that Notepad++ works fine to simply delete the actual "name" rows and for renaming "description" in "name".

Another question:
Can I use Match Tagdata also with Final Burn Alpha? FBA exe is supported?
« Last Edit: 05 June 2016, 21:24 by lollo78 »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 51.0.2704.79 Chrome 51.0.2704.79
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #9 on: 06 June 2016, 07:26 »

I don't know if FBA prints out a MAME similar database list (similar to -listxml format)....so I assume.."no"
Logged

lollo78

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 50.0.2661.102 Chrome 50.0.2661.102
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #10 on: 06 June 2016, 16:21 »

Hi, this could help to include FBA support in Clrmamepro?

http://www.fbalpha.com/manual/ in Command Line section:

Quote
For front-ends, you can also do fba -listinfo, -listinfomdonly, -listinfopceonly, -listinfotg16only, -listinfosgxonly, -listinfosg1000only, -listinfocolecoonly, -listinfosmsonly or -listinfoggonly which will output information about the supported games to stdout, and the ROM files they need in the MAME XML format.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 51.0.2704.79 Chrome 51.0.2704.79
    • View Profile
Re: Dir2Dat scan with gamename - Need Deprecated format
« Reply #11 on: 07 June 2016, 06:30 »

Here you go:
Profiler -> Create... -> Filename: point to your fba exe, Description: type what you want, Emulator: OLD_MAME -> Create Profile
Logged
Pages: [1]   Go Up
 

Page created in 0.311 seconds with 21 queries.

anything
anything