Jump to content
LaunchBox Community Forums

The Best Method for Importing Roms - Retrofrogg Method; A Guide


Retrofrogg

Recommended Posts

                        image.thumb.png.f04ddc78659f81139393eafd0b98c404.png

Updates

April 2023

  • Reformatted the guide
  • Removed "homebrew", as this has been removed from No-Intro sets and Dat-O-Matic at the request of multiple developers   
  • Expanded "Step 12 - updating the ROM set" to include instructions on how to manage this with Windows explorer       
  • Changed "Step 5 - determine which regions exist within a particular rom set"

Introduction

Having spent a fair amount of time finding the best way to import and manage full (not just licensed games) ROM sets, I'm sharing my method of importing and organising ROMs to help others (and in case anyone has any ideas for improvement). The focus here is on Launchbox, though if you also use BigBox then you'll see the changes reflected there. This guide is not for everyone; 1G1R afficionados who prefer the simplicity of having a single version of a game would use a different method.

Some prefer a smaller curated game collection, others full sets for platforms. Both have their advantages. The method described here has in my opinion the best of both worlds. The aims are, for each desired platform:

  • To have a full ROM set for the platform with all ROMs present and correctly named
  • To have each region properly separated out in Launchbox
  • That each region has the correct metadata, artwork, manuals etc
  • To have the commercially released games in their own playlist, though to have alternate versions, unreleased, etc available also
  • To be able to update the ROM set when changes are made, with these changes reflected in Launchbox
  • That the above is easy and consumes minimal time                                                                                              

STEP 1 - obtain the up-to-date DAT file for the platform being added, and load it into a ROM manager

Rationale: Using a ROM manager allows you to compare your ROM collection for a platform against a definitive list. The list will probably be as complete a list as you're going to get. Keep your ROM set tidy and organised and confirm the validity of your ROMs. You can check that you have all the games/ROMs, that they are correctly named, and can add any missing ones or fix any errors. You can also check that your ROM set is up-to-date, with the latest versions of roms and the most recent changes added.

These lists come in the form of DAT files, which contain lists of all dumped roms for a platform as well as the correct names and checksums. If you're not familiar with the datting world (quite different to the dating world) then it's worth doing some reading around this. The main datting groups are No-Intro (for consoles), Redump (for discs), MAME (for arcade) and Tosec (for everything else), though there are many others. 

Method: Various ROM managers are available; I've found RomVault the best. It has a component called DatVault, which can automatically add DAT files and keep them up to date. The DAT files are available from all the datting groups mentioned above and are regularly updated. Note - you can skip these steps relating to a ROM manager, though it will be more difficult to keep track of any future updates or changes to the ROM set.

image.thumb.png.b90dc7bc2710d869d20f14ef14ae2841.png

STEP 2 - obtain the full rom set for the platform being added

Rationale: If you're going to do something, you may as well do it right. Obtaining the full ROM set ensures that you have all of the games for that platform (unless any are MIA) - generally including released games, unlicensed games, prototype and many other kinds of ROMs. If you're the collector type then this is the way to go. Note that hacks are not included; if you want to add these, you can do so separately at the end.

Method: I won't list ROM sources here, but ensure that you obtain the most up-to-date full ROM set for the platform.

Once you have the ROM set and have placed it in the folder where it is going to live, leave it there rather than moving ROMs into any sub-folders. This means that future scans of the folder with the ROM manager will work. Separating out any roms into subfolders in Windows Explorer will break the link with the ROM manager.

STEP 3 - scan the ROM directory in the ROM manager using the DAT

Rationale: This will help ensure that all ROMs are present and correct. In RomVault, if all ROMs are present in the folder and correct, then the icon for that platform will be green.

Method: This involves telling the ROM manager where the roms are stored for that platform, and then running a scan.

Below you can see my entry for the NES in the RomVault DAT tree, showing that I have all 4452 of the correct roms:

