Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: sorting by decade? looking for how to  (Read 1632 times)

0 Members and 1 Guest are viewing this topic.

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
sorting by decade? looking for how to
« on: April 14, 2005, 10:49:07 am »
I am running on a 2 P 733 with 256mb windows xp pro using mamewah and commandline mame machines. I am running hortz on one and vert on another. I would like to have only games from the eighties on both is there a way to sort the games? ;D

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: sorting by decade? looking for how to
« Reply #1 on: April 14, 2005, 10:54:04 am »
You can do it with EmuLoader.  And you could do it with EmuLoader, delete the Roms you don't want (within EmuLoader) and the refresh MAMEwah (I think) to have only 80's games.

www.mameworld.net/emuloader/
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: sorting by decade? looking for how to
« Reply #2 on: April 14, 2005, 10:58:22 am »
Using a properly configured listgen, you can use this SQL to create a batch file to move all MAME ROMs newer than 1989 to another directory (change the 2 paths appropriately).  Then re-generate your default list in MAMEWAH.

-----------------------
SELECT 'move c:\mame\roms\' || romname || '.zip c:\mame\oldroms\'
  FROM gamedata
 WHERE year >= '1990'
  ;
-----------------------

-sab

Craig

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:September 29, 2014, 05:51:56 am
    • Creation on the Web
Re: sorting by decade? looking for how to
« Reply #3 on: April 14, 2005, 11:51:36 am »
vartech,

Give me your mame version and I will make a batch file for you that will copy all 80's games to a temp folder then you can move them to your machine.

I did a similar thing for my box. I wanted all games up to 1992.
I love the life I lead. I wish I could afford it.

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: sorting by decade? looking for how to
« Reply #4 on: April 14, 2005, 12:03:59 pm »

-----------------------
SELECT 'move c:\mame\roms\' || romname || '.zip c:\mame\oldroms\'
« Last Edit: April 14, 2005, 12:18:31 pm by jcrouse »

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
Re: sorting by decade? looking for how to
« Reply #5 on: April 14, 2005, 12:05:20 pm »
Using a properly configured listgen, you can use this SQL to create a batch file to move all MAME ROMs newer than 1989 to another directory (change the 2 paths appropriately).

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: sorting by decade? looking for how to
« Reply #6 on: April 14, 2005, 12:12:25 pm »
listgen is an application that you need to download and install. It uses SQL commands to create gamelist/sort roms. I have never used it. I'm sure someone will jump in. Then again, you could do a SEARCH on "listgen" and probably find everything you need.

 ;D
John

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: sorting by decade? looking for how to
« Reply #7 on: April 14, 2005, 12:18:37 pm »
listgen is an application that you need to download and install. It uses SQL commands to create gamelist/sort roms. I have never used it. I'm sure someone will jump in. Then again, you could do a SEARCH on "listgen" and probably find everything you need.

 ;D
John

Download ListGen

I developed ListGen to create game lists. The SQL engine within ListGen is capable of much more, as you can see in this example.

Look in the ListGen threads for examples and how to configure.

BTW, screaming's SQL is correct. :)

Regards,
Buddabing
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
Re: sorting by decade? looking for how to
« Reply #8 on: April 14, 2005, 12:31:17 pm »
vartech,

Give me your mame version and I will make a batch file for you that will copy all 80's games to a temp folder then you can move them to your machine.

I did a similar thing for my box. I wanted all games up to 1992.

Thank You

I am using mame95b.  Can you also include instuctions on how to use. make it easy I can use the the one you did for games up to 1992.  Once again thank you

Craig

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:September 29, 2014, 05:51:56 am
    • Creation on the Web
Re: sorting by decade? looking for how to
« Reply #9 on: April 14, 2005, 01:13:54 pm »
Sorry buddy.

I was using a program called InfoMAME along with another called Sortinfo, then I would output that to a comma seperated file and then run two Perl scripts to add the commands to copy the files.

It seems that the 0.95 version doesn't work with InfoMAME unfortuneatly. Sorry about that. The best I can do is try an ealier version, but there may be some games that have name changes since or maybe not. I'd have to see MAWS http://www.mameworld.net/maws/for game changes. I know 0.92 works with InfoMAME.
I love the life I lead. I wish I could afford it.

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
Re: sorting by decade? looking for how to
« Reply #10 on: April 14, 2005, 01:29:16 pm »
Sorry buddy.

