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: Managing marquees and snaps with clrmamepro?  (Read 9582 times)

bkendig

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 50.0 Firefox 50.0
    • View Profile
Managing marquees and snaps with clrmamepro?
« on: 27 December 2016, 15:17 »

I use clrmamepro to manage a few hundred non-merged MAME romsets and their associated samples.

I've obtained a large number of screenshot and marquee image files, all correctly named to match the romset. I want to keep only the ones for which I have the corresponding romset (or parent) and purge the rest. Will clrmamepro do this for me, and if so, how?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 10.0 Safari 10.0
    • View Profile
Re: Managing marquees and snaps with clrmamepro?
« Reply #1 on: 27 December 2016, 19:27 »

not direclty I guess but you can export a missing set list via cmpro (from your sets) and with that you can e.g. run a delete batch script on the images.


I can't go into details before next year sincr I don't have any PC handy. so for a concrete answer you need to be a bit patient.
Logged

bkendig

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 50.0 Firefox 50.0
    • View Profile
Re: Managing marquees and snaps with clrmamepro?
« Reply #2 on: 28 December 2016, 01:10 »

Thank you, I appreciate it!

I understand there's some way that clrmamepro can use the mameinfo.dat to handle the artwork files? But I can't find details on that.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 10.0 Safari 10.0
    • View Profile
Re: Managing marquees and snaps with clrmamepro?
« Reply #3 on: 28 December 2016, 07:04 »

I will tell you in 2017....now back to my holidays :-)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 55.0.2883.87 Chrome 55.0.2883.87
    • View Profile
Re: Managing marquees and snaps with clrmamepro?
« Reply #4 on: 04 January 2017, 09:49 »

(oh oh...2017 and no answer yet.....) Looks like I've overseen this post after coming back....will answer shortly
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 55.0.2883.87 Chrome 55.0.2883.87
    • View Profile
Re: Managing marquees and snaps with clrmamepro?
« Reply #5 on: 04 January 2017, 19:57 »

The main problem in not directly doing it in cmpro is that MAME uses 1 set per game while progetto Marquees dats and files are using 1 set for all game pngs. So you can't simply export a missing list in one and load it in the other profile to disable the sets (and there would be an option to mark disabled sets as unneeded)....

So you can only use the exported set list for some batch deleting

1) Load the MAME profile, do a full scan/fix orgy until you're happy with the scan result
2) right click any entry in the scan results tree, in the context menu select "Export Set List->To File->" and now either "all set issues" or "completely missing sets only". For completeness you might want to check the menu entry "Export format" which should point to "sets". In any way, let cmpro create the file for you.
3) now you need to do some texteditor magic on the listfile...you can for example add a delete statement and full path to each line + png extension like "del e:\temp\marquees\005.png", save the file as .bat/.cmd and run it


Another idea:

1) Load the MAME profile, go to the scanner, hit "have list.." to save a file which holds a list of your existing sets
2) After its creation, open it with a texteditor, remove the header lines (first 2 lines)
3) add a dummy header before the setlist

<?xml version="1.0" encoding="UTF-8"?>
<datafile>
  <machine name="marquees">

4) add a dummy footer after the setlist

  </machine>
</datafile>

5) add the following to each line of the set list before the setname <rom name="
6) add the following to each line of the set list after the setname .png" status="nodump"/>

So you have something like:

<?xml version="1.0" encoding="UTF-8"?>
<datafile>
  <machine name="marquees">
    <rom name="005.png" status="nodump"/>
    <rom ....
    <rom ...
    ....
  </machine>
</datafile>


Now you got a dummy datfile which can be loaded as a new profile, rompath should point to your marquees rompath and when you run a scan with fix-unneeded you will get rid of anything in the rompath which is not part of the dat (i.e. your existing sets).
Logged
Pages: [1]   Go Up
 

Page created in 0.113 seconds with 21 queries.