PDA

View Full Version : Do you want MAME wheels based on categories/subcategories?



Banacek
09-23-2008, 12:02 AM
Then here you go! I wrote this little Python script to auto generate MAME game lists based on catver.ini. It will create lists based on either categories or subcategories. IT also has the ability to filter out clones, bios, and adult titles.

MAKE A BACKUP BEFORE CHANGING ANY FILES!

Python 2.5 is required. I could make this an executable, but I'd much rather distribute it in Python so you can see what the script is doing. '-h' will give you the command line options, and the files will be outputted to the output_xml directory. Make sure that the mame.xml and the catver.ini are in the same directory. Then put the xml files under correct directory in HyperSpin and you're good to go!

I wrote this in about a day, so if you find some issue, or have a question feel free to let me know.

BadBoyBill
09-23-2008, 12:15 AM
Havent tried it yet , but it says make sure that mame.xml and catver.ini in the same direcctory, if the user doesnt have an xml, could it point mame.exe and build a listxml before running the rest of the script, that way they can update the list with a new build of mame and not have to manually build their list first before running this.

Banacek
09-23-2008, 07:42 AM
Havent tried it yet , but it says make sure that mame.xml and catver.ini in the same direcctory, if the user doesnt have an xml, could it point mame.exe and build a listxml before running the rest of the script, that way they can update the list with a new build of mame and not have to manually build their list first before running this.

I'll do it today.

Banacek
09-23-2008, 10:50 PM
Done. This version takes a directory for mame.exe and a directory for catver.ini. If it doesn't find the mame.xml file it will generate one from the mame.xml. The point of this script is that no matter what version of mame is running you should be able to run this script to generate the category game lists.

vendur
12-01-2008, 06:53 PM
Works like a charm.:-)

But, now that I have the genre xml files, what do I do next?

Is it possible to add sub-wheels under the mame wheel?

I have tried everything I could think of, but it wont work for me..

I also tried to add a Genre sub-wheel on the main menu, and didn't get this to work either, o Iguess it might be just me..:-) Help please?

bent98
12-02-2008, 03:56 AM
Can you release it in both python and exe?

Dazz
12-02-2008, 03:59 AM
Works like a charm.:-)

But, now that I have the genre xml files, what do I do next?

Is it possible to add sub-wheels under the mame wheel?

I have tried everything I could think of, but it wont work for me..

I also tried to add a Genre sub-wheel on the main menu, and didn't get this to work either, o Iguess it might be just me..:-) Help please? I am not sure how this script works, but I am assuming that you need to hit the button that you have assigned as the Genre button. This will bring up the Genre menu and allow you to select from there.

vendur
12-02-2008, 06:08 AM
I have run the script from command modus, and generated 17 genre xml files, all mame.xml entries have been sorted based on genre, and I am to use these files instead of the mame database, or instead it in a main menu genre catalog.

What I was hoping for was to make a sub-wheel within mame so that I first may choose amem, then a genre and then among the games in this genre.

Dazz
12-02-2008, 06:14 AM
Currently HS isn't designed to function that way, Vendur. Like Bill stated before that would require a re-write of the wheel engine and that is not something that he is interested in doing at this time. Perhaps we can talk him into it later, but that will probably be a while since he just recently re-wrote it.

vendur
12-02-2008, 12:16 PM
So the only option to make main manu choice for each genre, and then games on the second wheel.

Hrm.. I guess that'll have to do then.:-)


Maybe I'll set up two hyperspin versions, one with different emulators and one setup with favourite games based by genre.. so depending on the mood of the month, I'll change whih one I run.;-)

FatNasty
12-04-2008, 03:41 PM
So the only option to make main manu choice for each genre, and then games on the second wheel.

Hrm.. I guess that'll have to do then.:-)


Maybe I'll set up two hyperspin versions, one with different emulators and one setup with favourite games based by genre.. so depending on the mood of the month, I'll change whih one I run.;-)

Thats not a bad idea. I may have to do the same.

Banacek
02-24-2009, 06:38 PM
Sorry, I moved vendur, and real life got in the way of my hobbies. But it looks like your questions got answered :)

Banacek
02-24-2009, 06:38 PM
Can you release it in both python and exe?

Sure, if anyone is still using it. There's probably something better by now.