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
Lightguns Arcade1Up Try the site in https mode Site News

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

  

Author Topic: Introducing New (Enhanced) MaLa Game List Editor  (Read 90470 times)

0 Members and 1 Guest are viewing this topic.

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Introducing New (Enhanced) MaLa Game List Editor
« on: March 15, 2010, 05:43:37 pm »
Introduction

I have completed the first alpha build of an enhanced Mala game list generator which provides (I feel) the simplest, most user friendly way to create, manage, edit, and filter Mala game lists.

A word of warning before I continue: I purchased a MAME cabinet just a few weeks ago and know very little (almost nothing) about MAME, Mala, or the arcade scene in general. Everything I know about MAME at this point has originated from reviewing NOP's C++ ROMLister source code and Loadman's Delphi Mala source code and thanks goes out to those guys for providing it to me so I could realize my vision for a better game list editor! The code is still extremely early and has not been tested exhaustively on anything other than Windows 7 x64.


There are 2 parts to this solution:

  • mlgconverter.exe: the engine which converts mlg files to ini and ini files to mlg (command line - written in Delphi)
  • malaGamelistEditor.exe: the graphical user interface which wraps mlgconverter.exe (requires .NET v3.5 - written in C#)


Features

  • Create new game lists
  • Edit existing game lists
  • Re-order existing gamelists  
  • Select the elements in the mame database to display onscreen (or hide)
  • Sort by any of the elements in the mame database
  • Group the records in the mame database by desired field
  • Drag and drop games from mame database into game list
  • Search game descriptions
  • Change database view from 'Details', 'List View', or 'Tile View'


Using malaGamelistEditor.exe

The first time you run malaGamelistEditor.exe you will be prompted to browse the the mame.xml file created by mala when you first ran it. If genre information is missing from the mame.xml file then you will be prompted if you want to merge genre information into your existing mame.xml document.

As the application is loading you will see a progress bar in the lower left hand side of the program which indicates its current progress. It may take a few seconds to kick off if your database has 8,000+ records.


Fig. 1 - Program is loaded and ready for use.



Fig. 2 - User has changed the database from 'Details View' to 'Tile View'.



Fig. 3 - User has right clicked the header column to select the rows to display.



Fig. 4 - User has searched the database for the term 'Street Fighter'.



Fig. 5 - User has selected the existing game list 'Fighter - 2.5D'.mlg and it is being parsed and loaded by mlgconverter.exe



NOTES:

  • The program only loads *.mlg files from the same directory it is running in.
  • You can refresh the mlg list drop down and database info by using the 'Refresh Form' button.
  • You MUST save any changes you make to your game lists by using the 'Save' button in the tool bar.
  • The * asterisk character in the mala game list section lets you know you've made unsaved changes.
  • I have included a sample mlg file for you to play with (Fighter - Versus.mlg).
  • The 'FTP to Arcade' option is disabled right now and I felt it was too complicated for most users.



Using mlgconverter.exe (ONLY For Non-Microsoft.NET v3.5 users or scriptwriters/programmers)

The command line mlgconverter.exe utility is a Borland Delphi tool developed exclusively to provide a clean, portable method for reading and writing MaLa *.mlg files, which are essentially binary ini files, readable (more or less) only by Delphi applications. All the respect in the world goes to ROMLister developer NOP, which managed to write mlg files with C++ with like 8 zillions lines of code.  ;D

Interface

Code: [Select]
Usage: mlgconverter.exe [task] [filepath]
Example: mlgconverter.exe export "c:\MaLa\GameLists\Fighters.mlg"

[Task] export - converts an mlg file to ini.
[Task] import - converts an ini file to mlg.

NOTE: Refer to template.ini for the valid ini file structure.

There are 2 parameters which the converter needs, the task to complete and the file to work on (must be the full file path, not just the name of the file). The export task will convert an existing mlg file to plain-text INI and the import task will convert plain-text INI to binary mlg format, readable by MaLa.

The INI file standard used by MaLa (and mlgconverter) can be seen below:

Code: [Select]
[RomFileNameWithoutExtension]
name=
romOf=
cloneOf=
sourcefile=
description=
manufacturer=
genre=
inputPlayers=
inputControl=
videoScreen=
videoOrientation=
driverStatus=
driverColor=
driverSound=
driverEmulator=
driverGraphic=
controls=
joyUp=
joyDown=
joyLeft=
joyRight=
button1=
button2=
button3=
button4=
button5=
button6=
button7=
button8=
details=
romPath=
extension=

Not all these values are required by MaLa, but I can't tell you which ones are because I just create an INI file based on the data in the mame.xml file. You would have to play around to determine which values are absolutely required.

Each section header is the name of the rom (for example: [sf2ce] is the header for Street Fighter 2: Championship Edition and the values in the section are all for that game).


Download

Please note that YOU MUST HAVE .NET V3.5 INSTALLED to run the graphical program.
http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en

MaLa Game List Tools .NET release

Code: [Select]
CHANGELOG

1.0.0.0 - initial release
1.0.0.1 - fixed UnhandledException: Sequence Contains no Elements bug when saving/updating certain game lists
- added cloneOf as an indexed/sortable attribute in the mamedb
- fixed UnhandledException when user is prompted to select mame.db and hits cancel
- added ability to filter clones from results
- newly created gamelists appear in gamelist drop down without having to refresh the entire database
- fixed prompt for saving changes bugs

Version 1.0.0.0 (08/2010) - MediaFire.com
Version 1.0.0.1 (09/2011) - MediaFire.com

Lessons Learned & 'Gotchas' in the .NET Framework
http://www.codeproject.com/KB/dotnet/FunWithProcesses.aspx

Conclusion

Please let me know if this tool gets used and if you find it useful to you. Realistically, the code base is not production ready but it works and does what I wanted it to do but I don't want to put too much more time into this if I'm the only one using it.

Just wanted to share,
Cheers!

« Last Edit: October 16, 2011, 11:06:28 am by thund3rstruck »

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:January 26, 2015, 10:15:43 am
  • Got UltraStiks?™
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #1 on: March 16, 2010, 02:47:32 pm »

Congrats!

 :cheers:

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #2 on: March 16, 2010, 08:40:03 pm »
Sweet!  I've been wanting to make a bunch of separate gamelists for different controls & genres for a while now, but been to lazy.
Your work is much appreciated.

mh12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 24, 2010, 10:03:57 am
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #3 on: March 17, 2010, 11:39:38 am »
sounds good!

one thing i'd like to see in a gamelist program is the ability to delete ROMs not in the list(s). or, more safely, move them out somewhere else you can test and make sure you won't be needing them. The program would have to be smart enough not to get rid of parent sets and BIOSes for anything that might be in the list.

anyway, i may be in the minority now using a small harddrive. I've already deleted the big stuff I don't play, but ditching lots of smaller games would help too.

ETA: maybe this is already possible with another util now that MLG can be turned into INI?

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #4 on: March 17, 2010, 12:24:39 pm »

one thing i'd like to see in a gamelist program is the ability to delete ROMs not in the list(s). or, more safely, move them out somewhere else you can test and make sure you won't be needing them. The program would have to be smart enough not to get rid of parent sets and BIOSes for anything that might be in the list.

anyway, i may be in the minority now using a small harddrive. I've already deleted the big stuff I don't play, but ditching lots of smaller games would help too.

ETA: maybe this is already possible with another util now that MLG can be turned into INI?

Hm.. that is interesting. This little program wasn't really designed to be running on your arcade, at least not mine (because my arcade is running a puny windows 2000 PC with like 128MB of ram) so its features are entirely geared towards creating custom mlg game lists based on the master mame.xml database. For me... there aren't any roms on the machine I use this tool on. In fact, on the development build there's an FTP Update feature so when I get done creating a new game list, I just click a button and the new lists are FTP'd over to my arcade.

If my tools were included in the main MaLa release, then I'd probably design a tool specifically geared towards being run directly on the arcade (integrated with mala itself) but as it stands now, this tool is stand-alone and pretty much only has the features that I need personally.

mh12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 24, 2010, 10:03:57 am
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #5 on: March 17, 2010, 12:44:43 pm »
yeah, i won't be installing .NET framework on my cabinet.
i do backup to a portable harddrive though, so i could do the deleting and transfer fresh to the cab.

i'm not even sure if any utils handle deleting. it would be nice, but not a big deal.

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #6 on: March 17, 2010, 12:51:04 pm »
yeah, i won't be installing .NET framework on my cabinet.

Yea, exactly. My cabinet can barely run W2K, let alone the .NET framework. In fact I don't know if you can even install .NET v3.5 on W2K. From the outset this tool was designed to be used on your regular PC and then the mlg files are transferred to the cab through VNC, RDP, or FTP.

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #7 on: March 17, 2010, 05:14:51 pm »
one thing i'd like to see in a gamelist program is the ability to delete ROMs not in the list(s). or, more safely, move them out somewhere else you can test and make sure you won't be needing them. The program would have to be smart enough not to get rid of parent sets and BIOSes for anything that might be in the list.

romlister does that.  For any list you create, you can output it as a batch file too.  Use that batch file to move or copy the files you do want over to your machine.  See the tutorials for working with batch files.

In order for that to be effective, you would want to use CMpro to convert your collection into a split set, where each .zip file is its own game.  Delete the zip, delete the game entirely.  You don't mess with parent zip files being required to run child games that way or even need separate BIOS zips.  Most people with large hard drives would just leave the rom set this way.

Since you're pressed for space, you would probably want to then use cmpro again to re-merge the set, reducing the amount of HDD space you'd need.

edit: not trying to steal thund3rstruck's thunder (sorry for the pun) about the new utility!

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #8 on: March 17, 2010, 06:28:07 pm »
Quote
edit: not trying to steal thund3rstruck's thunder (sorry for the pun) about the new utility!

Not at all... ROMLister is perfect for advanced tasks like the one requested above. My tool is for dummies like me who are new to the scene and just want a brows-able, filtered list of all the roms (sortable by the various elements in mame.xml) which we can drag and drop into new gamelists.

mh12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 24, 2010, 10:03:57 am
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #9 on: March 17, 2010, 08:25:08 pm »
thanks guys.. i'll be using this and ROMlister next time i mess with my cab

Congui

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:July 23, 2015, 12:54:53 pm
  • Newbie!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #10 on: March 19, 2010, 03:55:13 pm »
A very cool app indeed. Thx.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #11 on: March 20, 2010, 07:58:34 am »
I have not tested it yet but when you are done I am happy to hosts it at malafe.net if you want? Or at least a link to it.

zorg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1102
  • Last login:May 19, 2022, 09:00:38 am
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #12 on: March 20, 2010, 08:58:28 am »
for list editing I wish to have a simple tool that allows me to create the list as just plain text rom names. then havig the list converted to mala list game
does such tool exists ??

I'm most used to deal with text parsing and unix tools than other thing, thats why dealing with plain text is easier for me. no need for graphic interface. command line will be fine.
I'm on the planning stage

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #13 on: March 20, 2010, 10:58:26 am »
for list editing I wish to have a simple tool that allows me to create the list as just plain text rom names. then havig the list converted to mala list game
does such tool exists ??

I'm most used to deal with text parsing and unix tools than other thing, thats why dealing with plain text is easier for me. no need for graphic interface. command line will be fine.

Absolutely, Please read the 2nd half of the post. My tools consist of 2 parts, the command line converter and the graphical user interface which wraps the converter. The CLI utility, does just as you say, it converts binary mlg files to plain-text (ascii) ini files. Feel free to use Perl, Bash, CShell, or whatever tool you like to parse the file. If you want to convert from plain-text to binary mlg, then just create the ini file in your language of choice and feed it into the converter. The ini template is in the post.

You can also read about my lessons learned from this project in my code-project article which documents how I arrived at the solution I engineered and the struggles I had to overcome regarding some of the limitations I encountered with the System.Diagnostics.Process class types while building this modular framework:
http://www.codeproject.com/KB/dotnet/FunWithProcesses.aspx

The only reason there is a graphical user interface at all is because I figured no-one (other than me) would ever use the tool if I released the command line converter on it's own.

Cheers


thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #14 on: March 20, 2010, 11:21:45 am »
I have not tested it yet but when you are done I am happy to hosts it at malafe.net if you want? Or at least a link to it.

I appreciate it loadman. I have created all my lists using the tool and now I'm just waiting for feedback from the MaLa community. If it's useful to them then I will host it on one of my servers permanently, and if not then that's ok too, the publicly available project will die and I'll just use it myself whenever I need to manage my MaLa game lists.

Sharing is caring.  8)

