EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: CMP Sub-Directory Handling  (Read 9835 times)

exo

  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Chrome 4.0.249.11 Chrome 4.0.249.11
    • View Profile
CMP Sub-Directory Handling
« on: 16 January 2010, 16:11 »

I have used CMP for the past year or two to handle the dats for the ScummVM Collection.  A common problem I've had with CMP before is that rom sets with directories in them are often scanned as incorrect, with errors about unneeded folders.  In the version of CMP I was using, which was a year or so old, there was an option to disable this error.  In the latest version I have tried creating my dat (using dir2dat) with set-subfolder mode checked and unchecked and add 0-file for empty folder checked and unchecked (since none of the directories are emtpy though, this should not be the problem).

I am posting to check and see if I am missing something, or if this is a bug in the way CMP is handling the dat creation.  I do not want to release dat files for the new ScummVM collection if it runs the risk of someone rebuilding their set only to have this remove what it considers to be unneeded folders (which are very much needed).

Thanks in advance for any info.
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: CMP Sub-Directory Handling
« Reply #1 on: 16 January 2010, 19:29 »

Since you say that no folder is empty it shouldn't be a problem to scan them correctly.

Send me a datfile.

It should contain roms like this (old syntax, xml is similar, romnames hold fullfolder)

game ( name sub description subsub
rom ( name "bla\blablabl\blalbalbla\1.bin" size 1024 crc 12345678 )
)
Logged

exo

  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Chrome 4.0.249.11 Chrome 4.0.249.11
    • View Profile
Re: CMP Sub-Directory Handling
« Reply #2 on: 17 January 2010, 14:34 »

Alright, here is one of the dats (I have had to make a dat for each subfolder in this torrent in the past, which is a whole other issue.  We'll see if this doesn't help with that too).

The only game in this set with a subfolder is "Kingdom O' Magic (DOS, CD)".  When running the scan with this dat it comes back with like 100 instances of "unneeded folder".

Thanks for looking into this.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: CMP Sub-Directory Handling
« Reply #3 on: 17 January 2010, 20:48 »

Works fine here....

maybe you're talking about useless zip folder structures which can get optionally detected and removed (Settings->compressor->General->Mark useless folder structs as unneeded)

Zip can store an extra folder entry in the zipfile...which is not needed for subfolders and can be removed.

So maybe you should send me a file in question and some screenshots.
Logged

exo

  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Chrome 4.0.249.11 Chrome 4.0.249.11
    • View Profile
Re: CMP Sub-Directory Handling
« Reply #4 on: 18 January 2010, 11:50 »

That setting change did it!  Thank you for the help.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: CMP Sub-Directory Handling
« Reply #5 on: 18 January 2010, 13:13 »

Good to hear it's 'fixed' for you.

As mentioned, you can have folder entries besides file entries in zipfiles like:

"subfolder\"
"subfolder\rom1.bin"

Since filenames are always fully qualified, you don't actually need the dummy folder entries and they become unneeded....the fully qualified filename is more than enough to create subfolders.
Logged
Pages: [1]   Go Up
 

Page created in 0.177 seconds with 19 queries.

anything