Previous Thread
Next Thread
Print Thread
Correct configuration for cheats in Ubuntu? #99679
05/09/15 04:29 PM
05/09/15 04:29 PM
Joined: Nov 2004
Posts: 10
P
petran Offline OP
Member
petran  Offline OP
Member
P
Joined: Nov 2004
Posts: 10
I have installed QMC2 and SDLMAME 0.160 in Ubuntu 15.04

But cheats refuse to work

I did the following:

in QMC2: Configuration:Miscellaneous: Cheats Enabled
Write config enabled

I am not sure from which directory QMC2 reads mame.ini file
so I copied it in 4 different folders:
etc/mame/mame.ini
usr/share/games/mame.ini
home/.mame/mame.ini
home/.qmc2/mame.ini

in mame.ini cheatpath is $HOME/mame/cheat;/usr/local/share/games/mame/cheat
/usr/share/games/mame/cheat

I have the cheats.7z file included in the above directories.
But QMC2 refuses to recognize the cheats

I do not know what is the issue this time. Cheats worked fine in Ubuntu 14.04

Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99682
05/09/15 05:30 PM
05/09/15 05:30 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
QMC2 doesn't read mame.ini or recognize any cheats, MAME does. The default for "inipath" in case of Linux is MAME's current working directory (.) or ./ini. So you have to make sure that the working directory you've setup for the emulator within QMC2 is the one you want it to be. Otherwise you should set all (search) paths explicitly...

What you want is readconfig (not writeconfig), but that's enabled per default.

See here for details on QMC2's way of configuring the emulator.

And there's this old thread about cheats.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99684
05/09/15 09:19 PM
05/09/15 09:19 PM
Joined: Nov 2004
Posts: 10
P
petran Offline OP
Member
petran  Offline OP
Member
P
Joined: Nov 2004
Posts: 10
this old thread is for Windows but for Ubuntu things are more confusing

OK here is what I did:

In Tools-Options-Emulator I set the executable file: /usr/games/mame

I created the mame.ini in that folder too.
in mame.ini I added /usr/games to the default folders, thus cheatpath is

$HOME/mame/cheat;/usr/local/share/games/mame/cheat;/usr/share/games/mame/cheat;/usr/games

I also copied the cheat.7z file to the above folders

as for the working directory in QMC2 I set it to /usr/games

cheat.7z is inside that folder

but no cheat files are recognized.

I even run from terminal "qmc2-sdlmame -cheat cheatpath /usr/games"


Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99685
05/09/15 09:24 PM
05/09/15 09:24 PM
Joined: Mar 2001
Posts: 15,966
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 15,966
USA
Your problem is likely that you're attempting to configure MAME in both QMC2 and hand-written .ini files and they're cancelling each other out. You must commit to QMC2 and configure MAME only inside of QMC2 without any hand-written ini files in order to achieve a working setup.

Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99686
05/09/15 09:25 PM
05/09/15 09:25 PM
Joined: Mar 2001
Posts: 15,966
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 15,966
USA
Also, your cheat file may be too old for 0.160.

Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99689
05/10/15 07:07 AM
05/10/15 07:07 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
The OS doesn't matter here, the cheat setup is basically the same on Windows and Linux. So you can definitely follow the hints given in the referenced thread (one option is to use an absolute path to cheat.7z, omitting ".7z"!).

Also, QMC2 has no "-cheat" or "-cheatpath" command line options. Those are CLI arguments of the emulator and QMC2 may pass them to the emulator when it launches it in case you've changed the respective options from their defaults.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Correct configuration for cheats in Ubuntu? [Re: petran] #99690
05/10/15 10:25 AM
05/10/15 10:25 AM
Joined: Nov 2004
Posts: 10
P
petran Offline OP
Member
petran  Offline OP
Member
P
Joined: Nov 2004
Posts: 10
Same cheat file works on Windows, yet not on Ubuntu

I reset all settings, configured dat, rom, snap, marquee directories from external drive (location of Windows MAME), they all are detected

I set cheat path to that folder as well. Cheat.7z works on Windows since it is on the same folder with Mame.exe (media/username/Freeagent Drive/mame)

But still it is not detected. Now bilinear filter refuses to work too and games look blocky!

I'll wait for the official SDLMAME 0.161 for Vivid.
I installed MAME from official Ubuntu repo and had to compile QMC2. Cheats worked instantly on 14.04

Apparently 15.04 MAME from official repo has still some small issues.

Thanks for the advice.

Last edited by petran; 05/10/15 10:26 AM.

Moderated by  qmc2 

Who's Online Now
1 registered members (Stiletto), 32 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,555
Posts111,753
Members4,801
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.021s Queries: 14 (0.007s) Memory: 5.6349 MB (Peak: 5.8293 MB) Zlib enabled. Server Time: 2018-07-21 01:44:14 UTC