I was using a program called InfoMAME along with another called Sortinfo, then I would output that to a comma seperated file and then run two Perl scripts to add the commands to copy the files.

It seems that the 0.95 version doesn't work with InfoMAME unfortuneatly. Sorry about that. The best I can do is try an ealier version, but there may be some games that have name changes since or maybe not. I'd have to see MAWS http://www.mameworld.net/maws/for game changes. I know 0.92 works with InfoMAME.

what if I get mame .92 then sort then go back to mame 95?

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: sorting by decade? looking for how to
« Reply #11 on: April 14, 2005, 02:00:46 pm »
how about:

WHERE year < '1990'

Looks a little better but you also nee something like "and year > '1979'". Yours would produce all game form 1990 to date. I'm sure you knew this and it was just a typo.

John

  Actually, John, I was creating a batch file to remove all games newer than 1989.  If my query were as you suggested:

-----------------------
SELECT 'move c:\mame\roms\' || romname || '.zip c:\mame\oldroms\'
  FROM gamedata
 WHERE year < '1990'
  ;
-----------------------

  That would give me a batch file that would remove all ROMs older than 1990 out of the ROMs folder (not what he's looking for). 

  But you're (kind of) right, adding a line like 'AND year < '1980' would be more appropriate to leave me with ROMs only from the 80s, as the original poster asked for.  I guess I assume he just didn't want "newer" ROMs.  My apologies.

 So, here's the SQL you really want:
Code: [Select]
SELECT 'move c:\mame\roms\' || romname || '.zip c:\mame\oldroms\'
  FROM gamedata
 WHERE year >= '1990'
    AND year < '1980'
  ;

-sab
« Last Edit: April 14, 2005, 04:59:29 pm by screaming »

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:July 04, 2025, 11:34:22 pm
  • The Bears Still Suck!
Re: sorting by decade? looking for how to
« Reply #12 on: April 14, 2005, 02:05:37 pm »
What engine is that SQL statement for?  That's not standard SQL, is it?

I've started using the free Sql Server Desktop from microsoft, nice stuff.

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: sorting by decade? looking for how to
« Reply #13 on: April 14, 2005, 02:07:17 pm »
hot to familiar with this. can you give step by step inst? is this something that is run from the command promt?

   It's actually quite easy and you don't need the command prompt.  I wrote out some step-by-step instructions in this thread, but I'll re-itterate them here for the sake of exposure.

1) Download and extract the latest version of listgen.
2) Edit the listgen.ini and change the rompath and mamepath to match your setup.
3) Make sure skip_final_step is set to 1.
4) Save and close listgen.ini
5) Copy filter.sql to filter.sql.backup
6) Edit filter.sql and delete everything in there.
7) Add SQL statements in filter.sql to taste.  It's pretty easy to take an existing SQL statement and change it to output whatever you want.

For example,

Code: [Select]
--   /-Y means "prompt before overwrite"
--   will output a textfile with a bunch of lines
--   like
--   move /-Y c:\mame\roms\11beat.zip c:\mame\oldroms\
--   
--   rename xxx.txt to moveroms.bat, then run moveroms.bat from the commandline
SELECT 'move /-Y c:\mame\roms\' || romname || '.zip c:\mame\oldroms\'
  FROM gamedata
WHERE year >= '1990'
    AND year < '1980'
  ;

8 ) Rename xxx.txt to moveroms.bat
9) type moveroms.bat

Just take it slow and easy and you'll be alright :) Post here if you have any trouble and we'll walk you through this terrible command-line thing ;)

-sab
« Last Edit: April 14, 2005, 05:03:10 pm by screaming »

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: sorting by decade? looking for how to
« Reply #14 on: April 14, 2005, 02:08:11 pm »
What engine is that SQL statement for?  That's not standard SQL, is it?

I've started using the free Sql Server Desktop from microsoft, nice stuff.

   aaaaaaaaaaaaaaaaaahahahahahahahahahahahah

-sab

edit:   ahem.  Sorry, I just found that incredibly funny for some reason. *giggle*

