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: clrmame 0.6.3  (Read 48358 times)

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 145.0.0.0 Chrome 145.0.0.0
    • View Profile
clrmame 0.6.3
« on: 17 February 2026, 08:01 »

2026-02-17 clrmame V0.6.3 released

Thanks to Bugfinder and t23 for finding interesting things in the scanner and dir2dat....

https://mamedev.emulab.it/clrmamepro/binaries/clrmame_v063.zip
https://mamedev.emulab.it/clrmamepro/binaries/readme.html

Core:

- fixed: Scanner, unneeded files in "empty" machines aren't listed or fixed
- fixed: Scanner, only one file is renamed when a file within a machine needs to be renamed to more than one instance within that same machine
- fixed: Scanner, wrong named machines, which also have stand-in files for other sets, are put to backup and need a second scan to get back in
-fixed: Scanner, when a machine is renamed to more than one new instance and the instances don't use the same rom names, a second scan is needed so that all files get renamed
- added: Dir2Dat, archiveById option which enables collecting content of archives which aren't named like .7z/.zip/.rar. So e.g. content of .jar files will be added to the datfile
Logged


john iv

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 100
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 145.0.0.0 Chrome 145.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #1 on: 03 March 2026, 20:32 »

Having this conversation at Bannisters in the shoutbox:

John IV: Looks like some clrmame complaints on identically named roms w/ diff. hashes today, exprraidbl and fstation7.

John IV: Osso and StonedDiscord.

hap: If a cloneset has a certain rom label exactly the same as the parent or sibling set, it's not a MAME problem. AFAIK clrmamepro doesn't have an issue with it either since it can rename the files when converting to a merged set

hap: If it's in the same romset, then yes it's a bug.

John IV: The current version of clrmame doesn't fix these two issues upon encountering them. When it's been hit previously it did require a source level alteration. This is w/ merged sets and the clones in subdirectories of the zips. I'll ask Roman.
Logged

john iv

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 100
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 145.0.0.0 Chrome 145.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #2 on: 03 March 2026, 21:06 »

I guess it's better to just report on the issue in the log vs. trying to fix it, otherwise we wouldn't know to alert the devs to the duplication after the first clrmame run. :)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 145.0.0.0 Chrome 145.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #3 on: 04 March 2026, 07:22 »

Do you have the xml for that available? I need to look at the xml to say what is actually the best way to go there.
Since the warning comes from initially reading in the xml, so before actually thinking about full/split/whatever merging.
So I think it shows something like (dummy values)

name 5b crc32 0x12345678
name 5b crc32 0x87654321

But that would clearly be wrong. You have identical filenames on the same archive/folder or machine level with different hashes..... -> inform the devs

if it is something like
name 5b crc32 0x12345678
name 5b crc32 0x87654321 merge 5b

then it would mean the set is a clone and the 2nd 5b is shared with the parent...so in a folder/7z/zip they would never be in the same archive or at least not on the same path level. So yeah...would be ok then, storing wise.

So....can you send me the xml please?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 145.0.0.0 Chrome 145.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #4 on: 04 March 2026, 17:15 »

ok...so here we go:

exprraidbl (clone of exprraid):

<rom name="5b" merge="cz07.5b" size="16384" crc="686bac23"....
<rom name="5b" merge="cy-17.5b" size="256" crc="da31dfbc" ....

now actually that would mean that the parent has cz07.5b and 17.5b files with different hashes (and names), fine.
"exprraidbl", a clone, now reuses such files from the parent...but maps both to "5b" as "local name", so if you would have a "standlone" set, you have a problem since you don't know which of the 2 files should form the 5b file. But that's for standalone only.
Split merged sets won't have neither of the 2 and full merged ones have the merge names on root level and no in subfolders.

So, if you ask me, I'd say the name should be changed since -when you look at a standalone set (totally standalone, no parent/clone relationships, devices, bios, all dependencies included), you'd have a problem.
But yeah, for all other merge modes it does not play a role.

Coming from the MAME preservation perspective I wonder however, do you really have 2 ICs label 5b on that clone pcb?


Logged

xokia

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #5 on: 25 April 2026, 22:39 »

I have a full merged set of 0.286 I'd like to update it to 0.287.

I downloaded the updated merged 0.287 CHD and Roms. I am trying to use clrmame 0.6.3 to update 0.286 to 0.287

First thing I did was download mame 0.287 and then creates a mame287.xml file

Then in the clrmame GUI for the source I use the mame287.xml file

Input paths:
Point to the 0287 CHD and Roms

output path:
I just create a directory called output_paths same with backup
I am thinking I should be pointing to the MAME 0.286 directory? (didnt want to screw up my directory if it failed)
I assume I take the output_path files and just copy them into MAME 0.286 directory?



Now for the scanner side
for the source XML I choose the same 0.287.xml

Rom Paths:
I point the the MAME 0.286 ROM/CHD files
Backup_path same backup path that was used in rebuilder.



However rebuilder seems to run fine but when I run the scanner I get a bunch of issues. Anyone know how to do this successfully?
What am I doing wrong?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #6 on: 26 April 2026, 15:11 »

