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: Remove games with screens/snaps missing??  (Read 6568 times)

0 Members and 1 Guest are viewing this topic.

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Remove games with screens/snaps missing??
« on: September 03, 2013, 03:59:02 pm »
Hi guys.

Let's say that I have a list of over 2000 C64 games titles in MA. 500 of them have screens, the rest(1500) don't.

I'm curious, is there's an easy way to remove these 1500 games from the list in MA, sort of filtering away those with screens missing?

//Quizz

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Re: Remove games with screens/snaps missing??
« Reply #1 on: September 03, 2013, 04:10:22 pm »
Hi guys.

Let's say that I have a list of over 2000 C64 games titles in MA. 500 of them have screens, the rest(1500) don't.

I'm curious, is there's an easy way to remove these 1500 games from the list in MA, sort of filtering away those with screens missing?

//Quizz
Not sure about MA, but most if not all fe works with the roms at the top of the chain... your best bet would be moving the roms with a batch files that reference the snaps names and move only those without a corresponding name...
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Re: Remove games with screens/snaps missing??
« Reply #2 on: September 03, 2013, 07:04:35 pm »
your best bet would be moving the roms with a batch files that reference the snaps names and move only those without a corresponding name...

Sorry for being such a newbie, but can you explain how to do this, or give an example? Never worked with batch files before.  :-[

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Re: Re: Remove games with screens/snaps missing??
« Reply #3 on: September 03, 2013, 07:36:33 pm »
your best bet would be moving the roms with a batch files that reference the snaps names and move only those without a corresponding name...

Sorry for being such a newbie, but can you explain how to do this, or give an example? Never worked with batch files before.  :-[
Don't sweat it, we are all layman in something! I will lay it out for you in a bit, just got to put the kids to bed first!
Are your roms on your c: drive? The whole path would make it easier for you...
« Last Edit: September 03, 2013, 07:41:46 pm by ppv »
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #4 on: September 03, 2013, 09:14:48 pm »
This is done in win7 will try it in xp a bit after...

I make one HUGE assumption: That the snaps uses the SAME NAME as the roms.


Beforehand, please excuse any typos or errors as English is not my first language:
The steps will be labeled as such : WINDOWS: for any action you do in windows and CMD: any actions you do in the command box.

I will be using the following as examples : The Drive will be d: , the emu folder will be d:\c64 , the snaps folder will be d:\c64\snaps and the roms folder will be d:\c64\roms .
  • WINDOWS: Type CMD in the Windows task bar to open the command window.
  • WINDOWS: Open a file explorer to your snaps folder.
  • WINDOWS: Once there, click in the address bar to reveal the full path. Select and copy it. (ctrl-c) .
  • CMD: Type the drive letter ( d: ) and hit enter.
  • CMD: Type cd (with a space after) then right click on the mouse to reveal the contextual menu. Click on paste. Then hit enter. You now should be in your snaps folder.
  • CMD: Type the following ( dir /B >games.txt ) then hit enter. This will redirect the directory command to the games.txt file.
  • WINDOWS: Open the  games.txt files (in notepad). You should now see a listing of all you snapshots. But we need to remove those pesky file extensions! So click on the edit menu, click on replace and type ( .png ), or whatever format your snaps are in, in the search box and click replace all. Save the file.
  • WINDOWS: Then right-click on your games.txt file and select copy.
  • WINDOWS: go to your roms folders ( d:\c64\roms ). Paste the file you just copied in it.
  • WINDOWS: click on ( New Folder) to create a new folder. Name it ( Good ).
  • CMD: I am not gonna bother with a batch file as you need only to type one command. Type ( for /F "tokens=*" %%A in (Games.txt) do copy %%A.c64 d:\c64\roms\Good ). This will copy all the games that have a corresponding snaps in the Good folder. Replace the .c64 to the file type of your roms.
Now it simply is a matter of moving the old romset in another folder (do not delete) and copy the content of the d:\c64\roms\Good folder in your old roms path ( d:\c64\roms ).

You should be all set.
« Last Edit: September 03, 2013, 09:29:05 pm by ppv »
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #5 on: September 03, 2013, 09:55:11 pm »
Thanks! I'm using Win7 yes.

The C64 roms are in separate folders by letter, so I tried with a GBA romset instead.

I have no D:, so I put it on C: instead.

I've gotten to the last step(11.) but when i type:

for /F "tokens=*" %%A in (games.txt) do copy %%A.gba c:\gba\roms\Good

I get:

%%A was unexpected at this time.

What am I doing wrong?

//Quizz
« Last Edit: September 04, 2013, 04:56:57 am by quizz_kid »

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #6 on: September 03, 2013, 10:07:12 pm »
Nothing! It has to be in a cmd!  :banghead: :banghead: :banghead:
I am a dumbass sometimes!

unzip the cmd in your folder and run it!
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #7 on: September 04, 2013, 04:56:19 am »
Which folder do I put your attached run cmd file in? I tried c:\gba, c:\gba\roms and c:\gba\snaps, but all I get is lines of: The system can not find the file specified




« Last Edit: September 04, 2013, 05:11:46 am by quizz_kid »

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Re: Remove games with screens/snaps missing??
« Reply #8 on: September 04, 2013, 06:21:22 am »
Which folder do I put your attached run cmd file in? I tried c:\gba, c:\gba\roms and c:\gba\snaps, but all I get is lines of: The system can not find the file specified


In the roms folder, sorry if I haven't been  clear on that. Do the name of the roms files matches the one in the games.txt? Else send me a copy of your games.txt and a screen capture of you roms folder...
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #9 on: September 04, 2013, 08:19:01 pm »
Some of the games matches yes, and those are the games that I want to separate from the ones that don't matches of course.

I don't know how to send the .txt file. How do you post a download link in a forum thread like this?

Anyway, here's an captue/example of the roms folder + games.txt-file





ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #10 on: September 04, 2013, 09:08:23 pm »
You seem to have a lot of dupes in your games.txt file. Take SFA3 as an example... only one rom but two snaps found... might be the cause of all the file not found... Is the good folder empty?
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #11 on: September 04, 2013, 09:12:29 pm »
I could always log in with team viewer, with your permission of course...
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #12 on: September 05, 2013, 07:16:23 am »
Yeah, the Good folder is empty. I tried another one with 3 roms & 2 snaps, same results, so I dont think the dupes are causing it.

for /F "tokens=*" %%A in (games.txt) do copy %%A.a c:\a\aroms\Good


Team viewer is ok!

Quizz


ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Re: Remove games with screens/snaps missing??
« Reply #13 on: September 05, 2013, 07:32:41 am »
Yeah, the Good folder is empty. I tried another one with 3 roms & 2 snaps, same results, so I dont think the dupes are causing it.

for /F "tokens=*" %%A in (games.txt) do copy %%A.a c:\a\aroms\Good


Team viewer is ok!

Quizz
what time is it in your corner of the world? It's almost time for work here. Maybe i can manage it in about 4 to 5 hours
« Last Edit: September 05, 2013, 10:27:56 am by ppv »
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #14 on: September 05, 2013, 10:25:53 am »
for /F "tokens=*" %%A in (games.txt) do copy %%A.gba c:\a\aroms\Good
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #15 on: September 05, 2013, 11:37:07 am »
for /F "tokens=*" %%A in (games.txt) do copy %%A.gba c:\a\aroms\Good

Sorry, my mistake, I DID have the cmd like that. Didn't work. I'll be away for some hrs now, but maybe you can help me in a couple of hrs? Or tomorrow if that's better?

//Quizz

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #16 on: September 05, 2013, 11:55:21 am »
for /F "tokens=*" %%A in (games.txt) do copy %%A.gba c:\a\aroms\Good

Sorry, my mistake, I DID have the cmd like that. Didn't work. I'll be away for some hrs now, but maybe you can help me in a couple of hrs? Or tomorrow if that's better?

//Quizz

I'm available for the next hour... i'll keep reloading the thread!
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #17 on: September 05, 2013, 02:49:08 pm »
Hi. As I said I'll be away for a while, back in 2 hrs maybe. If that doesnt work, we could try another time. Im free tomorrow

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #18 on: September 05, 2013, 08:31:06 pm »
Ok for tomorrow then! I'll be available from 12h to 13h (GMT -5), same period as today. (my dinner break!) ;D I think we have a six hour difference.
« Last Edit: September 05, 2013, 08:34:30 pm by ppv »
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]

quizz_kid

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:January 01, 2016, 03:10:29 pm
  • In the year 20XX...
    • http://www.lovehulten.com
Re: Remove games with screens/snaps missing??
« Reply #19 on: September 06, 2013, 12:21:31 pm »
Im real sorry man, got some overtime today and had to work. Let's try again soon...

ppv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 236
  • Last login:October 16, 2020, 03:08:56 pm
  • The cheap@ss gamer
Re: Remove games with screens/snaps missing??
« Reply #20 on: September 06, 2013, 12:29:54 pm »
Im real sorry man, got some overtime today and had to work. Let's try again soon...
Ok, but if you are available now i'm at dinner so I have time! If not no problems! These things are hard to syncrhonise... :)
Doing arcades, the cheap@ss way!
First Project : ttp://forum.arcadecontrols.com/index.php/topic,151071.0.html
Next one : The Token Muncher [urlhttp://forum.arcadecontrols.com/index.php/topic,135417.0.html[/url]