Eddie_Brock

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:February 26, 2014, 12:00:34 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #15 on: March 21, 2010, 12:27:01 pm »
I installed this app recently on my home PC (win7 32bit), since my arcade box doesn't have .net framework. Anyways, I copied over my malagamelist.mlg file, and mame.xml, however I am unable to get the game list to open up.  :banghead:

My first step was to use the command line and export it to a .ini... the screen scrolled through the entire list, and eventually got to the end. No ini. Then I opened up the GUI, it imported my .XML fine, and displayed ALL of my games that I have in the list on the left. When the GUI tried to load the .mlg, again the DOS window came up, scrolled through my list, and eventually closed, with no result.

It seems regardless of what I try, I can't get my .mlg to populate in the right-hand column. Suggestions? :dizzy:

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #16 on: March 21, 2010, 12:35:08 pm »
I installed this app recently on my home PC (win7 32bit), since my arcade box doesn't have .net framework. Anyways, I copied over my malagamelist.mlg file, and mame.xml, however I am unable to get the game list to open up.  :banghead:

My first step was to use the command line and export it to a .ini... the screen scrolled through the entire list, and eventually got to the end. No ini. Then I opened up the GUI, it imported my .XML fine, and displayed ALL of my games that I have in the list on the left. When the GUI tried to load the .mlg, again the DOS window came up, scrolled through my list, and eventually closed, with no result.

