Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news


  

Author Topic: A 0 games found workaround for MAME v.162 and later with Mala.  (Read 15059 times)

0 Members and 1 Guest are viewing this topic.

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
***update this has also worked for me on MAME 163, 164 & 165***

Hi,

I am not sure if this tip has already been given/shared (sorry if it has), but I would like to share the solution to the problem that I was having using Mala with MAME 162.



I was having the above error (No games were added! Review collection options and ensure using XML file (produced by Mame) is >.84) due to the new mame.xml formatting.

Here a some examples of the changes in the mame.xml file:

old xml naming:

<!ELEMENT mame (game+)>
<!ATTLIST game
<game name="005"
.
.

new xml naming:

<!ELEMENT mame (machine+)>
<!ATTLIST machine
<machine name="005"
.
.

I fixed this using an xml editor (I used Notepad++ https://notepad-plus-plus.org/).

I used the "replace" function to replace the majority of the occurrences of "machine" with "game" in the mame.xml file in five steps:

Replace:

machine+

with

game+

Replace:

<!ELEMENT machine

with

<!ELEMENT game

Replace:

<!ATTLIST machine

with

<!ATTLIST game

Replace:

<machine

with

<game

And finally replace:

</machine

with

</game

Make sure to save the changes to mame.xml & then you should now be able to successfully refresh the main game list in Mala.



I hope this information helps,

VWBusman
[Updated title to reflect that this workaround is not limited to 0.162 - 0.165.  Will update title again if it stops working. -- Scott]
« Last Edit: January 01, 2017, 12:12:31 am by PL1 »

Vigo

  • the Scourage of Carpathia
  • Trade Count: (+24)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5709
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #1 on: June 15, 2015, 12:02:58 pm »
Good workaround! Thanks for helping keep Mala alive!  :cheers:

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #2 on: June 15, 2015, 12:24:58 pm »
Anything I can do to help. My family & I really enjoy using Mala on my arcade cabinet.

I forgot to mention that this workaround works for both the current beta (1.820) & official version (1.74) of Mala.

A big thanks to everyone working on Mala!

VWBusman

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16915
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #3 on: June 15, 2015, 12:31:16 pm »
I don't use Mala, but good for you, brother, for figuring this out!
***Build what you dig, bro. Build what you dig.***

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • I stole my avatar.
    • winterMAME
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #4 on: June 15, 2015, 08:00:59 pm »
I think that a lot of FE's are likely going to fail due to this change, and if the FE isn't supported anymore, they may be stuck at 161 for eternity.

Not to hijack this thread, but I'm running into this with ROMLister, and am wondering how I'm going to code around it to maintain compatibility with previous XML versions.
I was thinking that when creating a merged XML file, if it detects a 162 (machine+) xml file, that will ask you if you want to convert it back to <161's formatting or keep it as is.  RL would then do the exact same steps outlined here with a simple search/replace, which would in effect allow all FE's to work as normal if used with romlister.  As usual, I save the day. <jk>

No ETA on this yet- I think there will be other headaches with this change I haven't run into yet.

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #5 on: June 16, 2015, 01:29:03 am »
I think that a lot of FE's are likely going to fail due to this change, and if the FE isn't supported anymore, they may be stuck at 161 for eternity.

Not to hijack this thread, but I'm running into this with ROMLister, and am wondering how I'm going to code around it to maintain compatibility with previous XML versions.
I was thinking that when creating a merged XML file, if it detects a 162 (machine+) xml file, that will ask you if you want to convert it back to <161's formatting or keep it as is.  RL would then do the exact same steps outlined here with a simple search/replace, which would in effect allow all FE's to work as normal if used with romlister.  As usual, I save the day. <jk>

No ETA on this yet- I think there will be other headaches with this change I haven't run into yet.

That is exactly what I was hoping that someone was going to eventually create (with the >=162 XML detection). I look forward to trying your solution to this issue.

VWBusman

jazzycian

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #6 on: June 16, 2015, 08:24:05 am »
Hi,

I am not sure if this tip has already been given/shared (sorry if it has), but I would like to share the solution to the problem that I was having using Mala with MAME 162.



I was having the above error (No games were added! Review collection options and ensure using XML file (produced by Mame) is >.84) due to the new mame.xml formatting.

Here a some examples of the changes in the mame.xml file:

old xml naming:

<!ELEMENT mame (game+)>
<!ATTLIST game
<game name="005"
.
.

new xml naming:

<!ELEMENT mame (machine+)>
<!ATTLIST machine
<machine name="005"
.
.

I fixed this using an xml editor (I used Notepad++ https://notepad-plus-plus.org/).

I used the "replace" function to replace all occurrences of "machine" with "game" in the mame.xml file.



Make sure to save the changes to mame.xml & then you should now be able to successfully refresh the main game list in Mala.



I hope this information helps,

VWBusman

Thanks for this. I put mala on my laptop so i could fix everything up with ease before putting the folders on to my XP machine and was getting this exact error. Will try it later!

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 12294
  • Redhead pee the bed, blame it on a cabbage head.
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #7 on: June 16, 2015, 10:21:01 am »
Id give you rep but it doesnt exist.  :applaud:
2014 Standup UCA Runner Up
2015 Restoration UCA Winner
2016 thomas_surles choice award
2017 International Evil Buddhist Award

Latest project: http://forum.arcadecontrols.com/index.php/topic,150902.0.html
RedheadKingPinball aka GingerBalls

KI to Open Ice Conversion: http://forum.arcadecontrols.com/index.php/topic,152600.0.html

jazzycian

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #8 on: June 17, 2015, 05:54:45 am »


I fixed this using an xml editor (I used Notepad++

I used the "replace" function to replace all occurrences of "machine" with "game" in the mame.xml file.



I tried this, on a backed up XML. After doing a Find and Replace of machine for game the gamelist throws up 33,000 odd items in the games list. I only have 1600 Mame titles in my list so there must be other instances of machine here that do not need changing, maybe I just did it wrong.

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #9 on: June 17, 2015, 07:59:41 am »


I fixed this using an xml editor (I used Notepad++

I used the "replace" function to replace all occurrences of "machine" with "game" in the mame.xml file.




I tried this, on a backed up XML. After doing a Find and Replace of machine for game the gamelist throws up 33,000 odd items in the games list. I only have 1600 Mame titles in my list so there must be other instances of machine here that do not need changing, maybe I just did it wrong.

Hi jazzycian,

I have 25,592 instances of machine in my original file & I changed all of the without any issues. I also have far less roms that the number of instances in the xml file.

If you would like proceed with more caution (understandably so) you can do the same find and replace in several different steps:

machine+

with

game+

<!ELEMENT machine

with

<!ELEMENT game

<!ATTLIST machine

with

<!ATTLIST game

<machine

with

<game

</machine

with

</game

Using this method I did replace 349 less instances of "machine." I will revise my initial post to reflect this more cautious method that does still work (for me).

Please let me know if this works for you.

VWBusman
« Last Edit: June 17, 2015, 08:01:16 am by VWBusman »

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #10 on: June 17, 2015, 08:13:37 am »
Just out of curiosity has anyone else here tried using this "workaround" & has success?  I have tested it my two PCs & my MAME cabinet & it worked for me.

Thanks,

VWBusman

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 12294
  • Redhead pee the bed, blame it on a cabbage head.
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #11 on: June 17, 2015, 09:19:46 am »
Just out of curiosity has anyone else here tried using this "workaround" & has success?  I have tested it my two PCs & my MAME cabinet & it worked for me.

Thanks,

VWBusman

worked for me in a test environment...... I didnt actually upgrade my MAME or Roms to the latest but the list populated.
2014 Standup UCA Runner Up
2015 Restoration UCA Winner
2016 thomas_surles choice award
2017 International Evil Buddhist Award

Latest project: http://forum.arcadecontrols.com/index.php/topic,150902.0.html
RedheadKingPinball aka GingerBalls

KI to Open Ice Conversion: http://forum.arcadecontrols.com/index.php/topic,152600.0.html

VWBusman

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 with Mala.
« Reply #12 on: June 17, 2015, 09:49:30 am »
worked for me in a test environment...... I didnt actually upgrade my MAME or Roms to the latest but the list populated.

Awesome!

Thank you Malenko.

mike boss

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2445
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #13 on: December 20, 2015, 09:15:51 pm »
Can you post the revised XML ?
Would it be universal ?

Zipper

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 74
  • I've Built My Own Arcade Controls!!
A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #14 on: December 21, 2015, 03:51:28 am »
I only use an older mame (.158 ), but the xml file is huge (hundreds of mb), so hard to post.
Are you having trouble generating the xml file, or doing the steps to search/replace 'machine' with 'game'?
If you generate the xml with a mame <162, you don't need to do any text replacing. I think there's a button in mala 'generate xml' that creates it alongside the mame.exe (it takes a few minutes) - and generates an 'All games.mgl' file in your mala directory. I think that's how it works.
« Last Edit: December 21, 2015, 03:54:03 am by Zipper »

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • I stole my avatar.
    • winterMAME
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #15 on: December 21, 2015, 01:57:24 pm »
FWIW, romlister is now able to use mame 162+ files and generate all the gamelists your heart desires.
http://www.waste.org/~winkles/ROMLister/

Slavefett

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #16 on: January 28, 2016, 10:39:20 am »
This worked great for me, thank you!!  I am using Maximus Arcade and was having the Invalid Media Location error.  This is very easy to do and cleared the issue completely up.

Appreciate it

Steve

Gotprops

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #17 on: April 10, 2016, 01:31:18 pm »
Worked great. Thanks for the help. I was banging my head against the wall.

dmckean

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 555
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #18 on: April 10, 2016, 02:40:59 pm »
This post should be sticky.

MajorRexHavoc

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Why yes, I did create arcade video games for Atari
    • Who I really am
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #19 on: July 18, 2016, 02:22:28 pm »
FWIW, romlister is now able to use mame 162+ files and generate all the gamelists your heart desires.
http://www.waste.org/~winkles/ROMLister/
So to be clear, I just run my XML file from Mame (above 162) through Romlister, and run Mala as normal with this new xml file it creates, and all is well?  Trying that now. Thank you.
--------------------------------------------------
This signature intentionally left blank

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • I stole my avatar.
    • winterMAME
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #20 on: July 21, 2016, 08:56:46 am »
Not quite.
What I was saying is that you can create .mlg files with romlister with MAME 162+ that will work fine in mala.
If mala is reading in its own copy of the XML file, perhaps to display an all roms list, then you will still have problems.   You could have romlister create an all roms list too, as an .mlg file, and that should work.

Hopefully that didn't just muddy the waters further...

DaredevilDave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Yes, I really am still working on it!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #21 on: September 05, 2016, 12:01:24 am »
Notepad kept hanging up when trying to open mame.xml, so I copied the XML file from an older version (149) that I have and that worked for me! Copied it to my MAME 173. Thank you!
"Computer Space" (1st coin-op game ever) for MAME Front Ends Available Now!
http://forum.arcadecontrols.com/index.php/topic,155041.0.html

My Custom Motorcycle Cabinet Build For Custom Game (Daredevil Dave):
http://forum.arcadecontrols.com/index.php/topic,151106.0.html

motoschifo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • I want to build my own arcade controls!
    • Arcade Database
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #22 on: September 05, 2016, 03:31:16 pm »
Hi,
I don't know Mala front-end, but if you need a Mame xml file I have written a program to do this: ADB-Tools. See download section of my web site if you are interested on it.

There is a function on Mame Conversion form to generate an xml file of any release of Mame and then make it compatible with front-end that do not manage node "machine".
Simply select starting file (exe or xml), destination format (xml, txt, csv, etc) and target release compatibility level (with Mala is up to 0.161).

I can also add export feature on my web site if this can be useful. Now there are already 12 formats supported (csv, txt, xml, dat, scripts win/linux, hyperspin, mamewah, attract-mode, etc). The new "Mala" output type could use the Mame xml and replace the node name "machine" with "game" (of course xml content inside will be the same).

Let me know about it.

jmelan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #23 on: September 05, 2016, 03:42:20 pm »
Just wanted to say this worked just fine with mame 176 and notepad++

thanks!!

will check out romlister as well as that seems like a great way to remove all of the unnecessary games

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1882
  • Delicious!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #24 on: September 05, 2016, 08:11:10 pm »
Thank you for this... I beat my head against this problem for most of today and was at a complete loss before seeing this post. Without this fix, MALA is pretty much obsolete with any newer version of MAME. So glad you posted your solution.  :cheers:
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter

shredso

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 140
  • I'm a llama!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #25 on: November 13, 2016, 05:34:24 pm »
Worked in .179.  Thanks!

wcndave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #26 on: November 14, 2016, 03:19:01 pm »
Hey, thanks from me also, I was stuck with this.

Out of curiosity, what creates mame.xml and what is it used for?

If I modify the file for use in Mala, does this mean mame itself will not have new features enabled because the file is the wrong format?

If I use something like clrmamepro, will that also use that list? will it not work if I make the changes from this post?

KapnKerfuffle

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 33
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #27 on: November 23, 2016, 11:14:32 pm »
Hey, thanks from me also, I was stuck with this.

Out of curiosity, what creates mame.xml and what is it used for?

Mame itself creates this file.  You can create it by going to a cmd prompt, and changing the directory to where Mame is installed.  Then if you run the command 'mame -cc' it creates the mame.xml file.  The problem it seems is Mala is coded to recognize the file with the references to 'machine' and not 'game'.  The frontend coders are at the mercy of the Mame project.  If the Mame devs make a change, the frontends have to adapt.
Think the Unthinkable, Know the Unknowable,
Screw the Inscrutable and Eff the Ineffable.

Shadolf

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #28 on: November 27, 2016, 01:06:21 pm »
I have changed my mame.xml as stated in the first post, but MaLa always freezes when I check/read the game list. What can I do? This is really frustrating  :banghead: :cry:
I use GroovyMAME v.171 and tested MaLa v1.74 and v1.82.

Answer:
Just let the PC on for a long while at the last freez and then it worked.
« Last Edit: November 28, 2016, 09:54:17 am by Shadolf »

atreides

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #29 on: December 17, 2016, 03:51:41 pm »
Damn it, was about to delete everything related to MaLa, because of this fix :). Was stuck on 0 games loaded for few good hours. Thank you.

Fishinfiend

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • I want to build my own arcade controls!
Re: A 0 games found workaround for MAME v.162 - v.165 with Mala.
« Reply #30 on: January 01, 2017, 12:02:41 am »
It works with MAME v.0.181.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6438
  • 2013 UCA Awardee
Re: A 0 games found workaround for MAME v.162 and later with Mala.
« Reply #31 on: January 01, 2017, 12:18:18 am »
It works with MAME v.0.181.
Updated title of OP to reflect that this workaround is not limited to 0.162 - 0.165.

Will update the title again if it stops working.


Scott

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31