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: changing the (old) emumovies filenames to the no intro one's ....  (Read 2433 times)

0 Members and 1 Guest are viewing this topic.

joyrider

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 29, 2007, 07:24:29 am
    • Willems Soft
Today i found out about the no intro screenshot site, big thumbs up for that :notworthy: so i decided to rename my goodXXX sets to the no intro ones so i can use the screenshots. used romcenter to do this.

No my other problem i have some old emumovies video files here and they are named according to the goodsets as far as i can see. I know there doesn't exist a tool and i also know i'm not going to do it manually but wouldn't it be possible to compare a goodset dat file with the romcenter one from the no intro sets, look up the filenames and CRC and rename the movies accordingly ? i'm goana look into to this but i can't seem to find any goodXXX dat files anymore only the goodxxx toolsets. Are these dat files gone ? any other idea's how this can be done programmaticly ?

Nologic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:November 21, 2008, 03:22:57 pm
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #1 on: March 21, 2007, 07:54:27 pm »
I'll look into this as I have to do this my self.

What sets are you needing done? That way I can focus on your needs if its less than all of them...which happens to be the case for me.
"Pinky, you've left the lens cap of your mind on again." - The Brain

joyrider

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 29, 2007, 07:24:29 am
    • Willems Soft
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #2 on: March 22, 2007, 08:07:24 am »
basicly the most common game consoles & handhels like game gear, gameboy, gamboy advance, nintendo nes, super nes, master system, sega genesis. I have looked at the filenames and in some cases it's ok to just remove the [!] near the end, but not all the time. If i only found a dat file for the goodsets i could have a look at it myself as well. the romcenter site has problems displaying them and the emufrance website has been gone for quit some time where the dats used to be hosted.

edit:
this is what i'm doing so far and the files to be renamed manually gets narrowed down al lot.

1) look for all movies in the directory
2) for each movie filename see if there exists a rom with the same filename if so goto the next moviename else
3) strip down the movies filename's tags ((ue) (j) [!] etc)) in filename variable
4) see if there exists a rom that mathches the romsdir\(stripped tags filename variable)*.romextension
5) if there is one found name the movie to the first found match. goto next movie name

it works more or less but u can have some problems like
what if u have a movie filename but don't have the rom -> u'll need to check manually
the movie filename will be renamed to the first found rom match so it could happen that a jap and us rom exists and that the movie filename gets renamed to the jap rom filename whereas the movie was taken from the english version. I don't find this a big problem doh since the game is basicly the same except for some text messages.

i'm goana change it some more when i got time to seek for romsdir\*(stripped tags filename variable)*.romextension
so that the filename doesn't have to start with the same name when it searches for a rom match. for example movie is called simpsons.avi and rom is called the simpsons.avi it would find it. of course this could give new problems.

