Author Topic: Roms into subfolders  (Read 24349 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Roms into subfolders
« on: January 19, 2017, 05:56:42 AM »
I know that I can set diferent rompath , but is AM able to scan roms into subfolders?
I mean , I have 259 dreamcast .zip roms and I want to decompress them.
But the only way is to leave them into subfolders , for exapmle:

Sega Dreamcast > Sonic Adventure > Sonic Adventure.gdi

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Roms into subfolders
« Reply #1 on: January 20, 2017, 05:36:37 AM »
e.g. zsnes:
if folder-name and romfilename are identical (C:\attract\EMU\zsnes\roms\mygame1234\mygame1234.smc)
Code: [Select]
executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[romfilename]\[name].smc"
rompath              C:\attract\EMU\zsnes\roms\
romext               <DIR>

set as rom-extension <DIR>
and set as argument for zsnes -m "[romfilename]\[name].smc"

just adjust config to dreamcast arguments.
« Last Edit: January 20, 2017, 05:38:13 AM by hermine.potter »
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Roms into subfolders
« Reply #2 on: January 21, 2017, 12:58:27 PM »
Wow!!! Thank you so much , working like a charm.

This is my future pinball config.If anyone wants to try with roms into subfolders.

Code: [Select]
args                 /open "[romfilename]\[name].fpt" /play /exit

hermine.potter

  • Hero Member
  • *****
  • Posts: 767
    • View Profile
Re: Roms into subfolders
« Reply #3 on: January 22, 2017, 10:40:26 PM »
there are already various emulator settings posted.
the config of future pinball doesn't works?!
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Roms into subfolders
« Reply #4 on: January 23, 2017, 09:39:39 AM »
Sure, just a little update using DIR as rom extension like you show me

firewater

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Roms into subfolders
« Reply #5 on: October 26, 2018, 05:59:56 PM »
e.g. zsnes:
if folder-name and romfilename are identical (C:\attract\EMU\zsnes\roms\mygame1234\mygame1234.smc)
Code: [Select]
executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[romfilename]\[name].smc"
rompath              C:\attract\EMU\zsnes\roms\
romext               <DIR>

set as rom-extension <DIR>
and set as argument for zsnes -m "[romfilename]\[name].smc"

just adjust config to dreamcast arguments.

How does this work if I have multiple extensions on the folder?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Roms into subfolders
« Reply #6 on: October 27, 2018, 02:19:37 AM »
e.g. zsnes:
if folder-name and romfilename are identical (C:\attract\EMU\zsnes\roms\mygame1234\mygame1234.smc)
Code: [Select]
executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[romfilename]\[name].smc"
rompath              C:\attract\EMU\zsnes\roms\
romext               <DIR>

set as rom-extension <DIR>
and set as argument for zsnes -m "[romfilename]\[name].smc"

just adjust config to dreamcast arguments.

How does this work if I have multiple extensions on the folder?

I don't understand this. What does "multiple extensions on the folder" mean? Do you mean "multiple extensions in the folder"?

This is an old thread. What OS? What emulator? What folder structure?
« Last Edit: October 27, 2018, 02:22:51 AM by progets »

firewater

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Roms into subfolders
« Reply #7 on: October 27, 2018, 09:56:54 AM »
e.g. zsnes:
if folder-name and romfilename are identical (C:\attract\EMU\zsnes\roms\mygame1234\mygame1234.smc)
Code: [Select]
executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[romfilename]\[name].smc"
rompath              C:\attract\EMU\zsnes\roms\
romext               <DIR>

set as rom-extension <DIR>
and set as argument for zsnes -m "[romfilename]\[name].smc"

just adjust config to dreamcast arguments.

How does this work if I have multiple extensions on the folder?

I don't understand this. What does "multiple extensions on the folder" mean? Do you mean "multiple extensions in the folder"?

This is an old thread. What OS? What emulator? What folder structure?

Yes, multiple extensions in the directory. So for Dreamcast I've got games in .cdi and gdi

Sorry it's an old thread, but it has good info on the issue so I thought it'd be be better to revive it. It's Windows, any emulator since I'm more concerned about the folder structure working than the particular command (for the sake of an example, say it's nullDC), and I have all my games in their own subfolders. So Dreamcast > Crazy Taxy > Crazy Taxi.cdi

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Roms into subfolders
« Reply #8 on: October 27, 2018, 11:46:56 PM »
I think "[name]\[romfilename]" in arguments will take care of directories so <dir>may not be needed in romext. Please try:

executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[name]\[romfilename]"
rompath              C:\attract\EMU\zsnes\roms\
romext               cdi;gdi
« Last Edit: October 27, 2018, 11:49:10 PM by rand0m »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Roms into subfolders
« Reply #9 on: October 28, 2018, 12:50:25 AM »
I think "[name]\[romfilename]" in arguments will take care of directories so <dir>may not be needed in romext. Please try:

executable           C:\attract\EMU\zsnes\zsnesw.exe
args                 -m "[name]\[romfilename]"
rompath              C:\attract\EMU\zsnes\roms\
romext               cdi;gdi

No offence but this won't work for several reasons. First, "[name]\[romfilename]" = "gamename_without_extension\full_path_to_and_including rom" which isn't correct. Second, by not having "<DIR>" as a romext he won't be able to build romlists. Third, I don't think you can use "[romfilename]" with multiple romext.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Roms into subfolders
« Reply #10 on: October 28, 2018, 01:26:56 AM »
@firewater - Because you want to use subfolders and multiple file extension you have a complex issue with multiple solutions.

IMO, your best solution is to
1. determine whether you have more .cdi or more .gdi games
2. create your emulator file to cater to the larger selection of games
Code: [Select]
# Generated by Attract-Mode v2.4.1
#
executable           \Emulators\nullDC\nullDC_Win32_Release.exe
args                 -config ImageReader:defaultImage="[rompath]\[name]\[name].gdi"
rompath              \Roms\Sega Dreamcast
romext               <DIR>;.cgi;.gdi
system               Sega Dreamcast
info_source          thegamesdb.net
3. create exceptions for the games that don't use the file extension mentioned in your emulator file. This can be done within AttractMode by selecting the game in the FE and then pressing the button configured for edit game (Configure-->Controls-->Edit Game=?) and setting this
Code: [Select]
Custom Arguments -config ImageReader:defaultImage="[rompath]\[name]\[name].cdi"

Exceptions can also be manually created with simple text files too. Here's an example.
\AttractMode\romlists\Sega Dreamcast\Crazy Taxi.cfg
Code: [Select]
args -config ImageReader:defaultImage="[rompath]\[name]\[name].cdi"
« Last Edit: October 28, 2018, 01:38:07 AM by progets »

firewater

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Roms into subfolders
« Reply #11 on: October 29, 2018, 11:17:01 AM »
Thank you so much for the throughout explanation! I'd never been able to figure this one on my own. I do wonder though how most people do it if they don't use subfolders, specially for systems were the games are generally in multi-part formats. For example, in Saturn, one game is at least 2 files, and up to 30+

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Roms into subfolders
« Reply #12 on: October 29, 2018, 03:49:41 PM »
I personally don't use subfolders or multi-part games, I think it's a thing of the past since there are better ways to do this today and people just haven't caught up with it yet. http://forum.attractmode.org/index.php?topic=2290.msg15484#msg15484

Some might create two emulators and then use the AttractMode's builtin function to combine two emulators into one romlist.

Some might use RocketLauncher with AttractMode to handle these type of things.

Some might create .cue files that point to the .cdi and gdi files. You could also create .bat files for these roms too.

I'm sure there are other options too. Let's see what others have to say.

firewater

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Roms into subfolders
« Reply #13 on: December 07, 2018, 02:06:49 PM »
I've run into another issue. Whats being read when one uses "romext               <DIR>" is literally the directory, which means multi-part games don't get read properly. For example, Gran Turismo 2 on PlayStation contains two discs, for two independently playable modes. When I use "<DIR>", the game is listed as "Gran Turismo 2", and crashes upon loading, because its trying to load the folder "Gran Turismo 2". Expected behavior should be to read the files and expand it into "Gran Turismo 2 (Disc 1)" and "Gran Turismo 2 (Disc 2)". Is there a workaround for this?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1274
    • View Profile
Re: Roms into subfolders
« Reply #14 on: December 07, 2018, 05:20:35 PM »
You could use a playlist for multi-disc games if the emulator supports it. Read the "Multiple-disc games" section here https://docs.libretro.com/library/beetle_psx/ as an example if you don't know what I mean.

You could create folders for each disc (i.e. folder for "Gran Turismo 2 (Disc 1)" and folder for "Gran Turismo 2 (Disc 2)"). I think this might get messy.

You could combine/convert your files into a PBP or CHD format so there is only one file that contains all the discs.

You could only show and launch Disc 1 of any given game and then use the emulator to "swap discs".

There are bunch of solutions and you just need to figure out what will work best for your setup.
« Last Edit: December 07, 2018, 05:23:05 PM by progets »