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: [SOLVED] Profiler: CANNOT manually add M. A. M. E.'s XML (-listxml)  (Read 2323 times)

yescabernetnointernet

  • "And the wind screams Mary"
  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 70
  • RED is for WINE
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 103.0 Firefox 103.0
    • View Profile

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:
Code: [Select]
mame.exe -listxml > mame.xml
It only works with the official MAME 0.nnn full driver information in XML format (downloaded from https://www.mamedev.org/release.php ).




One interesting thing is the two XML files differs in size:
Code: [Select]
## 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
« Last Edit: 24 August 2022, 20:03 by yescabernetnointernet »
Logged


Lo stalker portò scrittore e professore nella Zona...

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 104.0.5112.81 Chrome 104.0.5112.81
    • View Profile
Re: [PROFILER] CANNOT manually add M. A. M. E.'s XML (-listxml)
« Reply #1 on: 21 August 2022, 17:48 »

????
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).
« Last Edit: 21 August 2022, 17:49 by Roman »
Logged

yescabernetnointernet

  • "And the wind screams Mary"
  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 70
  • RED is for WINE
  • Operating System:
  • Linux Linux
  • Browser:
  • Firefox 103.0 Firefox 103.0
    • View Profile
Re: [PROFILER] CANNOT manually add M. A. M. E.'s XML (-listxml)
« Reply #2 on: 21 August 2022, 19:03 »

The file has been generated using the official mame.exe (https://www.mamedev.org/release.php).
Maybe some bug using it inside PowerShell?
I'll try with Command Prompt as soon as I can.
Logged
Lo stalker portò scrittore e professore nella Zona...

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 104.0.5112.102 Chrome 104.0.5112.102
    • View Profile
Re: [PROFILER] CANNOT manually add M. A. M. E.'s XML (-listxml)
« Reply #3 on: 22 August 2022, 06:59 »

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

yescabernetnointernet

  • "And the wind screams Mary"
  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 70
  • RED is for WINE
  • Operating System:
  • Linux Linux
  • Browser:
  • Firefox 104.0 Firefox 104.0
    • View Profile
Re: [PROFILER] CANNOT manually add M. A. M. E.'s XML (-listxml)
« Reply #4 on: 24 August 2022, 20:02 »

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.  ;)
Logged
Lo stalker portò scrittore e professore nella Zona...
Pages: [1]   Go Up
 

Page created in 0.145 seconds with 19 queries.