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.
    • herb_fargusH
      herb_fargus administrators
      last edited by

      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

      UDb23U 1 Reply Last reply Reply Quote 0
      • UDb23U
        UDb23
        last edited by

        Very interesting web tool, will try it; thanks !

        1 Reply Last reply Reply Quote 0
        • UDb23U
          UDb23 @herb_fargus
          last edited by UDb23

          @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
          • markwkiddM
            markwkidd
            last edited by markwkidd

            @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?
            herb_fargusH UDb23U 3 Replies Last reply Reply Quote 2
            • herb_fargusH
              herb_fargus administrators @markwkidd
              last edited by herb_fargus

              @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

              markwkiddM 1 Reply Last reply Reply Quote 0
              • UDb23U
                UDb23 @markwkidd
                last edited by UDb23

                @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
                • UDb23U
                  UDb23 @markwkidd
                  last edited by

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

                  markwkiddM 2 Replies Last reply Reply Quote 1
                  • markwkiddM
                    markwkidd @UDb23
                    last edited by markwkidd

                    @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
                    • markwkiddM
                      markwkidd @UDb23
                      last edited by markwkidd

                      @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
                      • markwkiddM
                        markwkidd @herb_fargus
                        last edited by markwkidd

                        @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.

                        herb_fargusH 1 Reply Last reply Reply Quote 0
                        • herb_fargusH
                          herb_fargus administrators @markwkidd
                          last edited by

                          @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

                          UDb23U 1 Reply Last reply Reply Quote 0
                          • UDb23U
                            UDb23 @herb_fargus
                            last edited by

                            @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
                            • UDb23U
                              UDb23
                              last edited by

                              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.