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: Dir2Dat for softlists  (Read 8415 times)

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 46.0.2490.80 Chrome 46.0.2490.80
    • View Profile
Dir2Dat for softlists
« on: 27 October 2015, 19:17 »

The dir2dat option is very useful for getting the initial rom tag info required for creating softlists. But this still requires lots of additional processing to add all other tags (software, description, year, publisher, part, dataarea).
Any chance of adding an option to create a xml in softlist format? Obviously the tag contents will still require manually editing but software and description could default to the rom filename as a starting point.

Thanks.
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 46.0.2490.80 Chrome 46.0.2490.80
    • View Profile
Re: Dir2Dat for softlists
« Reply #1 on: 27 October 2015, 20:00 »

There's always a chance ;-)...I put it on my list...but as usual...don't expect anything anytime soon.
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 46.0.2490.80 Chrome 46.0.2490.80
    • View Profile
Re: Dir2Dat for softlists
« Reply #2 on: 27 October 2015, 20:01 »

Appreciate it, no rush!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #3 on: 19 December 2015, 16:16 »

well, as you can see from the latest postings, I've added an export in software list format...
Open question still is: how to export multiple roms...(not that common for consoles/old systems) but assume you got 10 roms for 1 set, do you want to store them in 1 part/dataarea tree with 10 rom elements as childs or 10 dataarea elements with holding 1 rom each...or 10 part elements with 1 dataarea and 1 rom each....
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #4 on: 05 January 2016, 19:53 »

http://mamedev.emulab.it/clrmamepro/binaries/169_as_softlist.7z

just an example export....MAME .169 in software list format...feel free to comment on the part/dataarea blocks...

note: software list exported roms/disks don't have merge elements (according to dtd)...so you may run into some messages when you try to load this 169 dat....
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #5 on: 06 January 2016, 00:26 »

feel free to comment on the part/dataarea blocks...
A nice start, couple of comments:
- all <dataarea> should be wrapped with <part>
- all <rom> should contain an offset attribute, which is usually 0.
Code: [Select]
<part name="" interface="">
<dataarea name="rom" size="32768">
<rom name="10107-1.epr" size="32768" crc="3b67cce3" sha1="95f71526c236262ff985148ba7ea057f07fadbe8" offset="0"/>
</dataarea>
</part>
<part name="" interface="">
<dataarea name="rom" size="16384">
<rom name="10107-2.epr" size="16384" crc="89d08795" sha1="dc75502580d681d9b4dc878b0d80346bcef407ae" offset="0"/>
</dataarea>
</part>
Looking forward to testing this.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #6 on: 06 January 2016, 08:49 »

offset isn't a problem......1 rom inside 1 dataarea inside 1 part element.....*sigh* what a waste ;-) but well.....if you really want it that way...
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #7 on: 06 January 2016, 10:30 »

1 rom inside 1 dataarea inside 1 part element.....*sigh* what a waste ;-) but well.....if you really want it that way...
Each part represents a physical media of a software release, take a look at my bbcb_z80_flop.xml in mame/hash folder for an example of software released on multiple floppies. If each floppy was not a part then MAME would try to mount all floppies in a set at the same time, the part makes them independently selectable but still within the same set.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #8 on: 06 January 2016, 10:53 »

Yes, I do understand this...for systems which are somehow media (floppy/harddisk/cd/whatever) based it makes sense...for arcade boards where you have 20 roms on 1 board it gets a bit messy....
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #9 on: 06 January 2016, 11:01 »

Yeah, but why would you want to create a software list for an arcade board? The board roms are documented internally.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.106 Chrome 47.0.2526.106
    • View Profile
Re: Dir2Dat for softlists
« Reply #10 on: 06 January 2016, 11:45 »

Well, that's the difference of having a generic export and a specific....in cmpro you can export anything you've loaded into xml, softwarelist and old-style-listinfo format.....
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.111 Chrome 47.0.2526.111
    • View Profile
Re: Dir2Dat for softlists
« Reply #11 on: 27 January 2016, 18:26 »

Thanks for the new release, it will already save many hours creating softlists. A couple of comments though:
- still need offset="0" after the sha1 as discussed previously.
- would be nice to add a <year> tag, which can be
Code: [Select]
<year>????</year> by default.
- I couldn't get the manufacturer option to do anything, didn't add a publisher tag with or without 'From Folder' selected.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 48.0.2564.82 Chrome 48.0.2564.82
    • View Profile
Re: Dir2Dat for softlists
« Reply #12 on: 27 January 2016, 18:40 »

oh yeah...I forgot the offset...sorry...totally missed that
generally, year, manufacturer etc only get added if they are not empty....(which happens often if you don't use the match tag data option..which tries to take the names from the currently loaded dat)
"From Folder" for manufacturer only works in single file set mode. (so if you got 10 files in a folder called Namco, you get 10 different sets with 1 file each and all get the publisher name Namco). Otherwise the folder/archive name forms the setname.


so...question is how do you store your softwarelist files for dir2dat to run on....
maybe "from folder" should also apply if an archive (zip/rar/7z) is involved....(so the setname comes from the archive)
« Last Edit: 27 January 2016, 18:47 by Roman »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 48.0.2564.82 Chrome 48.0.2564.82
    • View Profile
Re: Dir2Dat for softlists
« Reply #13 on: 27 January 2016, 19:21 »

here we go...

misc: dir2dat, software exports adds offset=0
misc: dir2dat, prevent system sleep mode
misc: dir2dat, add manufacturer from folder also works for non-single-set mode
misc: dir2dat, when addYear/addManufacturer is used, tags get initialized with "????"
      (unless they get a value assigned by other options)

http://mamedev.emulab.it/clrmamepro/binaries/cmp20160127.rar
Logged

Pernod

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 47.0.2526.111 Chrome 47.0.2526.111
    • View Profile
Re: Dir2Dat for softlists
« Reply #14 on: 27 January 2016, 21:20 »

The update is now working to my requirements, and will save me many hours in creating these softlists. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.171 seconds with 20 queries.

anything
anything