Search the Community
Showing results for tags 'Rename'.
Found 5 results
Dear Hyperspin I am having trouble renaming my MAME4droid (139.ui) rom files. There is more than one mxl file in the MAME directory and Don's Tools won't recognise any of the files in the 'roms' directory. What is the best way to rename these roms so they are compatible with Hyperspin? I am using the Nvidia Shield but I believe this to be irrelevant as this issue exists across all Hyperspin platforms. Many thanks for your help in advance. Soup Pants
999 downloadsHyperSpin MAME Renamer is a Windows application that will take a HyperSpin XML file, a MAME softlist XML file, a folder containing ROMs, and multiple artwork folders. It will then use this information to rename the ROMs and artwork files so that they correspond to the MAME short name. The application works in two stages. When you have entered your file/folder details it will process the data in the two XML files and attempt to automatically map the data. Various options for how data should be mapped are available: Automatically map games based on CRC values - When a game has the same CRC value in the HyperSpin database and the MAME XML file then it will be considered a match. Automatically map games where the name is an exact match (excluding ROM tags) - If a game cannot be matched by CRC then it will perform a fuzzy name search. If this option is selected then any games with the same name, apart from ROM tags such as (Europe), (USA) etc. will be considered a match. Automatically select the best name where no exact match is available - If a game cannot be matched by CRC or exact name then the best match will be automatically selected. This option is off by default. You will be able to review the mappings on the "Mappings" tab, as well as manually amend the mappings by using the drop-down in the "Map To" column. This games listed in the drop-down are ordered by how close the names match. Note that when a game was matched by CRC only that game will appear in the list since we can be certain we have the right game and therefore don't need to do the fuzzy name search. Once you are happy with the mappings, click the "Rename" button to proceed. The application will then use the mappings to rename the files. Optionally, the application can also verify that the ROM files match the CRC values in the MAME XML file as part of this process. The files will be written to the output folder in the following structure: HyperSpin XML file.xml - A copy of the HyperSpin database file, with the names updated to use the MAME short names and the CRC values updated to those expected by MAME. - Roms - The ROMs folder will contain the renamed ROMs. These will be automatically put into .zip files so that they can be used with MAME. - Artwork - This folder will contain sub-folders for each artwork folder you selected. The names of the sub-folders will match the names of the input artwork folders e.g. if you selected C:\Users\Me\Downloads\Artwork4 then you will get a sub-folder called "Artwork4" Source code to the application is available here: https://github.com/ChrisSimpson/Hyperspin-MAME-Renamer
Hi Guys, I am trying too add Sega Mega Drive Japan too my hyperspin but I am having all sorts of problems with this one which should have been quite straight forward. First off all I was getting troubles saying that Sega Mega Drive Japan is not a supported system name even though I have added it too the Retroarch AHK File and no games play atall apart from the systems I already have. I changed the system name through rocket launcher too 'Sega Mega Drive' and that allowed my to play games through Rocket Launcher but when I try on Hyperspin it points too my old drive. I recently put my whole hyperspin setup on a new hard drive and redirected everything but for some reason Rocket Launcher thinks it is still aiming at my K: Drive when I am now using my H: Drive. Can anyone help with this? Either getting the system to work as Sega Mega Drive Japan or redirecting Retroarch. Or both would be good if possible
Hey everyone, I have assembled some useful Windows Batch Files to help with the automatic zipping for roms and other tasks. To create the .bat file simply create a text document within Windows and name it what you would like and make sure the extension is .bat Then you want to right click and press 'edit' in order to add text to the document. Simply copy and paste one of the following code and save it. By default windows doesnt normally allow you to see extensions of known file types so you may have to do a quick Google Search on how to show file extensions on all files If you would like to change the compression type to either 7z or zip, simply replace the extension where it says either .7z or .zip to the compression type you want. Some of these file can/may be improved, as these arnt perfect, however they may help you like they have helped me. NOTES You must have 7z installed on the computer. I have included the default directory to 7z however double check your directory to make sure its in the same place, otherwise change it to the correct directory All Batch files should be in the same directory you would like the operation, this means the .bat files are portable. So sometimes the Batch file may also be ziped up 😐 ----- BatchFolder2zip.bat The below code automatically zips the files inside folders with the folders name. This is useful for zipping up Foldered roms but dont want to zip up the folder as well. This is useful for SkumVM if you wanted to convert your folder rom set to ZIP for /d %%X in (*) do "C:\Program Files (x86)\7-Zip\7z.exe" a "%%X.zip" "./%%X/*" Pseudo Code: For content inside every folder for any extension run 7z and add the contents inside folder and name the zip the same as the folder. --------------------- BatchFile27z.bat This automatically zips all files within the same directory of the batch file into a 7z. Useful for making NES or snes roms into 7z, or pretty much any standalone rom FOR %%i IN (*.*) DO "C:\Program Files (x86)\7-Zip\7z.exe" a "%%~ni.7z" "%%i" Pseudo Code: For the name of every file with any extension use 7z.exe to create a zip with the current name minus extension. ------------------- BatchFilesInFolder27z.bat So what this does is it puts all the files inside multiple folders in the current directory into a 7z file outside the folder. HOWEVER it only zips the files within the folder if they have the same name but can have different extentions. For example Folder name is Crash_Bandicoot and inside the folder is Crash Bandicoot (USA).bin and Crash Bandicoot (USA).cue. The batch file will automatically zip both files inside the folder (because they have the same name) and place the zip outside that folder called Crash Bandicoot (USA).7z. Just keep in mind, this will also automatically zip any other file with a different name in its own zip such as track01.bin files. etc FOR /r %%i IN (*) DO "C:\Program Files (x86)\7-Zip\7z.exe" a "%%~ni.7z" "%%i" Pseudo Code: For files inside directory with any extension use 7z to add files to 7z with name INSIDE folder pairing it up with files of the same name ------------------ BatchFile2Folder2Manual.bat For every PDF/anyfile [Replace(*.pdf*) with (*.*) or for text files (*.txt*)] file, it will create a folder of the same name and then rename the file to Manual.pdf. It will then move that file into the folder. This is useful for Manuals downloaded from EmuMovies Download Service as it downlaods the manual as the name of the game and to follow the structure of RocketLaunch, its normally in games name folder. FOR %%i IN (*.pdf*) DO md "%%~ni" & ren "%%i" Manual.pdf & move Manual.pdf "%%~ni" Pseudo Code: For every file name that ends with .pdf, create a folder with the PDF file name without .pdf and rename the pdf file to Manual.pdf then move the file into the folder just created. ------------------ RenameFolderBasedOffFileName.bat This simply renames the folder based off the file name of whats inside the folder. Im not entirely sure the affect this has on multiple files within the folder so please try in a separate area before use for /d %%a in (*) do ( for %%b in ("%%a\*.*") do ( ren "%%a" "%%~nb" ) ) ------------------ RenameFilesInFolder2FolderName.bat This basically renames the files within the folder with the name of the folder. It specifically looks for iso/bins/cue and renames them based off the folder name. This is a dirty and is slower in performance however it does get the job done. If you wanted different file extensions, just change the the bin/cue/iso to another file extension. You can remove or add lines if necessary. This may cause conflict if you have more than one file in the folder with the same extension, however shouldn't matter if they are different extensions (bin/cue). Please try this in a separate area before using it in your main folders. for /r %%F in (*.bin) do @for %%A in ("%%F\..") do ren "%%F" "%%~nxA.bin" for /r %%F in (*.iso) do @for %%A in ("%%F\..") do ren "%%F" "%%~nxA.iso" for /r %%F in (*.cue) do @for %%A in ("%%F\..") do ren "%%F" "%%~nxA.cue" ------------------ I am aware that there may be other utilities that can do the same thing such as Dons Rom Rename however these batch files may have other use cases and I am only sharing them because I found them useful, and it may help others as well. I would recommend that you test it on a smaller batch to test it out before converting your entire rom library TIP: If you would like to see the progress when it finishes or want to debug it, Press enter at the end of the line and add PAUSE under the code If you have any useful batch files or improvements to the ones here, dont hesitate to share them. Cheers
4,830 downloadsI got tired of manually renaming videos and media to match my roms. I tried a few softwares for it, but none worked quite the way I wanted. You may use it to match anything to your roms/images/XML. Here are a few examples. 1: You have an XML file or ROM files. You also have media (movies perhaps) but the names does not match the XML. 2: You have an XML file but your ROM files does not match the XML. 3: You have media files named the way you want, but your ROM files does not match, 4: You have some files that must match other files. Not necessarily HyperSpin/Emulator related. Basically, you set what you want to use for source names (An XML file or a folder containing files). You also set a source directory that you want to be coped/moved to match the source names. Then you set a destination directory for where you want the copied/moved files to end up. Anyway, how does it work? The application cleans up the Source NAMES (From folder or XML) & the Source FILES and puts then into an internal array. For example: 4x4 Off-Road Racing (USA) (Disk 1).D64 Becomes 4x4 OffRoad Racing So now we have a cleaned up Romname and sourcefile(s). It then runs a Damerau-Levenshtein distance comparison between two strings. Yes, thats right. It computes the edit distance between two strings, that is the number of omissions, insertions, changes or swap of letters necessary to transform one string into the other. This function is by jchd at the http://www.autoitscript.com forums and the description above is a cut and paste. hehe. You thought I sounded smart, right? In other words, it compares the romname with all the source media and returns the source media that has the least amout of "spelling errors" in it. Is this fast? No, its slow as hell if you have a lot of source media. Say you have 1000 roms and 500 media files. For every rom file (1000) it has to go through every media file (500) and do the distance comparison on each one of them to find the best match. So this takes a while. The more media files you have, the slower each rom takes. It will stop looking if it finds a direct match though, so that will speed it up. It will not overwrite or even do the comparison IF you already have the media file for that rom in your destination directory. It does not care about extensions in the destination dir, so if you already have DestinationDir\Colony.MP4 it will not overwrite it later with a file with a different extension (Colony.FLV for example) as it only checks "Does Destination\Colony.* already exist?" and skip it if so. This is good. Lets give an example. Say you have a mix of FLV and MP4 dupes. Split them up into separate folders. Run this program, pointing it to one of the folders. Let it run. It will now copy those files. Run it again, pointing it to the other folder. It will now only copy the files that do not already exist, no matter the extension. It is available on my FTP (signature) and attached to this post with source. How to: Run the application. XML Source: Switch between using a XML or a folder to use for Source Names by clicking the "Switch to files" button. Switch back to XML using the same button. Source files: Select the folder containing the files to be renamed (copied or moved actually). Pre Strip #: This will strip out the defined number of characters from the start of the source names. This is good if your sourcefiles has a header that you do not want to be included in the search. For example, your source file(s) are called something like "0001 - Electroplankton (Japan).nds" and the first 7 chars there messes it up (0001 - ). Set this to 7 and it will strip that out. Leave it at 0 to not strip. Post Strip #: Same as above, but it will strip from the end of the name. Doubt this is needed. Destination: Select the folder to copy/move the renamed files to. The "0" is the number of misspellings to constitute a direct match. These will be copied/moved automatically without question. Recommended to keep it at 0. Its worth going through the manual labor later if you want it right. You can set it to -1 to disable automatic copying all together if you want to verify everything manually. The "2" is the number of "misspellings" to constitute a possible match. If you want "A game" but it finds a Source file called "A_game", it will count as 1 misspelling. It will be added to a list that you'll go through at the end and select the matches. Note: Releases with higher "spelling errors" will also be shown after this list is displayed, so you will get a chance to match even higher spelling errors. "Move Sourcefiles to Destination": If you check this, any matches from "Source Files" will be moved into "Destination" instead of copied. Never recommended unless you want to rename very large ISO roms collections or something. If one Sourcefile matches more then one Source Names, it will not allow it and ask you if you want to change to Copy Mode or Quit. "Do not show result windows":. If you check this, it will not show you what file names it found, what file sources or which files that are perfect matches before continuing. The first response needed after clicking "Start" will be to help with the partial matches. "Handle different disks?": Normally, everything in a () will be ignored, but if you check this, it will read inside the () and  for disk,disc,tape and cart and try to keep them correct as well. In other words, if you are matching a romset or similar with (Disk 1, Side etc (Commodore 64 for example), leave this checked. If the romset does not include it (NES and similar), uncheck it to gain a little bit of speed. "Number of source files found before splitting them based on first char": The default is 10000. Normally, all source files are matched against all sources. This can get VERY slow on large sets with few direct hits (0 spelling errors). If the number of source files exceed 10000, it will split them up into different searches so a source that starts with the letter A will only search for source files also starting with A. You may lower this number if you want to trigger this search method with a smaller source files set if you want. It will go a lot faster, however you might get missed results if they do not start with the same character ("Star Wars The" & "The Start Wars" for example will be a miss). After it has indexed the sources and source files, it will display a message if it needs to split them up into different arrays (searches). The "Reset to Default" button simply clears all the fields back to default. Click Start to go on. Don't worry. Nothing will happen automatically yet! This little fella will pop up to give you information on what its doing. You don't actually HAVE to watch it. Its more to show you that its working. It first goes through the XML or folder you selected to find all the names we want to use and clean them up for matching. It will then present what it found (Unless "Do not show result windows" is checked) and show you the "Rom Name Cleaned" names for each Rom that it will use to match with the source media. Just click the X to continue. It then goes through the source media and does the same thing (Unless "Do not show result windows" is checked). Click the X to continue. It will now start the matching and show you in the window what its doing. Once it has gone through all the files, it will display (Unless "Do not show result windows" is checked) those that had low enough spelling errors to be automatically copied (0 in this case). Those files are copied when you press the X. Remember, you can hit Shift-ESC at any time (except if a question is on screen) to exit the application. You can see the Rom Name Clean: The cleaned name of the source name we want to use. Source Match Clean: The best match it found for it, also cleaned. Rom Full Name: The real name we want (read from XML or directory). Source Match Full Name: The best match for it. Real filename, not cleaned. Misspellings: The number of differences between them. We selected 0 for automatic processing, so this will only contain 0's. New Name: The new name that will be created in the destination folder. It should match the "Rom Full Name" but with its own extension of course. When the copy is complete, it will show you the rest of the matches that it needs your help with. We selected 2 here, so only those with 1 or 2 misspellings will be processed. Simply check the ones you think are a match and click the "Start" button. To skip to the next part, click "Skip". To abort, click "Close" or the X at the top right. Note: This window is resizable. You may also drag the vertical lines between the headers to increase/decrease the column width (like Excel). Once all are done, it will also show you the ones that did not get a match, its best match and the number of spelling errors for it. You can select to go through this list as well and check things you think is a match still. As you can see, I did find one that is a match. It was a non match because of a bug in 1.7 and previous. Fixed in 1.8 (& sign was stripped from XML source names). And thats pretty much it =) Note, everything shown in the lists are also logged to a subdir called "Logs". Its TAB separated lists, so you can just copy and paste it into Excel.