• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Manually generate Mame2003 gamelist?

Scheduled Pinned Locked Moved General Discussion and Gaming
mamescrapescriptgamelist
49 Posts 9 Posters 20.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    herb_fargus administrators
    last edited by 18 Dec 2016, 05:54

    still need to check out the php script, haven't gotten a free moment yet.

    Though as an aside to parsing the xmls, as I haven't really got the greatest scripting skills, a quick hack you can download the sheet as a csv, upload that csv to here: http://www.convertcsv.com/csv-to-xml.htm and tweak a few settings and it pukes out a functional gamelist.xml

    Once the spreadsheets are filled, should be simple enough to generate :)

    If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

    Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

    U 1 Reply Last reply 28 Jan 2017, 15:27 Reply Quote 0
    • U
      UDb23
      last edited by 18 Dec 2016, 06:54

      Very interesting web tool, will try it; thanks !

      1 Reply Last reply Reply Quote 0
      • U
        UDb23 @herb_fargus
        last edited by UDb23 28 Jan 2017, 15:27

        @herb_fargus @caver01
        Wrote some vba code in excel to parse History.dat (182) and extract the "official" mame .78 games descriptions.
        Here's the resulting csv file, fields are: mame .78 rom name, latest mame name, game title and description. Total 4714 roms.

        Should now be quite simple to integrate your Google sheet with this info (by vlookup ?) and make a "global" table to generate gamelist.

        1 Reply Last reply Reply Quote 0
        • M
          markwkidd
          last edited by markwkidd 28 Jan 2017, 15:40

          @herb_fargus if useful, there is now a 0.78 catver.ini in the mame2003 repository: https://github.com/libretro/mame2003-libretro/tree/master/metadata

          One potentially nice thing about this is that corrections or updates can be made to the catver.ini in the libretro repository and the changes could percolate down to frontends and users of the core. I can see this RetroPie effort helping 'upstream' improvements.

          Speaking of which, it may also be possible to add a history.dat to the mame2003 repository. history.dat is the only other of the major MAME metadata files that I haven't pursued yet in my quest to add them to the various mame repos.

          @UDb23 that's some nice work! (I recently created a simple AHK script to regenerate catver.ini files from one version to another if you ever need it)

          Two questions:

          1. could your VBA be modified to produce a properly-formatted history.dat that we might try to add to the mame 2003 repository?
          2. do you have a way to list the titles that are missing records in your csv so that the could be completed or at least tracked?
          H U 3 Replies Last reply 28 Jan 2017, 15:44 Reply Quote 2
          • H
            herb_fargus administrators @markwkidd
            last edited by herb_fargus 28 Jan 2017, 15:44

            @markwkidd Brilliant work. How did you handle the file renaming changes through the versions? or did you use the hashes from the dat?

            Also the retropie wiki has 4705 games listed but your list is 4723 (wiki could be wrong I'll have to look over the dats again)

            If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

            Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

            M 1 Reply Last reply 28 Jan 2017, 16:24 Reply Quote 0
            • U
              UDb23 @markwkidd
              last edited by UDb23 28 Jan 2017, 16:12

              @markwkidd Basically it starts from a list of roms and finds the corresponding descriptions in History.dat.
              So if you need to extract additional or different roms it is very simple: just adding them to the initial list.
              Note: History.dat contains current mame rom names (vs 78 names); therefore initial list must have 78. romname and current (182) romname (this last is the one used to search in History.dat's content).

              What's the exact "properly formatted" structure you'd like History.dat to be "converted" ?

              Please note that it contains huge amount of text. Descriptions already are very long.
              I'm currently fixing a minor issue with CR/LF that is not correctly saved in my csv.

              1 Reply Last reply Reply Quote 0
              • U
                UDb23 @markwkidd
                last edited by 28 Jan 2017, 16:15

                @markwkidd To handle the name changes I wrote some other code some months ago based on renameset.dat by Antopisa.

                M 2 Replies Last reply 28 Jan 2017, 16:22 Reply Quote 1
                • M
                  markwkidd @UDb23
                  last edited by markwkidd 28 Jan 2017, 16:22

                  @UDb23 Game names/zip file commonly names changed over time in the MAME sets. The game may have one filename and title in MAME 0.182 and be completely different in MAME 0.78.

                  The .dat formats also changed throughout the years. For example catver.ini and cheats.dat each go through at least three format changes between MAME 0.37b5 and now. Because I haven't been able to find an old history.dat for that era yet, I'm not sure if a modern history.dat can be read by the mame2003 core itself. I'll look into that though!

                  @herb_fargus you may be giving me credit for UDb23's work -- they are the one who created the awesome history.dat CSV ! : )

                  1 Reply Last reply Reply Quote 0
                  • M
                    markwkidd @UDb23
                    last edited by markwkidd 28 Jan 2017, 16:22

                    @UDb23 said in Manually generate Mame2003 gamelist?:

                    @markwkidd To handle the name changes I wrote some other code some months ago based on renameset.dat by Antopisa.

                    Nevermind my thoughts on name changes. Nice!

                    1 Reply Last reply Reply Quote 0
                    • M
                      markwkidd @herb_fargus
                      last edited by markwkidd 28 Jan 2017, 16:24

                      @herb_fargus said in Manually generate Mame2003 gamelist?:

                      @markwkidd Brilliant work. How did you handle the file renaming changes through the versions? or did you use the hashes from the dat?

                      Also the retropie wiki has 4705 games listed but your list is 4723 (wiki could be wrong I'll have to look over the dats again)

                      There should be a total of 4720 ZIP files in a MAME 0.78 set, of which 15 are BIOS. This is true of a set I have access to which scans as complete in ClrMamePro.

                      H 1 Reply Last reply 28 Jan 2017, 16:27 Reply Quote 0
                      • H
                        herb_fargus administrators @markwkidd
                        last edited by 28 Jan 2017, 16:27

                        @markwkidd ah thats right, when I listed it I removed the bios because I didn't consider them games. Ok. sure. um. I'll need to look them both over and compare against the name changes just to verify it all.

                        @UDb23 looks great so far.

                        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                        U 1 Reply Last reply 28 Jan 2017, 18:00 Reply Quote 0
                        • U
                          UDb23 @herb_fargus
                          last edited by 28 Jan 2017, 18:00

                          @herb_fargus Here's an improved version of the csv with the descriptions.
                          Basically I got rid of all those leading (and trailing) non readable characters (CR/LF etc) that were present in the description in History.dat.

                          btw: I wonder how they came up with that "unstructured" history.dat file format A little bit tricky to extract the descriptions without specific delimiters. ;-)

                          1 Reply Last reply Reply Quote 0
                          • U
                            UDb23
                            last edited by 28 Jan 2017, 18:05

                            Concerning number of ROMS:
                            my list includes 4714, so if ClrMamePro states 4720 it should be easy to find the 6 missing ones by comparing. Or maybe I just missed some of the BIOS files to be removed (actual game roms should be 4705 according to @markwkidd ).

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                              This community forum collects and processes your personal information.
                              consent.not_received