edit2:   Okay, I'm over it.   Yes it's "standard" SQL, which is to say, it's follows SQL92 spec (that's what listgen supports).  SQL92 is the essentially the litmus that everyone uses when implementing an SQL engine. MS SQL Server (just like every other vendor) supports a subset of SQL92, but they added their own spice to it (again, just like everyone else).
 
  That exact SQL command should work in any SQL engine, including MS's.
« Last Edit: April 14, 2005, 02:34:15 pm by screaming »

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: sorting by decade? looking for how to
« Reply #15 on: April 14, 2005, 02:27:52 pm »
What engine is that SQL statement for?
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: sorting by decade? looking for how to
« Reply #16 on: April 14, 2005, 02:57:43 pm »
Vartech:

Here's a batch file you can use.
Just copy the attached file to your roms folder and rename it 80s-roms.bat (it needs to have the .bat extension)

Double-click on it and it will create a folder called c:\80s-roms and then it will copy every pre 1990 rom into the new folder.

This is based on Mame 0.95 listinfo. I used SortInfo, Excel and a text editor (CrimsonEditor).
« Last Edit: April 14, 2005, 03:00:18 pm by JoyMonkey »

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
Re: sorting by decade? looking for how to
« Reply #17 on: April 14, 2005, 03:44:48 pm »
Vartech:

Here's a batch file you can use.
Just copy the attached file to your roms folder and rename it 80s-roms.bat (it needs to have the .bat extension)

Double-click on it and it will create a folder called c:\80s-roms and then it will copy every pre 1990 rom into the new folder.

This is based on Mame 0.95 listinfo. I used SortInfo, Excel and a text editor (CrimsonEditor).

Thank you I will try it when I get home.  Would it be too much to ask for a how to so I can learn how to do it myself?  I am very greatfull for everyones help.  but I believe in learning and asking.


Remember give a man a fish feed him for a day.  Teach him how to fish and feed him for life.

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: sorting by decade? looking for how to
« Reply #18 on: April 14, 2005, 03:49:26 pm »
Hello wall, how are you today?

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: sorting by decade? looking for how to
« Reply #19 on: April 14, 2005, 03:51:37 pm »
Remember give a man a fish feed him for a day.  Teach him how to fish and feed him for life.
There's always "Build a man a fire, keep him warm for a night.  Set a man on fire, keep him warm for the rest of the night."

Sorry, been reading to much of Drew's stuff in the Everything Else board!
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:July 04, 2025, 11:34:22 pm
  • The Bears Still Suck!

vartech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 117
  • Last login:March 20, 2013, 03:38:17 pm
  • The Great Swordsman Hiko
Re: sorting by decade? looking for how to
« Reply #21 on: April 14, 2005, 03:58:46 pm »
listinfo.xml
-Generate your listinfo.xml from mame using the command line: mame -listxml > listinfo.xml


SortInfo ~ The MAME ListInfo Sorting Tool Version 1.1 is a useful tool when planning the control panel layout, rom selection etc. Freeware by EmuMannen


MS EXCEL


Crimson Editor is a professional source code editor for Windows.
This program is not only fast in loading time, but also small in size (so small that it can be copied in one floppy disk).

While it can serve as a good replacement for Notepad, it also offers many powerful features for programming languages such as HTML, C/C++, Perl and Java.


Well I have all the software needed to do this now I need the how.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:July 04, 2025, 11:34:22 pm
  • The Bears Still Suck!

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: sorting by decade? looking for how to
« Reply #23 on: April 14, 2005, 04:23:51 pm »
Well I have all the software needed to do this now I need the how.

This is an old and round-about method of doing this, but anyhow...
1. In Windows open the Command Prompt.
2. Go to your Mame folder
3. Generate your listinfo.xml by typing mame -listxml > listinfo.xml
4. Convert the xml to the old listinfo format by typing xml2info < listinfo.xml > listinfo.dat
5. Run SortInfo and go File>Import>Mame Listinfo File, import the listinfo.dat file you just generated.
6. Give it a minute and it will show you all the info from the listinfo file.
7. Go File>Expot>Comma Seperated Value File and save it somewhere
8. Open the CSV file in Excel and sort it to whatever games you want.
9. Once you've got a list of the games you want, select all the rom names and copy them into a text editor (I like to use CrimsonEditor).
10. Edit it to look like the text file I attached to the above post and save it as a BAT file.