It seems regardless of what I try, I can't get my .mlg to populate in the right-hand column. Suggestions? :dizzy:

Send me a copy of your mlg file and I'll tell you exactly what's going on.

Cheers!

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #17 on: March 21, 2010, 09:16:21 pm »
Did exactly what I needed and saved me a bunch of time.   :applaud:

The only issue I had with it was when trying save a previously created list after making a few changes.
I get an error message if I try to re-use the original game list name.

Easy enough to workaround, but it would be nice to replace the original list in one shot.


thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #18 on: March 21, 2010, 09:24:57 pm »
The only issue I had with it was when trying save a previously created list after making a few changes.
I get an error message if I try to re-use the original game list name.

Thanks for the positive feedback. That's easy enough to change. I'll add that into the ToDo list.


thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #19 on: March 23, 2010, 10:18:11 pm »
It seems regardless of what I try, I can't get my .mlg to populate in the right-hand column. Suggestions? :dizzy:

Send me a copy of your mlg file and I'll tell you exactly what's going on.

Cheers!

Eddie,

I got your mlg file and man is it huge (2,235 games)! Ok so here's your problem. When you created your game list you named it 'Games' in the mala game list editor (the editor that comes with Mala) but you saved the file as trim.mlg. So when you selected it from the GUI program it exported properly, but it was exported as 'Games.ini' since the command line converter names the file based on the internal mala list title.