but at least it narrows it down a lot and i can try further by manully doing some files (it went from around 200 wrong named ones to 38 wrong named or not found roms for the game gear roms i have.

well the game gear went ok; master system also only about 70 files to do manually however with sega genesis i have to do 253 of them manually  :cry: no way around it :( . I'm wondering what it be like with nes etc goana try it out before i do the genesis ones manually .... well the gba roms had almost nothing to be done manually, gameboy neither nes and snes need around 150 in total to do manually so all in all doing 500 of them manually is still ok but tedious :) way better then having to do everything manually, i've gotten about 75 % of all movies done automaticly. There could be errors while renaming (wrong game or sumething) doh but i couldn't find any (yet) will have to check it once i actually start using the cabinet and finished it ;)

« Last Edit: March 22, 2007, 08:22:49 pm by joyrider »

Nologic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:November 21, 2008, 03:22:57 pm
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #3 on: March 23, 2007, 12:08:21 am »
I've made some dat files for the goodmerge sets created from my own copys...should be good...anyways I'll see what else I can do.

*Update*

Well tried matching CRC's between dat files trying the Atari 5200 as a sample....came up with only 1...I repeat 1 matching CRC. :(

I'll try others...but at that ratio...it seems like a waste of time.
« Last Edit: March 23, 2007, 07:32:49 pm by Nologic »
"Pinky, you've left the lens cap of your mind on again." - The Brain

joyrider

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 29, 2007, 07:24:29 am
    • Willems Soft
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #4 on: March 23, 2007, 07:29:01 am »
hey, i looked over the dats manually and there are more matches then just 1 ! u must be doing something wrong :) just look at the dats manually almost every game i checked manually had a match in the other dat file just have look at it manually. Maybe ure parsing the file wrong. I'll look into it at as well but i have no clue how i should parse the dat files programmaticly will have to think about it.


gooddat :
game (
   name "Ballblazer (1984) (Atari-Lucasfilm Games)"
   description "Ballblazer (1984) (Atari-Lucasfilm Games)"
   year ""
   manufacturer ""
   rom ( name "Ballblazer (1984) (Atari-Lucasfilm Games) [a1].bin" size 32768 crc 94d97d14 )
   rom ( name "Ballblazer (1984) (Atari-Lucasfilm Games).bin" size 32768 crc def2a207 )
)


nointro :

game (
   name "Ballblazer (U)"
   description "Ballblazer (U)"
   rom ( name "Ballblazer (U).a52" size 32768 crc def2a207 md5 f5cd178cbea0ae7d8cf65b30cfd04225 )
)

gooddat:

game (
   name "Astro Chase (1982) (Parker Bros-First Star Software)"
   description "Astro Chase (1982) (Parker Bros-First Star Software)"
   year ""
   manufacturer ""
   rom ( name "Astro Chase (1982) (Parker Bros-First Star Software).bin" size 16384 crc 4019ecec )
)

nointro :

game (
   name "Astro Chase (U)"
   description "Astro Chase (U)"
   rom ( name "Astro Chase (U).a52" size 16384 crc 4019ecec md5 bae7c1e5eb04e19ef8d0d0b5ce134332 )
)


...but basicly this is what u have to do :
for each gooddats game filename  see if the movie exists (filename with changed extension to avi) if it does exists find the crc entry in the nointro file (u'll have to loop through all games over and over again, until u find a match) if a match is found rename the avi movie gooddat filename with changed avi extension  to the nointro game's name with changed avi extension.

lets take the example of  ballblaze:
suppose we have a movie filename named : Ballblazer (1984) (Atari-Lucasfilm Games).avi  what we do is

we take the first game entry from good dat : Ballblazer (1984) (Atari-Lucasfilm Games) [a1].bin
we change the extension to avi : Ballblazer (1984) (Atari-Lucasfilm Games) [a1].avi
we see if the avi file exists : no it doesn't ok goto next entry in gooddat
we take next entry from good dat :  Ballblazer (1984) (Atari-Lucasfilm Games).bin
we change extension to avi : Ballblazer (1984) (Atari-Lucasfilm Games).avi
we check if the movie exists on the hard drive : Yes it does ok look up the crc from good dat file : def2a207
we check in the no intro file the first game's crc : def2a207 Bingo we got a match rename the files
we take the our filename with changed extension (gooddat) : Ballblazer (1984) (Atari-Lucasfilm Games).avi and rename it to the nointro file with changed extension : Ballblazer (U).avi

see that's how it's supposed to be done. I just have to figure out how i can parse the data files if i can parse it and have a list of all game's and crc's i can create the tool myself :) goana try some stuff myself. damn it should have some backups of my movies hehe well the remaining 500 i had to do manually can be done like this goana try to parse the dat files now as a starter


Update:
well i made the tool to compare the crc's and out of the 107 no intro romsets  for the atari file u said it found 101 matches
now it'll be very easy to add the renaming cabability. Also watch out some crc's are written as 0xXXXXXXXX while others are just written as XXXXXXXX a simple string replace with "0x" and "" will fix this :)

goana test some other dats now which u gave me

nes : 1876 gooddat matches out of 2366 no intro roms
sega genesis : 1542 gooddat matches out of 1599  no intro roms

see it works now i'm goana add the renaming stuff and test it out with my movies :>

