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: Folders and new dat creation  (Read 10542 times)

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
    • View Profile
Folders and new dat creation
« on: 23 February 2011, 03:42 »

Hello, I have a quick question about roms inside folders.

Is there a way in clrmamepro to create a dat file that will ensure roms are inside folders?

For example: If I wanted all the Mega Man games inside a folder

Mega Man (zipped file)
  - Mega Man (folder)
    -  Mega Man 7 (rom)
    -  Mega Man X (rom)
    -  Mega Man X 2 (rom)
    -  Mega Man X 3 (rom)

Every time I try to create a DAT file to support this it asks me to remove the folders when auditing the new DAT I created.

Any help would be appreciated. Thank you!
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3293
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Chrome 9.0.597.98 Chrome 9.0.597.98
    • View Profile
Re: Folders and new dat creation
« Reply #1 on: 23 February 2011, 07:35 »

Sure you can do that...the dat needs foldernames on romlevel...

game (
 name "Mega Man"
 description "Mega Man My Ultimate Collection"
 rom ( name "Mega Man\Mega Man 7" size ... crc ...)
 rom ( name "Mega Man\Mega Man X" size ... crc ...)
 rom ( name "Mega Man\Mega Man X 2" size ... crc ...)
 rom ( name "Mega Man\Mega Man X 3" size ... crc ...)
...
)


..of course you can even use more subfolders

 rom ( name "Mega Man\Mega Man X\Mega Man X" size ... crc ...)
 rom ( name "Mega Man\Mega Man X\Mega Man X 2" size ... crc ...)
 rom ( name "Mega Man\Mega Man X\Mega Man X 3" size ... crc ...)



Don't mix up the removal of zip folders structures with the upper storing method. There is an option (Settings->compressor->General->Mark useless folder structs as unneeded) to remove unnecessary directory tags inside zips (some zip programs tend to add this additional structure) to save some bytes...
« Last Edit: 23 February 2011, 07:37 by Roman »
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
    • View Profile
Re: Folders and new dat creation
« Reply #2 on: 23 February 2011, 12:44 »

Is there an easy way to do this with dir2dat (or any other method) when creating a dat file or do I need to manually add the folder names to the dat using some type of text editor?

Thanks for the help!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3293
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Chrome 9.0.597.98 Chrome 9.0.597.98
    • View Profile
Re: Folders and new dat creation
« Reply #3 on: 23 February 2011, 13:16 »

yes, play around with "set-subfolder mode"
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
    • View Profile
Re: Folders and new dat creation
« Reply #4 on: 23 February 2011, 13:47 »

Ok thank you, I'll give it a try.

I appreciate the help!
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
    • View Profile
Re: Folders and new dat creation
« Reply #5 on: 24 February 2011, 16:26 »

I must not be understanding, when if I select the "set-subfolder mode" in the dir2dat function it doesn't keep the folder structure

dat Example:
Quote
<?xml version="1.0"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd">

<datafile>
   <header>
      <name>-insert name-</name>
      <description>-insert description-</description>
      <category>Standard DatFile</category>
      <version>-insert version-</version>
      <date>-insert date-</date>
      <author>-insert author-</author>
      <email>-insert email-</email>
      <homepage>-insert homepage-</homepage>
      <url>-insert url-</url>
      <comment>-insert comment-</comment>
      <clrmamepro/>
   </header>
   <game name="test02">
      <description>test02</description>
      <manufacturer></manufacturer>
      <rom name="test03.txt" size="6" crc="a4231bf1"/>
   </game>
   <game name="test2">
      <description>test2</description>
      <manufacturer></manufacturer>
      <rom name="test3.txt" size="1" crc="6dd28e9b"/>
      <rom name="test4.txt" size="1" crc="f3b61b38"/>
   </game>
</datafile>

However if I modify the dat file manually using a text editor it works fine. Is there any other option I need to select in the dir2dat mode to make this work?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3293
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Chrome 9.0.597.98 Chrome 9.0.597.98
    • View Profile
Re: Folders and new dat creation
« Reply #6 on: 24 February 2011, 17:45 »

Yep, it's tricky, but the option is correct....It's only a question of what is the root folder for dir2dat...

Let's assume the following:


D:\temp\test is your dir2dat root, the source folder

In there you got 3 files, one on root level, another one in a folder names Set1 and the last one in a subfolder of Set1, called sub1

D:\temp\test\141.xml

D:\temp\test\Set1\141.xml
D:\temp\test\Set1\sub1\141u1.xml


Dir2Dat will then create:


   <game name="default">
      <description>default</description>
      <rom name="141.xml" size="45487005" crc="a4debe29"/>
   </game>
   <game name="set1">
      <description>set1</description>
      <rom name="141.xml" size="45487005" crc="a4debe29"/>
      <rom name="sub1\141u1.xml" size="46985053" crc="3c6f4755"/>
   </game>


The first game for the one file since it can't find any useful set assignment for it, and the 2nd game takes everything from the folder set1 ...and *there* you got your subfolders ;)
Logged

Specialt1212

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.6.13 Firefox 3.6.13
    • View Profile
Re: Folders and new dat creation
« Reply #7 on: 26 February 2011, 12:44 »

That fixed my problem.

Thank you for the help!


Logged
Pages: [1]   Go Up
 

Page created in 0.175 seconds with 19 queries.

anything