To get it to load in the GUI program, just rename the exported Games.ini file to trim.ini and viola! It loads right up and you can edit it, add to it, or remove items from it.

In the GUI program, the exported INI file and the MLG file need to have the same name. That's not a problem if you use the GUI to create and manage all your lists, but if you use a 'legacy' list, (in other words, a list created with the default MaLa list editor tool) you need to make sure the Title of the list and the file name are the same.

BTW, if you don't want to have to reconvert your list again, here's the exported INI (http://www.mediafire.com/download.php?mteb5otjzmi). Just unzip and drop it into your MalaGameListEditor.exe working directory and you're good to go!

Hope this helps...
Cheers,

Eddie_Brock

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:February 26, 2014, 12:00:34 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #20 on: March 24, 2010, 12:30:07 pm »
Quote
I got your mlg file and man is it huge (2,235 games)! Ok so here's your problem. When you created your game list you named it 'Games' in the mala game list editor (the editor that comes with Mala) but you saved the file as trim.mlg. So when you selected it from the GUI program it exported properly, but it was exported as 'Games.ini' since the command line converter names the file based on the internal mala list title.

Indeed its huge, I have been going through it by hand in MAME deleting titles that don't work, are lame, I will never play, etc. The idea being that your program will make it a bit easier to filter through and modify my list.

Thanks for your help, I was fairly certain it was something I was doing wrong with the app. I will be sure to give it a try tonight when I get hom from work.

 :applaud: Thanks again  :notworthy:

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #21 on: March 24, 2010, 06:58:21 pm »
Keen application, thund3rstruck!   :cheers:

I'll check it out soon.

In the meantime, 1 quick question--I didn't see it addressed but might have missed it in my skimming of the thread:

Does your program let the user spit a text file of the games used in a list?  More specifically, I'd love to have a text file of the game names (not ROM names, the text string that appears in MaLa).

Thanks!
-Jason

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #22 on: March 24, 2010, 08:08:29 pm »
Keen application, thund3rstruck!   :cheers:

I'll check it out soon.

In the meantime, 1 quick question--I didn't see it addressed but might have missed it in my skimming of the thread:

Does your program let the user spit a text file of the games used in a list?  More specifically, I'd love to have a text file of the game names (not ROM names, the text string that appears in MaLa).

Thanks!
-Jason

The mlgconverter.exe (the command line tool which speaks Mala's language) converts the binary, proprietary MLG file format into plain-text INI. The INI file contains all the data in the original MLG file. The name of the game (not the rom name but the actual title) itself is stored in the Description key for the section which represents each game.

The Graphical User Interface tool (MalaGamesListEditor.exe), simply wraps the command line tool so users never have to actually use the command line tool, unless they want to script/automate the creation of game lists.

I'm not sure that answered your question... if not, perhaps I didn't understand the question


jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #23 on: March 25, 2010, 01:44:47 am »
Howdy-

I think you answered my question--I wasn't 100% sure that an "ini" file was a "txt" file.  I guess that's interchangeable.

I downloaded it & tried it out & had a couple of comments/questions/problems:

1 - Because I didn't have my mame.xml handy (lazy, tired...), I tried to launch the GUI version (MalaGameListEditor.exe), but it wouldn't launch without mame.xml.  That's OK.

2 - So, I ran the command prompt version.  It took a couple of tries for me to get the syntax correct.  I noticed that the file is mlgconverter.exe, but the command prompt "help" that pops up explains syntax & calls the program convertmlg.  I guess you had a name change in the development somewhere?  :]

3 - After figuring out the syntax, I typed in "mlgconverter export Infernolab.mlg" (minus the quotes).  It crunched through my 2200-ish files, saying: "Exported: ? from list: Infernolab Cabinet", where "?" is each ROM name.  After it was all done, I couldn't find any new .ini file that was generated.  Should it be written to the same directory as the program & the mlg file?


Thanks!
-Jason

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #24 on: March 25, 2010, 02:09:50 pm »
3 - After figuring out the syntax, I typed in "mlgconverter export Infernolab.mlg" (minus the quotes).  It crunched through my 2200-ish files, saying: "Exported: ? from list: Infernolab Cabinet", where "?" is each ROM name.  After it was all done, I couldn't find any new .ini file that was generated.  Should it be written to the same directory as the program & the mlg file?

Yea, I noticed that the other day as well. The game list file path parameter needs to be the full path because the Delphi code I wrote is a little dumb (cause I had to learn the Delphi programming language in like 2 hours to do this). So in other words you need to specify the full path like this:

Code: [Select]
mlgconverter export "c:\Arcade\Mala\My Game Lists\infernolab.mlg"

You can be sure that a new file infernolab.ini was created somewhere on your disk, but I can't tell you exactly where it went... :-[. That's a legit bug that I need to fix.

I was waiting for someone to use the command line converter before mentioning this bug...

Hope this helps,
Cheers! 

Eddie_Brock

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:February 26, 2014, 12:00:34 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #25 on: March 25, 2010, 07:16:41 pm »
You can be sure that a new file infernolab.ini was created somewhere on your disk, but I can't tell you exactly where it went... :-[. That's a legit bug that I need to fix.

I was waiting for someone to use the command line converter before mentioning this bug...

Hope this helps,
Cheers! 

Heh, isn't that basically the same issue I was having several days ago? ;) No ini file to be found in the directory. No worries, I've redone my .mlg with the full path and this time all worked like it should have.
Still a handy app, for sure.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #26 on: March 26, 2010, 12:46:39 am »
Yea, I noticed that the other day as well. The game list file path parameter needs to be the full path because the Delphi code I wrote is a little dumb (cause I had to learn the Delphi programming language in like 2 hours to do this). So in other words you need to specify the full path like this:

You can be sure that a new file infernolab.ini was created somewhere on your disk, but I can't tell you exactly where it went... :-[. That's a legit bug that I need to fix.

Howdy-

Oddly, I did a search from Windows Explorer & it found no such .ini file anywhere on my hard drive.  Kooky.  I re-ran the program with the full path to my .mlg file & it cranked through all 2200ish games & created the .ini file.  Hooray!

One more request/question.  My goal is to simply generate a txt file list of all of the games in my MaLa cabinet, as they appear in my MaLa menu.  This seems to correspond to the "description" line in the .ini file that your program generated.

Is there a way to generate a file with *only* this piece of data, 1 entry per line?  I'd like the "description=" text to not be there, but that's very easily taken out with a Find & Replace in Word or Notepad.


Thanks!
-Jason

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #27 on: March 26, 2010, 07:37:46 am »
Quote from: jasonbar
Oddly, I did a search from Windows Explorer & it found no such .ini file anywhere on my hard drive.  Kooky.  I re-ran the program with the full path to my .mlg file & it cranked through all 2200ish games & created the .ini file.  Hooray!

Well actually the file is going to be named based on the gamelist title itself, so it would only be inferno.ini if inferno was the name of the game list title. When I get some time I'm going to dig in and find out exactly what's going on if you don't specify the path. It might well be doing nothing since I think I have implemented empty try/catch error handling (due to my lack of knowledge of the Delphi language).

Quote from: jasonbar
Is there a way to generate a file with *only* this piece of data, 1 entry per line?  I'd like the "description=" text to not be there, but that's very easily taken out with a Find & Replace in Word or Notepad.

Yes there is, just not in this tool. My tool serves a very specific/limited purpose, and thats to create, edit, and manage MaLa game lists. For all these auxiliary tasks I recommend using ROMLister. In ROMLister you load up your XML file, click the 'List All Roms' button, and select the CSV option. From there you can select the 'Description' field and specify the output as a text file.

Cheers!

Congui

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:July 23, 2015, 12:54:53 pm
  • Newbie!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #28 on: March 26, 2010, 10:09:34 am »
Hi there.

If all you want is a list with the descriptions, you can do it using a vbscript.  I've attached a zip with a vbscript that does what you're after.  You must run it from the command prompt (inside the zip file is a short cut) using the following syntax:
CreateMalaGameList.vbs mala.ini #

mala.ini refers to the ini file generated by malaGamelistEditor.exe.
# can take to two values 0 or 1:
   0 leaves the description just as it is
   1 removes the brackets from the description: (), [], {}

Example:
CreateMalaGameList.vbs fighters.ini 1

The end result is a file with an underscore infront of it, in the same directory:
_fighters.ini

Hope this helps.

Cheers, :cheers:
Congui

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2247
  • Last login:July 30, 2023, 02:52:55 am
  • Dr. Inferno
    • The Infernolab
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #29 on: March 26, 2010, 08:44:07 pm »
Congui, you are super duper awesome!  The script worked like a charm.  Thank you *so* much!   :notworthy: :notworthy: :notworthy:

I'd already cleaned up the "description" field to my liking some time ago, so I used the 0 option & didn't need to do any bracket removal.

Wow, thanks very much to both of you!!!

I now have a list of all my games in MaLa.  I guess I have simple pleasures & needs...    ;D

-Jason

Congui

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:July 23, 2015, 12:54:53 pm
  • Newbie!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #30 on: March 26, 2010, 10:43:50 pm »
Just glad to help.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4305
  • Last login:August 17, 2020, 03:23:55 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #31 on: June 13, 2010, 02:14:50 am »
Should I package this with MaLa releases?

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #32 on: June 13, 2010, 08:41:29 am »
Should I package this with MaLa releases?

I'll let others chime in on that. I know for me personally, my cabinet runs a really old windows 2000 PC and that PC doesn't have the .NET framework installed. I use the tool to manage my gamelists on my main PC and then I FTP the mlg files to my cabinet.

raungst

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:October 14, 2016, 03:05:40 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #33 on: June 13, 2010, 07:33:25 pm »
It seems like the download link no longer works. Besides opening up a ton of popups, the page to download never appears. Any chance on reuploading it? Thanks! Looks like exactly what I've been looking for.

raungst

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:October 14, 2016, 03:05:40 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #34 on: June 13, 2010, 07:38:18 pm »
Apologies. Apparently if you block some of the popups it doesn't let you download.

raungst

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:October 14, 2016, 03:05:40 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #35 on: June 14, 2010, 02:14:58 am »
I just wanted to say thanks for such a great tool. I only used the converter, but it worked perfectly. I was able to take Hyperspin's XML files and convert them into Mala game list files with a file for each genre for each of my consoles. I definitely think the converter should be included with MaLa, at least.

thund3rstruck

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:October 16, 2011, 11:09:27 am
  • I want to build my own arcade controls!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #36 on: June 14, 2010, 08:37:53 am »
Apologies. Apparently if you block some of the popups it doesn't let you download.

I just tried the download link again in FireFox and had no problems what-so-ever downloading. Anyways, I put a copy of the release archive on my own web server here: http://www.nealosis.com/mp3collector/downloads/malagamelisteditor.zip

raungst

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:October 14, 2016, 03:05:40 pm
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #37 on: June 14, 2010, 10:22:57 am »
I just tried at work and it appeared immediately. I'm not sure what was happening last night.  :dunno Thanks again.

andrewbean90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 167
  • Last login:October 04, 2012, 05:55:56 am
  • do you like it?
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #38 on: June 16, 2010, 05:30:52 am »
seems really cool

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: Introducing New (Enhanced) MaLa Game List Editor
« Reply #39 on: April 12, 2011, 03:56:27 pm »
Hi, I am running on Windows 7, and have everything installed on this machine, I believe, that you said we'd need to run this software.   I am able to open the software, but once I modify a list, and then try to save it, I get an error message.   I am only trying to add one game to the list, but it does not work.  I have tried to add other games as well, but the error occurs also, so it's not specific to one game.

Attached below is a screenshot of the error, also the text that appears in the details section.  Please let me know if you have any ideas as to why this isn't working for me.

Thanks!