image.thumb.png.4f7049c20f137b3daa2e5b1a024b61d9.png

This uses the No-Intro DAT file, which is regularly updated and contains all licensed games as well as beta versions, unlicensed games, demos, prototypes and samples. Sometimes ROMs will be missing from your set and will need to be added, or sometimes roms will need "fixed" within the app.

STEP 4 - decide on how you want to separate the regions for the platform

Rationale: We are going to import ROMs by separate regions, as this has various advantages over importing the full set and then letting Launchbox create region playlists. Doing each region separately means:

  • You will have all released games for the platform - as some games were released in specific regions only
  • You can browse games for each region separately in Launchbox
  • All ROMs will have the correct regional artwork and metadata
  • ROMs with more than 1 region (e.g. "Excitebike (Japan, USA)") will be correctly handled, and will appear under both regions and with the correct artwork
  • Any regional variations in the platform/console itself will be correct - e.g. the Nintendo Famicom and Nintendo Entertainment System will appear separately with the correct names, platform videos, images, metadata etc.

In terms of how to separate the regions - the 3 main regions are North America, Europe and Japan. These would tend to be the default 3 regions for a platform, though there will be some variation between platforms and so you can choose this on a per-platform basis. There is also a "World" region, which is for games that were released worldwide (we are going to add the "world" region roms to each of the 3 main regions).

As regards the other remaining regions, you could have a 4th region group for "other", though I think it makes more sense to group these remaining regions under either North America (if it is an NTSC region) or Europe (if it is a PAL region). This page is quite useful in listing regions:

https://nintendo.fandom.com/wiki/Regions

Method: For the above to all work correctly, we are going to import each of the 3 regions as it's own platform in Launchbox - we will then group these platforms under a platform category. The hierarchy will end up looking something like this:

Consoles (platform category)

--Nintendo (platform category)

----Nintendo Entertainment System (platform category)

------Nintendo Entertainment System (North America) (platform)

------Nintendo Entertainment System (Europe) (platform)

------Nintendo Famicom (platform)

