Previous Thread
Next Thread
Print Thread
Software List CLI usage #115642 08/05/19 02:06 PM
Joined: Mar 2009
Posts: 53
M
mochamame Offline OP
Member
OP Offline
Member
M
Joined: Mar 2009
Posts: 53
I use mame on Linux typically at the command line but sometimes with QMC2. I'm a bit confused about using software lists that have names that don't align with the system name. For example, apple2 has four lists apple2_cass, apple2_flop_misc, etc.... Whenever I do "mame apple2 -lsoft" or "mame apple2 -getsoftlist" the response is always "No software lists found for this system" or "No such software lists found". apricot_flop is another example.

I've been digging though all the documentation and don't get it. What am I'm missing? Thanks!

Re: Software List CLI usage [Re: mochamame] #115643 08/05/19 02:24 PM
Joined: Mar 2001
Posts: 16,390
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,390
The hashpath in mame.ini must point to the directory with the software list XML files.

Re: Software List CLI usage [Re: R. Belmont] #115648 08/06/19 07:14 AM
Joined: Mar 2009
Posts: 53
M
mochamame Offline OP
Member
OP Offline
Member
M
Joined: Mar 2009
Posts: 53
It's strange something is not working right...

Code
$ cat ~/.mame/mame.ini |grep hashpath

hashpath                  /home/mocha/src/mame0179/hash/

$ ls -al /home/mocha/src/mame0179/hash/apple*

-rw-rw-r-- 1 mocha mocha  18845 Oct 25  2016 /home/mocha/src/mame0179/hash/apple1.xml
-rw-rw-r-- 1 mocha mocha 287019 Oct 25  2016 /home/mocha/src/mame0179/hash/apple2gs.xml
-rw-rw-r-- 1 mocha mocha 355844 Oct 25  2016 /home/mocha/src/mame0179/hash/apple2.xml
-rw-rw-r-- 1 mocha mocha  11060 Oct 25  2016 /home/mocha/src/mame0179/hash/apple3.xml

$ mame apple2 -getsoftlist

No such software lists found

Re: Software List CLI usage [Re: mochamame] #115649 08/06/19 07:46 AM
Joined: May 2004
Posts: 890
D
Duke Offline
Senior Member
Offline
Senior Member
D
Joined: May 2004
Posts: 890
-getsoftlist requires the name of a software list as parameter. So the following will work:

mame64 -getsoftlist apple2_flop_orig

That's for current MAME, older versions might differ.

Re: Software List CLI usage [Re: Duke] #115650 08/06/19 12:55 PM
Joined: Apr 2006
Posts: 713
Tafoid Offline
Senior Member
Offline
Senior Member
Joined: Apr 2006
Posts: 713
Originally Posted by Duke
-getsoftlist requires the name of a software list as parameter. So the following will work:

mame64 -getsoftlist apple2_flop_orig

That's for current MAME, older versions might differ.


Also the -listsoftware parameter is probably what you are looking for here - it will go through all softlists and depending on the machine chosen will output what has been deemed able to run.
> mame64 -listsoftware apple2e
This show all software XML which is valid for that machine. If you want individual setnames and descriptions (similar to -listfull), you'll need to parse that info yourself from the text output capture.




Re: Software List CLI usage [Re: mochamame] #115652 08/06/19 06:21 PM
Joined: Mar 2009
Posts: 53
M
mochamame Offline OP
Member
OP Offline
Member
M
Joined: Mar 2009
Posts: 53
Something's off. With my own binary that I compiled it sees the XML files in the hash path. With a prebuilt binary from a ppa it doesnt see the hash path even specifying the -hash command line option. I also tried -noreadconfig with the same results.

Re: Software List CLI usage [Re: mochamame] #115655 08/06/19 08:12 PM
Joined: Mar 2001
Posts: 16,390
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,390
Prebuilt binaries often alter the default mame.ini search path, that may be the difference.

Re: Software List CLI usage [Re: mochamame] #115657 08/07/19 01:12 AM
Joined: Feb 2004
Posts: 2,093
Vas Crabb Offline
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,093
If you use `-verbose` it should show the paths it's trying to load INI files from.

Re: Software List CLI usage [Re: mochamame] #115661 08/08/19 06:56 AM
Joined: Mar 2009
Posts: 53
M
mochamame Offline OP
Member
OP Offline
Member
M
Joined: Mar 2009
Posts: 53
I always appreciate the help here and all the things the mame team has provided over the past 22 years. I finally just recompiled the latest version and deleted all my old cruft and setup the mame.ini properly and now it works as expected.


Who's Online Now
6 registered members (crazyc, Breiztiger, Olivier Galibert, RColtrane, Pernod, Praxis), 169 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,722
Posts114,633
Members4,873
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3