ok..let's start...with 2 minor things:

- clrmame 0.7.0 is out :-)
>and then creates a mame287.xml file
You don't need this. You can simply let clrmame's XML/EXE simply point to your mame.exe file. When you specify no additional parameters, -listxml is automatically used. The advantage is that you can simply reuse this setting when your mame binary gets updated.

Now what you did....

- The next step you're trying is to use the rebuilder to rebuild your 287 chd/roms update set to a new folder. Why? The output will be the same as the input after rebuilding.
- When you used the scanner, you used your old 286 collection as rompath and you scanned it with a 287 data basis...of course it will show you files with warnings since romsets change with each MAME version.


So let's start over:

Rebuilder: It takes anything valid from a given input and creates all matching (hash compare against currently loaded data) instances in the specified output. It does not produce fully complete sets. If one file is shared by like 1000 sets, you get 1000 sets with that file. They still may require more. Yes, the rebuilder can be used to add "an update pack" to an existing collection, but then the output should point to your existing collection. Mainly the rebuilder is used to convert data from one emulator to another, or to see what a bunch of messy folders have which can be reused and so on. If you use it as an adder, be sure that you're using the same data basis for scanner/rebuilder and the same merge mode.

Scanner: The scanner is the main module, it scans your roms and sample paths and is able to fix nearly every problem it finds. Surely it cannot magically create missing files out of nowhere, but you can use add paths and the backup path to make it look file files which it then automatically adds to the right place. So when you simply added your "287 update pack" files as an add path, you would simply run the scanner.

So, you should go with the scanner, define an addpath (it's in the modifiers tab), let the rompath point to your rompath(s), check which merge mode you prefer, keep fix issues disabled for now and hit scan.
Then take a look at the tree output. you can expand the items to see what is wrong with the files. If your update pack in your addpath is a good one, you shouldn't see any red X marked sets, the orange ! sets will most likely indicate missing but fixable files (fixable because it found the files in your add path).

When you enable the fix issues option and do another scan, it will try to fix all listed issues, i.e.
- rename wrong named archives/roms/disks
- unneeded files will be moved to backup
- missing but fixable files are copied from the addpaths and backup (optionally when incl. as add path is ticked)
- optionally matched files from addpath/backup are removed


Now imagine you'd have one folder where you always put your update packs and you'd use XML/Exe pointing to your mame binary, then updating mame is just one click the next time.
Logged

xokia

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #7 on: 26 April 2026, 22:56 »

- The next step you're trying is to use the rebuilder to rebuild your 287 chd/roms update set to a new folder. Why? The output will be the same as the input after rebuilding.
- When you used the scanner, you used your old 286 collection as rompath and you scanned it with a 287 data basis...of course it will show you files with warnings since romsets change with each MAME version.
The why is because I do not know what I am doing and didnt want to ruin my working 286 full merged rom set.

So I created a copy of my 286 romset so I could restore if I needed to an tried to follow what you suggested.
I used the mame.exe file.
for the output directory I chose the 0.286 mame directory. (I have all ROMs and CHDs copied to same directory).

Build seems to run fine.
I still get some warnings when I run scanner

Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #8 on: 27 April 2026, 05:58 »

>The why is because I do not know what I am doing

well...the readme.md file explains all modules and what they do and what the options do and I hope the previous post already cleared some things up.



>I still get some warnings when I run scanner

Well, then open the warnings....click on the + symbol before the listed items to expand the tree and see what is wrong with the machines....
Logged

xokia

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #9 on: 27 April 2026, 06:47 »

>The why is because I do not know what I am doing

well...the readme.md file explains all modules and what they do and what the options do and I hope the previous post already cleared some things up.



>I still get some warnings when I run scanner

Well, then open the warnings....click on the + symbol before the listed items to expand the tree and see what is wrong with the machines....

Says the files are missing. I dont know what a clean build looks like so dont know what to expect here. I dont know if files are expected to be missing or not.
This is the first time I have tried upgrading a mame collection. Usually I just redownload the entire merged rom set.
Thank you for answering questions.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 147.0.0.0 Chrome 147.0.0.0
    • View Profile
Re: clrmame 0.6.3
« Reply #10 on: 27 April 2026, 07:21 »

Well, if it lists missing files, you're missing files. It's easy as that :-)
If you have them in your collection, backuppath or addpath, they get added and won't appear anymore as missing.

If you'd have a complete clean MAME collection, no red or orange items are listed. You'd only see the root item "0.287 (mame0287)" and no sub items.

There are context menu options which allow to hide the orange and red entries though, but by default they are not enabled.
"Complete clean" means that no problems were found for your current selection of options. If you e.g. only scanned a few sets by using modifiers/filters, it does not necessaily mean you have all the files...it only means "for your selected filters - it's ok".

So, unless you're using the default options and nothing is shown in the tree...you're done...anything red/orange -> you have some issues.
« Last Edit: 27 April 2026, 07:43 by Roman »
Logged
Pages: [1]   Go Up
 

Page created in 0.108 seconds with 21 queries.