Each of the above platforms will contain the relevant playlists (which we'll get to later). In Launchbox it will look something like this (ignore the other platforms for now):

image.thumb.png.79eb12b52ac0da1b77e115448d7a710d.png

STEP 5 - determine which regions existing within a particular ROM set

Rationale: If we are going to import the ROM regions separately, we need to know which regions exist within the ROM set so that we can make sure that all are imported.

Method: A relatively easy way to do this is to do the following:

  • Import the full ROM set into Launchbox. Don't scrape for any game information, images, videos, bezels or anything else. When doing the import, set the platform name as the first region that you are going to import (e.g. Nintendo Entertainment System (North America)
  • Right-click the platform in Launchbox and select "auto-generate child playlists"
  • Make sure only "Regions" is selected and click "OK"
  • Make a note of all the regions that appear as playlists; these are all the regions that exist within that ROM set
  • With the platform selected, select all games, right-click and "delete"; the platform, playlists and games should all be gone from Launchbox

However, potentially a better way is to use the following Python script I made, which will parse any directory and return a list of the regions contained therein (it works with No-Intro files; I haven't looked at other datting groups yet):

list_regions.py

To run the script, open a command prompt, navigate to the folder where the script is stored, then type (without the quotes): "python list_regions.py".

STEP 6 - import the first region into Launchbox

We are now going to properly import the first region. We will start with the North America region, which is generally the main and preferred region for a platform. Again, using the No-Intro Nintendo Entertainment System set as an example, all the North America ROMs contain "USA" in the filename. We could just run a search in the ROM folder in Windows File Explorer for "USA", though that would also return games which have "USA" in the title. You could import all those, but you would then have to delete the games which are non-North America but have USA in the title.

An easier way is to search specifically for the USA region by searching for "(USA" and importing those, and then searching for "USA)" and importing those. The No-Intro NES ROM set doesn't seem to have aeny triple-region ROMs, though if a ROM set had these then I would go for the alternative option mentioned above.

Note that Windows File Explorer is funny about including a bracket in the search string. You have to enter it a certain way. See the last post in this link for how to do it properly:

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-search-for-parenthesis/ff8982f2-7a65-4569-a3f1-0373d0763ad8

Basically you have to search for (without the first and last quotation marks):  "name:~"*(USA*"" and then "name:~"*USA)*"" - for example"

image.thumb.png.118c5e611b137966216ac8b92701a529.png

So, do the first search, and then import all those into Launchbox. Again, at this stage don't scrape for game information, images, videos, or anything else. In the importing ROMs dialogue I tend to ask Launchbox to leave the ROMs where they are. I would set the platform as "Nintendo Entertainment System (North America) (using this example), and set the "scrape as" to "Nintendo Entertainment System" (which should be selected by default). Make sure to check the box for "Force importing duplicate games". Although it is tempting, make sure that "Combine ROMs with matching titles into a single game" is unchecked. If you like, you can combine some of the ROMs later - I recommend doing this only for "released" games, as these are less likely to change or be updated.

If you have "Combine ROMs with matching titles into a single game" checked, then only one of the ROMs is counted as a game, with the others being added as "additional applications". This is a flaw of the app as is stands, and means that any auto-populated playlists that you make will not recruit ROMs that are listed as "additional applications". Also, note that if you later decide to expand the combined games, the additional apps will have lost the associated images and you will have to re-scrape those.

Once all the ROMs have been imported, do the same for the second search term. You should now have all North America (USA) ROMs for that platform imported.

Finally, repeat the above steps for the "World" region (adding them to the North America platform). All "World" region ROMs were released in North America, and so should be a part of that set. You should now have all ROMs for the North America platform imported.

STEP 7 - create the Nintendo Entertainment System platform category

If you have not already done so, now is a good time to create the platform category for the NES platforms. I organise my platforms first by manufacturer, and so have a "Nintendo" platform category under the "Consoles" category. Make sure you're viewing the platform tree in "Platform Category" mode by the way. You can then create a "Nintendo Entertainment System" plaform category and put it under the "Nintendo" category.

You can now move the "Nintendo Entertainment System (North America)" platform to the "Nintendo Entertainment System" category.

STEP 8 - import the other regions into Launchbox

Now repeat step 6 for the "Europe" region, and then for the "Japan" region. Make sure every step is followed, including adding the "World" region ROMs to each.

Finally, look at the region list for that platform that you made earlier, and see if there are any regions that you have not yet imported. You can run searches in Windows Explorer for these remaining regions. There won't be many games that have been specifically released in these other regions.

For example, if a ROM has the region "Australia", it will not have been imported yet using the above method - go ahead and import it, adding it to the "Europe" region platform as Australia is a PAL region (if you want to use the method mentioned above - you can create a 4th platform for "other" regions if you want).

STEP 9 - organise the ROMs for each of these region platforms into release type playlists

Now that we have all the roms correctly imported into Launchbox and under the 3 main region categories, we are going to organise them within Launchbox. Start with the North America region.

At this stage you won't have any playlists. All ROMs will be grouped together under the platform heading. These ROMs will include released games but also unlicensed, demo, etc etc.

The first step is therefore to separate these ROMs out by release type. Launchbox has a metadata field for "Release type" which is automatically populated from the ROM filename. I find that this works for most, but not all, ROMs. Why it works for some but not others, I'm not sure.

Whilst Launchbox can create a number of auto-playlists (e.g. for regions, play modes and genres), unfortunately it cannot currently do this for release type. So we are going to create these manually.

First, create a platform category under the main region platform ("Nintendo Entertainment System - North America" using our example) called "Release Type". Next, create a playlist called "All Licensed Games". Under the "Auto-Populate" tab of this playlist, you need 2 rules; Platform / is equal to / Nintendo Entertainment System (North America), and Release Type / Is Equal To / Released. In the parents tab, make sure that the playlist is set to appear under the "Release Type" category only. Click OK. You should now see something like this (don't worry about the numbers):

image.thumb.png.7a395ba7b0ed7b352f35a79899cf449c.png

Next, make similar auto-playlists for Unlicensed, Beta, Demo, Prototype, Sample, Program and Pirate. You could also do Aftermarket, but see the paragraph below. You should see some games appearing under these playlists when you refresh.

Note that the No-Intro sets also contain "Aftermarket" releases; there is ongoing debate on the best tagging method within No-Intro. Currently, "unlicensed" is a kind of umbrella tag which coincides with "aftermarket" for the majority of ROMs, though not all; see here for some further information about the tagging, though note the error in that not all "aftermarket" games are "unlicensed":

https://wiki.no-intro.org/index.php?title=Aftermarket_Guide

I think that these release types should be fairly universal amongst No-Intro ROM sets, but if you're doing this with other No-Intro ROM sets then it would be worth checking that there are no other release types mentioned.

Now to address the ROMs which don't have a release type assigned. Create a playlist called "No release type" with auto-populate rules: platform / is equal to / Nintendo Entertainment System (North America), and Release Type / is empty.

image.thumb.png.835e09e9fe2c4718fd6f27f02c9b747c.png

This will then list all games without a release type. View the games in this playlist in "list view" and then arrange by "Version". You can now go through the list, selecting groups of games with the same release type, and then adding in the correct release type via right click - open bulk edit wizard. Go through the list until all ROMs have a release type assigned, and there are none left in this playlist.

Now repeat this step for the other region platforms.

STEP 10 - create the other playlists

Now you can go ahead and "auto-generate child playlists" for the other playlists that you want - I tend to add in "genre" and "play mode". You may want to create other auto-populated playlists - for example in the NES No-Intro set you could create a playlist for "virtual console" ROMs, "Namcot Collection" ROMs and others. You can create manual playlists, but bear in mind these will not be auto-updated when you update the ROM set. For this reason, I prefer to have mainly auto-populated playlists.

STEP 11 - scrape the game information, metadata, artwork and videos

Now that the ROMs are properly organised, you can scrape the game information, metadata, artwork and videos - whichever items you prefer to have. Before starting, go to tools/options/region priorities, and make sure that the region for the ROMs that you are going to scrape is selected and at the top. Select any other regions that you have ROMs for. Then select all the games that you want to scrape for, and to go tools/download/update metadata and media for selected games. Then do the same for the other region platforms, selecting the appropriate region priority before scraping.

image.thumb.png.3d830c63dc48ad8006bb6698390bc9c9.png

Once all the above has downloaded, you can manually check through the collection and fix any errors in terms of box art region. I found that there were a small number that needed changed. You can replace the standard scraped images with art packs if you want.

STEP 12 - updating the ROM set

That's it! You should now have a ROM set in Launchbox that is properly set up. A good thing about doing it this way is that you can update the ROM set (relatively) easily, and so keep up to date with any additions or changes.

When a ROM set is updated, if you have the latest DAT then on scanning in your ROM manager it will show the missing ROMs. You can then add these to your ROM folder, re-scan to make sure everything is OK, then import these ROMs into the relevant region platforms in Launchbox. If the update process has removed some old or defunct ROMs, then in Launchbox you can go to Tools / Scan / For Removed Roms in Currently Selected Platform". Do not use the Scan / For Added Roms feature, as it will look in your ROM directory and add all the ROMs that are for the other regions.

In terms of how to update the ROM set, there are various methods. Currently the way I do it is to:

  • Download the latest ROM set for the platform
  • In your existing ROM folder in Windows Explorer, add a "date created" column (in "detail" view)
  • Copy all the ROMs from the new set to the existing set; when it asks if you wish to over-write, select "no"
  • Only the missing ROMs will be copied across
  • Now sort the ROM folder by the "date created" column - the newly copied across ROMs should have that date & time set to when they were copied across
  • You can now filter that folder by that date/time, to show only the new roms, click the down arrow at the edge of the "date created" column and choose the corresponding date
  • You can now search within just the new roms for your regions, and import those into Launchbox; I start by searching for the "world" region, then after importing those I change the search to "-world" to remove those; then wrinse and repeat for the remaining regions; if there are any ROMs with dual regions then those would have to be added manually

I hope this is helpful. The method is still too cumbersome for my liking and I'll keep working on streamlining things.

Ideally Jason and Gordon would get together to combine their powers and integrate rom management functionality into Launchbox. Update: I hear a plugin from Gordon is in the works!

Let me know of any suggestions for improvement!

Edited by Retrofrogg
Added updating instructions
  • Like 4
  • Thanks 1
  • Unusual Gem 4
Link to comment
Share on other sites

An excellent tutorial. I personally prefer to use the combined roms option. It leaves everything much more organized and saves space since the videos are the same for any region. Although it is also true that if you like to see the differences with the covers of other regions, your option is the best.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Hello, very good tutorial, but I have a problem (but I probably misunderstood a step).

I also have the No-Intro set.

I import first by searching the following files: name:~"*(USA*", then the other files: name:~"*USA)*"

But the problem is that if a file has "(USA") in its name, then it will be imported twice.

For example: 3-D WorldRunner (USA) is matched twice in the search, and is therefore imported twice.

Is there anything I have misunderstood?

Edited by Harkonnen
Link to comment
Share on other sites

  • 4 weeks later...

    What we could use is a dat made from the Launchbox database of games. I currently use dats from good, emuarc (site), no-intro, tosec, scene, mame, redump, PD, TDC, etc. Actually all of them for collecting roms. But ideally it would be great to maintain a dat that reproduces the contents of the Launchbox database. I have just over 13 million roms in my romvault, partially deduplicated using sabretools. I could probably reproduce 98-99% of the Launchbox database if I just had a dat for it.

  BTW, great tutorial

Edited by cannonwillow
  • Like 1
Link to comment
Share on other sites

  • 1 month later...
On 2/17/2023 at 4:15 AM, Harkonnen said:

Hello, very good tutorial, but I have a problem (but I probably misunderstood a step).

I also have the No-Intro set.

I import first by searching the following files: name:~"*(USA*", then the other files: name:~"*USA)*"

But the problem is that if a file has "(USA") in its name, then it will be imported twice.

For example: 3-D WorldRunner (USA) is matched twice in the search, and is therefore imported twice.

Is there anything I have misunderstood?

 

I was running into this same situation and was hoping to find the answer in the comments, but it looks like it's still been unanswered. 

In case someone else stumbles into the same situation, I was able to combine the "search, then search again, but end up with duplicates" into just one search with OR operands:

~"*(USA*" OR ~"*USA)*" OR ~"*(USA)*"

so it found all of the combinations to be imported in one shot.

 

EDIT:  And then, of course, 15 minutes later, I realize if you just add searching World at the same time, you can combine that step too instead of needing to go back to add it to each section.

~"*(USA*" OR ~"*USA)*" OR ~"*(USA)*" OR ~"*(World)*"

~"*(Europe*" OR ~"*Europe)*" OR ~"*(Europe)*" OR ~"*(World)*"

 

(but I'm not going to get new pictures)

image.png.5f9cbf5e50c7d2547ff91b74cb1e6462.png

image.png.19db9d3e027146da96700cd1f849a32d.png

image.png.fbd3f108ce0e5bbb3e1211629b7a1671.png

Edited by smargorps
Link to comment
Share on other sites

  • 2 weeks later...

I use this method with Rom Vault for rename correctly my collections.

The problem is with CD. If you use a rom manager your games will be in zip format.

I created this script to solve this problem. It mounts zip file and start your game using the emulator. 

My method is faster that extract .zip file when you want to play.

Edited by Anthes
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...