Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Snap Renamer-Quickly fix mis-named pics  (Read 1499 times)

0 Members and 1 Guest are viewing this topic.

LJHalfbreed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:April 13, 2006, 09:10:21 am
  • I'm a mammal!
Snap Renamer-Quickly fix mis-named pics
« on: December 17, 2005, 12:54:24 am »
As per the readme.:
Quote
Snapshot Renamer v0.1
by DJRobX  (djrobx@hotmail.com)
7/9/2005

** Disclaimer ** I wrote this utility to help rename my roms, and it has been tested on all my various ROM directories with good results.  I cannot guarantee that it will work well for you.  Take care with the input parameters.  Don't do anything silly like give it your Windows directory as your snapshot path!   This is ALPHA quality software.   I cannot be responsible if you screw your computer up with this prorgram! 

This is a small utility I wrote to help cleanup the relationship between your ROMS and SNAPSHOT images.  It could conceivably be used for any two directories of like-named files.   The names of ROMS are constantly changing as the GOOD tools are updated.  Often it's something as simple as a good dump being verified, or naming conventions and cleanups that get things thrown off.

This program strips each ROM name to its bare essentials (no spaces, no extra characters, nothing in parenthesis) and attempts to find a close match when no real match is found.  It's not perfect but it takes care of a lot of the dirty work for you. 

Just run SnapRenamer.  Point it at your ROM and Snapshot directories using the [...] buttons.   By default it will move every unused snapshot to an UNUSED folder for perusal and possible deletion, but you may uncheck this option if you do not wish for it to do that.     When it finishes it will open up a copy of Notepad with a log of what was done.  At the top you will see the "heuristic" names that it assigns for each snapshot it finds.   In the middle you'll see which files were renamed, and at the bottom, the list of the ROMs that still do not have images.

The full source code is included.  It is totally free for any use.
 
Hope this is useful to someone.

Awesome program, simple to use, works great. Ask if you need instructions. And yes, it's *that* small.

Please rename the file to a zip. (I don't have access to a decent host right now... could someone help out? Original file name is snaprenamer.zip)

Enjoy!

LegsXd

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:December 19, 2005, 08:01:45 pm
  • I want to build my own arcade controls!
Re: Snap Renamer-Quickly fix mis-named pics
« Reply #1 on: December 19, 2005, 08:02:14 pm »
Thanks for posting.

I had also written something like this.  I planned on making a more advanced (much more visual) version but my ideas got way out of hand and I didn't have the time for it.  (my ideas included the creation of dat files  & various navigation&matching features to make the final visual check of name vs. picture much easier.  the ultimate goal was to encourage people to contribute missing/bad pictures to websites like www.screenshotarchive.com)

I'll have to have a look at your source code.  The matching algorithm I had used was based on the LCS (longest common subsequence) algorithm.  I suppose many people on this board know about this algorithm since it is what 'diff' and windows programs like WinMerge are based on.

LJHalfbreed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:April 13, 2006, 09:10:21 am
  • I'm a mammal!
Re: Snap Renamer-Quickly fix mis-named pics
« Reply #2 on: December 20, 2005, 10:09:00 am »
Whoops!!!

Just for the record (I thought I posted it, guess I didn't), this is *not* my program. It's from "DJRobX".

However, with his readme, it's 'free', and so forth.

I posted this so many places yesterday I guess I didn't realize that my copy-n-paste was flubbed.

I'm LJHalfbreed, he's DJRobX... I don't know if someone sent this to me or if I d/l'ed it from the intarwebs, but either way, it's posted here to help others.


J-Rod

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 94
  • Last login:February 10, 2008, 06:17:07 pm
  • Gaming junkie
Re: Snap Renamer-Quickly fix mis-named pics
« Reply #3 on: December 20, 2005, 11:24:51 am »
There's also a decent one I used from www.screenshotarchive.com in the helpful files section. It uses heuristics to rename snaps in comparison to the roms. It worked very well when I had snaps for releases that were close but no cigar to the goodtools naming convention. It's not perfect, but pretty darn good.