update2 :
added the renaming stuff: well it seems to work great although it still doesn't rename all the movies because most probably the movies were made with roms of an older gooddat set and not the newest, if we knew with what version the roms of the goodtools / dat the movies where created from we could rename them all ! but i guess we'll never know that :)

i'm happy doh it renamed a lot Of movies! i could even see the mistakes my previous program renamer program made and could fix em ! (wheren't that many) oh yeah  thanks for the dats. btw how did u create the dat files ? and did u have a complete set for each of them u created (the gooddat ones) ?. also u don't happen to have a dat file for the goodgba ones. Oh yeah if u want i can send u the program (it's not elegant in any way and it definatly doesn't look good but it works, i even added an option to not rename the files but only show u what emu movie files & how many would be renamed without actually renaming them so u can see if u wanna go ahead with it or not. here's a screenie of how it looks : http://www.willemssoft.be/misc/emumoviesrenamer.jpg

oh yeah could u do me another favor if it's possible, and create a dat file from the sega genesis movies u have. so that i can name them correctly again, i had renamed them already to other goodset filenames and it were 200 of them and i'm not in the mood to do 200 of them manually with the new tool i wrote it should rename more of them thanks in advance

« Last Edit: March 23, 2007, 12:43:45 pm by joyrider »

Nologic

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:November 21, 2008, 03:22:57 pm
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #5 on: March 23, 2007, 08:06:34 pm »
EmuMovies Sega Genesis.rar CRC & MD5 values

Well in this one instance I'm extremely happy to be wrong. :)

I'm using clrmamepro 3.99b to create the dat files. Basically when you first fire up clrmamepro you'll be presented with a dialog box called ">Profiler<" and on the lower right corner there is a button called "Dir2Dat" this is what I used. I probably should have included MD5 sums as well...but I'm not sure if we have CRC32's that overlap that cause this to be required...but if you like I can recreate the dat files.

Yes the GoodMerge sets are suppose to be complete versions...I don't know the tool well enough to verify them...probably doing something wrong somehow.

I had GoodGBA....just not finding it right now....I'll keep looking as it would be a big help with this. :)

Yeah I would like to get my hands on that app...as it would save me time and effort.

Question does your app move the recently renamed avi's to a subfolder? as it would make things quicker to browse over the remaining files needing renaming.

*Update*

Far as I can tell it looks like the GBA EmuMovies where actually based off No-Intro dats. :)
« Last Edit: March 24, 2007, 12:33:39 am by Nologic »
"Pinky, you've left the lens cap of your mind on again." - The Brain

joyrider

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:March 29, 2007, 07:24:29 am
    • Willems Soft
Re: changing the (old) emumovies filenames to the no intro one's ....
« Reply #6 on: March 24, 2007, 06:39:05 am »
Hey, i tested the tool out again on the original emumovies i have for a few systems (the ones i actually use were already partially renamed with my orginal tag stripping renaming tool). Here are the stats :

Nintendo 64 :
renamed 193 files, 21 remaining
don't have the N64 set so dunno how many of the 21 are not in the no intro format

nintendo nes :
renamed 35 files, 697 remaining
from the 697, 195 are not in the no-intro format
123 renamed with my orignal tool
72 remaining

nintendo gamboy :
renamed 312 files, 209 remaining
from the 209, 143 are not in the no-intro format
38 renamed with my orignal tool
105 remaining
 

nintendo gamboy color :
renamed 408 files, 2 remaining
from the 2, 2 are not in the no-intro format
0 renamed with my orignal tool
2 remaining

nintendo super nes :
renamed 266 files, 435 remaining
from the 435, 26 are not in the no-intro format
6 renamed with my orginal tool
20 remaining

so only nes and gamboy have somewhat bad ratio.

i'll see that i add the option to move the files to another directory, and i'll also add an option to move files to the directory that are already in correct no intro format.

here's the tool : http://users.pandora.be/IMS/renamer.zip I suggest u take a backup of ure movies doh, just in case something goes wrong, but i'm happy with it, it did it's job pretty good :)
« Last Edit: March 24, 2007, 07:06:58 am by joyrider »