Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: larsih on February 12, 2018, 12:23:46 PM

Title: Generate romlist from .tag files
Post by: larsih 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.



Title: Re: Generate romlist from .tag files
Post by: arthurvalenca on August 26, 2018, 11:53:45 AM
not working.
Title: Re: Generate romlist from .tag files
Post by: larsih on August 26, 2018, 12:00:20 PM
Build for 64-bit windows. Maybe you need some redistributables installed.
Title: Re: Generate romlist from .tag files
Post by: arthurvalenca 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.

(http://i65.tinypic.com/9ib8yu.png)


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.
Title: Re: Generate romlist from .tag files
Post by: larsih 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.

Title: Re: Generate romlist from .tag files
Post by: arthurvalenca 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
Title: Re: Generate romlist from .tag files
Post by: larsih 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.


Title: Re: Generate romlist from .tag files
Post by: arthurvalenca 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.
Title: Re: Generate romlist from .tag files
Post by: larsih on August 27, 2018, 11:37:29 PM
Great! :)
Title: Re: Generate romlist from .tag files
Post by: mrchrister 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!
Title: Re: Generate romlist from .tag files
Post by: larsih on August 10, 2020, 12:20:09 AM
Good to hear! :)
Title: Re: Generate romlist from .tag files
Post by: allactiondan1 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.