Previous Thread
Next Thread
Print Thread
#99679 - 05/09/15 04:29 PM Correct configuration for cheats in Ubuntu?  
Joined: Nov 2004
Posts: 10
petran Offline
Member
petran  Offline
Member

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

#99682 - 05/09/15 05:30 PM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: May 2008
Posts: 4,840
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,840
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!
#99684 - 05/09/15 09:19 PM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: Nov 2004
Posts: 10
petran Offline
Member
petran  Offline
Member

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"


#99685 - 05/09/15 09:24 PM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: Mar 2001
Posts: 15,752
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,752
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.

#99686 - 05/09/15 09:25 PM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: Mar 2001
Posts: 15,752
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,752
USA
Also, your cheat file may be too old for 0.160.

#99689 - 05/10/15 07:07 AM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: May 2008
Posts: 4,840
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,840
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!
#99690 - 05/10/15 10:25 AM Re: Correct configuration for cheats in Ubuntu? [Re: petran]  
Joined: Nov 2004
Posts: 10
petran Offline
Member
petran  Offline
Member

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
5 registered members (Luengo, Breiztiger, Duke, Dam0, sof-max), 18 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,436
Posts109,391
Members4,764
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.024s Queries: 14 (0.006s) Memory: 4.9790 MB (Peak: 5.2006 MB) Zlib enabled. Server Time: 2017-11-19 10:41:42 UTC