Author Topic: Generate romlist from .tag files  (Read 6141 times)

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Generate romlist from .tag files
« on: February 12, 2018, 12:23:46 PM »
Hi, I'm using attract mode on the pc (Windows 10) and was looking for a script or something to generate my favorites romlist from the favorites tags created in attract mode.
I did find a .bat script for doing this, but it took several minutes to complete. Couldn't find any way in attract mode either to create a romlist based on the tags.

So i created this little tool in a hurry, which will run through your .tag files, find the corresponding romlist.txt and create a new romlist with those tags.
In short: Use this tool to create your favorites.txt (or whatever) romlist :)

Written in c++, and is very fast.
Exe and Source included for free.

Example of usage:
Tag2Romlist -path C:\Attract\romlists -romlist Favorites.txt -sort

This will create a new file in C:\Attract\romlists with the name Favorites.txt
If the file already exist, a backup will be made automatically.
Because of the -sort option, all of the entries in Favorites.txt are sorted.




arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: Generate romlist from .tag files
« Reply #1 on: August 26, 2018, 11:53:45 AM »
not working.
« Last Edit: August 26, 2018, 12:38:30 PM by arthurvalenca »

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Generate romlist from .tag files
« Reply #2 on: August 26, 2018, 12:00:20 PM »
Build for 64-bit windows. Maybe you need some redistributables installed.

arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: Generate romlist from .tag files
« Reply #3 on: August 26, 2018, 12:31:03 PM »
Build for 64-bit windows. Maybe you need some redistributables installed.
hello,
the operating system and windows X, but the program does not really work, when running does not contain anything, tried to use in all possible directories, but not generate the list of favorite systems, please put the option to create the list in any directory, and also being able to execute the file anywhere is easier, but the current one really does not work.




what we really need and a file that reads all .tag files, and create a .txt file with the information of the .tag files to create a list of favorites, eg: nes.tag, snes.tag, mame.tag, and other systems in a single .txt file.

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Generate romlist from .tag files
« Reply #4 on: August 26, 2018, 01:00:23 PM »
Hi, well that's what this program does.
If you got your romlists with .tag files in e.g. C:\Attract\romlists, you can run this program like this:

Tag2Romlist -path C:\Attract\romlists -romlist Favorites.txt -sort

It will then create a Favorites.txt in c:\Attract\romlists directory.

In my …\romlists directory, i got many .tag files. (Commodore 64.tag, Arcade.tag, Metal Slug Collection.tag etc...),
They have corresponding .txt files which contains all of their roms. (Commodore 64.txt, Arcade.txt Metal Slug Collection.txt etc....)
Check your ...\romlists and make sure you've got .tag files and .txt files there.

You can run the .exe from anywhere. I have made a shortcut on my desktop for easy execution.


arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: Generate romlist from .tag files
« Reply #5 on: August 26, 2018, 03:17:37 PM »
Hi, well that's what this program does.
If you got your romlists with .tag files in e.g. C:\Attract\romlists, you can run this program like this:

Tag2Romlist -path C:\Attract\romlists -romlist Favorites.txt -sort

It will then create a Favorites.txt in c:\Attract\romlists directory.

In my …\romlists directory, i got many .tag files. (Commodore 64.tag, Arcade.tag, Metal Slug Collection.tag etc...),
They have corresponding .txt files which contains all of their roms. (Commodore 64.txt, Arcade.txt Metal Slug Collection.txt etc....)
Check your ...\romlists and make sure you've got .tag files and .txt files there.

You can run the .exe from anywhere. I have made a shortcut on my desktop for easy execution.

See not work for my.

https://youtu.be/xVRO1uKMWlY

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Generate romlist from .tag files
« Reply #6 on: August 27, 2018, 01:53:36 AM »
Ok, you must use commandline arguments to start the exe.

In your case, Tag2Romlist -path . -romlist Favorites.txt -sort

Will not work just to double-click on the exe.



arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: Generate romlist from .tag files
« Reply #7 on: August 27, 2018, 03:01:07 PM »
Ok, you must use commandline arguments to start the exe.

In your case, Tag2Romlist -path . -romlist Favorites.txt -sort

Will not work just to double-click on the exe.

Big Thanks for use in cmd worked fine.

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Generate romlist from .tag files
« Reply #8 on: August 27, 2018, 11:37:29 PM »
Great! :)

mrchrister

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Generate romlist from .tag files
« Reply #9 on: August 09, 2020, 05:58:53 PM »
Thank you! Been looking for a way to do this. Much appreciated! Works great and does it fast!
« Last Edit: August 09, 2020, 06:35:07 PM by mrchrister »

larsih

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Generate romlist from .tag files
« Reply #10 on: August 10, 2020, 12:20:09 AM »
Good to hear! :)

allactiondan1

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Generate romlist from .tag files
« Reply #11 on: January 16, 2023, 08:52:11 PM »
Hi, I know this is an old thread, but im trying to use your program, and Im not having any luck.  From the command prompt I can run it, but it doesn't freate a file called favorites.txt. I have a few games tagged in a few systems, and the .TAG files are in my romlist directory. I dont get any messages from the prompt either.  Im running Windows 10.  Any suggestions?
Thanks,
Dan


 -Edited post to add OS used.
« Last Edit: January 16, 2023, 08:54:25 PM by allactiondan1 »