View Full Version : Does there exist a program to take your XML database file rename your png to match
tyweed
12-31-2011, 12:39 PM
I was looking around and ran into a few of these types of programs all of which had broken or currently inaccessible links. I currently have an xml sega cd file with rom names that do not match any of my png's I received from emuloader website.
I was hoping there existed a program that would take my xml file and the directory of my images and do a string similarity match on those files and rename images accordingly.
If nothing exists I will write something. I just want to make sure i'm not reinventing the wheel!
Johnny Mazzic
12-31-2011, 01:18 PM
http://www.hyperspin-fe.com/forum/showthread.php?t=12381
tyweed
01-07-2012, 09:13 PM
Yeah, tried that program it was unabkle to help. I used the roms i had and the xml provided from the list section it did nothing. I guess I will just write something. Unless someone else is aware of another program to try.
This seems like it would be a very common problem:
1. I have my roms but they dont match any known xml list. I need to convert my roms over to mactch those from the existing file and while doing so make a best guess to find the correct name.
2. Additionally, do the same for my images.
Anything like this? If not I'm gonna build something.
xagesz
01-07-2012, 09:22 PM
All the hyperlist's are mostly No-Intro naming convention. Use the dat's provided for your specific systems with CLRMAmePro there is a tuturial for it in the Docs section. Its simple to use and does a good job. If you use the dats and xml's from hyperlist everything will match.
tyweed
01-08-2012, 08:36 AM
Here is the problem with that process. You are assuming the roms in question conform to a DAT file. I have found that CLRMAmePro to be less than forgiving when roms do not match exactly a DAT file.
I think I'm going to write something that will use the database.xml file from hyperspin as the blue print and use a string matching algorithm to take your rom set and convert it to match the list in the xml. That way all the additional data in that xml file like genre,dates,etc will not be lost when its done. Everything i'v seen thus far will take your roms and create an xml file but you lose all the additional data that was in the original xml. I hope i'm not reinventing something that does not exist already. I just have yet to find that.
xagesz
01-12-2012, 06:39 PM
Just so you know. Me and Rain are writing a HUGE program and Rain is putting that exact functionality into it. Should release soon.
Just so you know. Me and Rain are writing a HUGE program and Rain is putting that exact functionality into it. Should release soon.
Yeah, and the best part about it is that I coded it to delte all of the ROM's in your ROM folder! It's gonna be super cool!
:dancing2:
Hypnoziz
01-12-2012, 07:07 PM
Yeah, and the best part about it is that I coded it to delte all of the ROM's in your ROM folder! It's gonna be super cool!
:dancing2:
What's a ROM? Is that what opens the Googles?
Lailoken
01-12-2012, 07:12 PM
I hope it deletes my System32 folder too. That thing has been plaguing me since day 1.
I hope it deletes my System32 folder too. That thing has been plaguing me since day 1.
I can always #include that (get it #include lol.) Or better yet I can have the program overclock your processor to 9.6GHz and see how long it takes before we acheive the speed of light, err or the smoke alarm goes off! Nah, I joke but in all seriousness the app I am working on is almost done and ready to be included into X's program!
However, it will only support HyperList for 2.0, so 1.x users you will need to upgrade to use.
Speaking of which, how many people are in support of CRC matching to find misnamed files? I know the naming convention is all well and good. But how many of us actually have a truly minted ROM collection? Me, I know I don't as most of mine are renamed. What about a variable that will rename the CRC values stored in the systems database to your current ROM CRC values? This would be handy because with future database updates we could easily rename our ROMS based off of the old pool of datasets. Anyways, it may sound very technical but it's quite "noob" friendly!
Edit:
I have a perfect set of Sega Genesis games, so I did a batch rename on all of them to give them the name (My File.txt, My File(1).txt, My File(3).txt, and so on.) I unleashed my program on the set and all 800+ games were renamed properly to the HyperList database name. So, that shows some progress in the right direction (err, I think.)
tyweed
01-13-2012, 06:22 AM
Cool instead of reinventing wheel i will wait.
Ski-lleR
01-13-2012, 01:31 PM
look for HyperSpin XML Bidouilleur ;)
He work for Artwork/Wheel/Video, with a custom version of Levenshtein algorithm for pattern matching.
Manual & automatic renaming, with percentage of matching so you can quickly re-organize before rename, and check only "bad percentage" before assigning content to roms
Also manage roms name / xml database content based on xml database / folder content.
http://www.hyperspin-fe.com/forum/showthread.php?t=14002
Intelligent content matching:
http://img11.hostingpics.net/thumbs/mini_337307Sanstitre5.png (http://www.hostingpics.net/viewer.php?id=337307Sanstitre5.png)
look for HyperSpin XML Bidouilleur ;)
He work for Artwork/Wheel/Video, with a custom version of Levenshtein algorithm for pattern matching.
Manual & automatic renaming, with percentage of matching so you can quickly re-organize before rename, and check only "bad percentage" before assigning content to roms
Also manage roms name / xml database content based on xml database / folder content.
http://www.hyperspin-fe.com/forum/showthread.php?t=14002
Intelligent content matching:
http://img11.hostingpics.net/thumbs/mini_337307Sanstitre5.png (http://www.hostingpics.net/viewer.php?id=337307Sanstitre5.png)
+1 Excellent program!
Deemar
01-13-2012, 04:17 PM
I'm a software developer, any program you guys want written I can do for $60 an hour. And I work really fast.
I'm a software developer, any program you guys want written I can do for $60 an hour. And I work really fast.
Really? How about throwing Donnie1979 and I a freebie and compile MamePlus! 0.144 w/high score (nn) support x64 based? Hell, I'd even see that you get a donation.
:toilet:
Hypnoziz
01-14-2012, 12:43 AM
I'm a software developer, any program you guys want written I can do for $60 an hour. And I work really fast.
We contribute for free around here so that everyone can get their setups running properly. Don't forget this is a hobby. Of course we accept donations, but asking that type of wage is almost laughable in this community. I sincerely hope you feel ashamed or at the very least, embarrassed.
We contribute for free around here so that everyone can get their setups running properly. Don't forget this is a hobby. Of course we accept donations, but asking that type of wage is almost laughable in this community. I sincerely hope you feel ashamed or at the very least, embarrassed.
Damn, all this time I could have been charging?? Crap!
:bootyshake:
Mackdaddi
01-19-2012, 02:36 AM
Have you tried skinny match? I don't have a download link but if you google it you'll find it no problem, i think there was a post on these forums somewhere about it too.
It's an artwork renamer that works off of the file names in your roms folder. It scans your roms, then scans your artwork, videos, pics, etc (you can specify the file type and locations) and then matches them up based on syntax and gives you a % match. As long as you have the standard artwork packs, it will rename them to work with your existing roms no matter how they're named.
You can manually match artwork to roms in the case of less than 100% matches (eg "tony hawk pro skater 2.png" being mapped to "tony hawk pro skater.zip" for example) and once you're done you hit the "rename" button and it creates a separate folder of renamed files and drops it in with the original artwork, leaving your original files untouched.
I've used it on my HS setup, as my artwork files came from various places all over the web with many different naming conventions, and it works perfectly.
tyweed
01-19-2012, 07:41 AM
yeah, i looked at it. It will be useful for future tasks for sure. However, I'd rather take the known names from the xml with all its supplied data and rename my roms to match it. That way I have the date,manufacture,etc
Mackdaddi
01-19-2012, 09:56 AM
Sounds like you need ClrMamePro. It needs the .dat file for your hardware, you can get that from hyper list online, but it will rename all of your Roms to the official names etc as specified in the file. The XML is just a database of what's on your system, incorrect names and all, and thats what HS references when looking for your artwork.
tyweed
01-19-2012, 10:02 AM
ClrMamePro, does not work due to my roms naming being off too far. It just cleans out entire directory. I'm thinking its going to require some type of application uses string similarity matching and you providing kit the xml file it go into roms try its best to rename.
Mackdaddi
01-20-2012, 03:48 AM
Are you sure you're using it right? If you are and your ROM names are off by that much I would suggest replacing them with a more correct set, and make sure they're not "goodsets"or merged Roms (google it if you're not sure), that makes a big difference.
As long as you have a dat file for the hardware and a working valid set of roms, you should be able to properly rename them so that hyperspin can match your artwork files to them, but it's likely that you'll still have to do some renaming of artwork/videos anyway. Skinny match or other similar utilities are good for that.
Deemar
02-06-2012, 11:23 AM
We contribute for free around here so that everyone can get their setups running properly. Don't forget this is a hobby. Of course we accept donations, but asking that type of wage is almost laughable in this community. I sincerely hope you feel ashamed or at the very least, embarrassed.
Not at all. Maybe if you remove the plethora of advertisements from this free community I might feel slight shame. Nobody works for free.
ClrMamePro, does not work due to my roms naming being off too far. It just cleans out entire directory. I'm thinking its going to require some type of application uses string similarity matching and you providing kit the xml file it go into roms try its best to rename.
CLRMAMEPro uses the file CRC, not file names. The name doesn't have anything to do with it whne using CMP.