EMULAB Forum
clrmamepro [English] => clrmame Discussion => Topic started by: yescabernetnointernet on 21 August 2022, 14:45
-
Adding M. A. M. E.'s XML (-listxml) via "Profiler > Add DatFile..." is NOT recognized by clrmame: the DatFile is not detected, although the corresponding "mame.dat" file is generated (alongside "mame.xml").
mame.xml:mame.exe -listxml > mame.xml
It only works with the official MAME 0.nnn full driver information in XML format (https://github.com/mamedev/mame/releases/download/mame0246/mame0246lx.zip) (downloaded from https://www.mamedev.org/release.php (https://www.mamedev.org/release.php) ).
One interesting thing is the two XML files differs in size:## MAME 0.246 full driver information in XML format ##
mame0246.xml
size = 271978244 bytes
SHA-1 = F53FE5CDCB5207F586CCD34070367E0FB87FA51C
## mame.exe -listxml > mame.xml ##
mame.xml
size = 543956490 bytes
SHA-1 = F9D6669071371A357627A64CB3A1273BE0BE3C4D
-
????
What file are you talking about?
The full driver xml from the official page (https://github.com/mamedev/mame/releases/download/mame0246/mame0246lx.zip) works fine and also a simple redirected mame -listxml.
Maybe you've compiled one yourself and the -listxml output is simply broken/incomplete (which can happen on not clean compiles).
-
The file has been generated using the official mame.exe (https://github.com/mamedev/mame/releases/download/mame0246/mame0246b_64bit.exe) (https://www.mamedev.org/release.php (https://www.mamedev.org/release.php)).
Maybe some bug using it inside PowerShell?
I'll try with Command Prompt as soon as I can.
-
Powershell redirects data in utf16 by default (and redirecting is very slow in powershell, too).
So you need to run it with utf8 encoding in powershell:
mame.exe -listxml | out-file mame.xml -encoding utf8
If you only need to use the data in clrmamepro, you don't even need to run this manually, you can simply use Profiler->Create and let cmpro point to your mame exe file.
-
So you need to run it with utf8 encoding in powershell:
mame.exe -listxml | out-file mame.xml -encoding utf8
Thank you Roman! 8) SOLVED. ;)