MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


How can I get the list of categories?
#345377 - 09/20/15 07:38 PM


Taking a look at catver.ini or at any frontend using this file, you can see a long list of games and the category they belong to. I would need to extract the list of categories alone. I could go through catver.ini trying not to repeat what I copy but that would be hard. Any idea where to get the list?






Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM


Re: How can I get the list of categories? new [Re: Elaphe]
#345387 - 09/21/15 01:17 AM


> Taking a look at catver.ini or at any frontend using this file, you can see a long
> list of games and the category they belong to. I would need to extract the list of
> categories alone. I could go through catver.ini trying not to repeat what I copy but
> that would be hard. Any idea where to get the list?

Write a script to parse the file and find unique ones. Perl, Python and Awk are all suitable languages.



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: How can I get the list of categories? new [Re: Vas Crabb]
#345409 - 09/21/15 02:18 PM


I think I'll organize all games by categories in EmuLoader and then copy them. They are not so many.

My idea, once I have the list, is to translate them to Spanish and create a script with AutoHotkey to change the text in any catver.ini file.






CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


Re: How can I get the list of categories? new [Re: Elaphe]
#345424 - 09/21/15 07:30 PM


I can create a small tool to export all categories to a .txt file. It's easy.


...Click "Select" button to select a catver.ini or another .ini file.

File will be read and a save dialog will be shown so you can select a destination folder and new filename. File will be created there...

.txt or .ini extension ?

What kind of output format do you want ? just list the category on each line ?



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


try this... new [Re: CiroConsentino]
#345426 - 09/21/15 08:28 PM Attachment: ExportCategoriesToFile.rar 622 KB (4 downloads)


here a small tool to read catver.ini and create a .txt file with categories.



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: How can I get the list of categories? new [Re: CiroConsentino]
#345445 - 09/21/15 11:17 PM


Thanx a lot. It works great. Very useful.





Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 232 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1967