Closed kbullett closed 11 months ago
FYI roms tested are from a full non-merged romset.
Fascinating, that's telling me that the DAT doesn't have a header, or it couldn't parse one correctly. I will try to reproduce it.
It's because an XML library I'm using is coercing the self-closing <clrmamepro/>
to be an empty string...
<datafile>
<header>
<name>MAME</name>
<description>MAME 0.78</description>
<category>EMULATION</category>
<version>0.78</version>
<date>-not specified-</date>
<author>AntoPISA</author>
<email>progettosnaps@gmail.com</email>
<homepage>http://www.progettosnaps.net/</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro/>
</header>
I'll put in a fix for this and other potential places.
Very nice. Thanks for turning this around so quickly. I updated my .dat to remove the clrmamepro
element and can now process these MAME roms. Amazing! BTW, you have written a lovely tool here. I am a big fan.
You're very welcome, this should be fixed in the next release. Thank you, @kbullett!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Paste the command
npx igir@latest copy zip --dat roms/dats/MAME\ Dats\ 0.78/MAME\ 078.dat --input MAME_2003-Plus_Reference_Set_2018/roms/3countb.zip --output roms/roms-sorted --dir-dat-name
Describe the bug
Working from 0.78 MAME romset and for test purposes, running against 1 specific rom I get the following error (below is full output),
If I try do a copy and do not include a zip then I get the following error,
Expected behavior
Expect rom to be identified and copied to the output dir.
Debug logs
[13:16:07.601] INFO: CandidatePreferer: MAME: done filtering candidates [13:16:07.601] INFO: CandidatePostProcessor: MAME: processing candidates [13:16:07.681] INFO: CandidatePostProcessor: MAME: done processing candidates [13:16:07.682] INFO: CandidateWriter: MAME: writing 2 candidates [13:16:07.683] TRACE: CandidateWriter: MAME: neogeo: writing 2 candidates [13:16:07.684] TRACE: CandidateWriter: MAME: roms/roms-sorted/MAME/neogeo.zip: writing 10 archive entries ... [13:16:07.701] ERROR: CandidateWriter: MAME: roms/roms-sorted/MAME/neogeo.zip: failed to create zip: Type_a.getHeader is not a function [13:16:07.701] TRACE: CandidateWriter: MAME: neogeo: no raw files to write [13:16:07.701] TRACE: CandidateWriter: MAME: roms/roms-sorted/MAME/3countb.zip: writing 20 archive entries ... [13:16:07.708] ERROR: CandidateWriter: MAME: roms/roms-sorted/MAME/3countb.zip: failed to create zip: Type_a.getHeader is not a function [13:16:07.708] TRACE: CandidateWriter: MAME: 3countb: no raw files to write [13:16:07.708] TRACE: CandidateWriter: MAME: neogeo: done writing 2 candidates [13:16:07.708] INFO: CandidateWriter: MAME: done writing 2 candidates [13:16:07.709] INFO: StatusGenerator: MAME: generating ROM statuses [13:16:07.720] INFO: StatusGenerator: MAME: done generating ROM statuses MAME ... 2/4,610 games, 1/15 BIOSes, 2/4,610 retail releases written [13:16:07.721] INFO: done processing 1 DAT
DAT(s) used
https://www.progettosnaps.net/download/?tipo=dat_mame&file=/dats/MAME/MAME_Dats_078.rar
igir version
v1.9.0
Node.js version
v18.5.0
Operating system
macOS Sonoma 14.0
Additional context
No response