Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing XML #410

Open
Echtze1t opened this issue Aug 2, 2023 · 4 comments
Open

Error parsing XML #410

Echtze1t opened this issue Aug 2, 2023 · 4 comments

Comments

@Echtze1t
Copy link

Echtze1t commented Aug 2, 2023

Clipboard Image

This error happens at every start of Bletchmame 2.17. I'm on Windows 10, if that has any relevance.

@Echtze1t
Copy link
Author

Echtze1t commented Aug 2, 2023

Oh, I forgot to close the program. Apparently there is still stuff going on.

Clipboard Image

@npwoods
Copy link
Owner

npwoods commented Aug 3, 2023

Which version of MAME are you running, and what is your locale?

There were older versions of MAME that would incorrectly emit -listxml output where decimals (like refresh frequencies) were emitted in a locale sensitive fashion. This was incorrect; -listxml output should always use "period decimals" (e.g. - 60.0)

@Echtze1t
Copy link
Author

Echtze1t commented Aug 3, 2023

Which version of MAME are you running, and what is your locale?

The latest version, 0.257. If you mean my country by locale? It's Germany.

There were older versions of MAME that would incorrectly emit -listxml output where decimals (like refresh frequencies) were emitted in a locale sensitive fashion. This was incorrect; -listxml output should always use "period decimals" (e.g. - 60.0)

I don't know what any of this means. :D

@npwoods
Copy link
Owner

npwoods commented Aug 6, 2023

BletchMAME relies on a feature on MAME that you can execute on the command line, specifically -listxml. You can do this at the command line yourself (e.g. - mame -listxml). This emits large amounts of data in XML about MAME's myriad systems.

The specific screenshots above show an XML attribute called refresh, and BletchMAME expects this number to be formatted "US style" (e.g. - 60.0). If mame -listxml is emitting attributes like refresh="60,0000", that is a bug in MAME. Can you try running mame -listxml to see if you see values like that?

You can probably sidestep this bug by changing your locale to "US English", which will cause decimals to be periods, not commas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants